public CreateAssociationRequest withTargetLocations(java.util.Collection<TargetLocation> targetLocations) {
        setTargetLocations(targetLocations);
        return this;
    }
<p>
A location is a combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run
the association. Use this action to create an association in multiple Regions and multiple accounts.
</p>

@param targetLocations
       A location is a combination of Amazon Web Services Regions and Amazon Web Services accounts where you want
       to run the association. Use this action to create an association in multiple Regions and multiple
       accounts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CreateAssociationRequest.java