public void setTargetLocations(java.util.Collection<TargetLocation> targetLocations) {
        if (targetLocations == null) {
            this.targetLocations = null;
            return;
        }

        this.targetLocations = new com.amazonaws.internal.SdkInternalList<TargetLocation>(targetLocations);
    }
<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.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CreateAssociationRequest.java