public TargetInstances withAutoScalingGroups(java.util.Collection<String> autoScalingGroups) {
        setAutoScalingGroups(autoScalingGroups);
        return this;
    }
<p>
The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.
</p>

@param autoScalingGroups
       The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green
       deployment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/TargetInstances.java