public CreateAutoScalingGroupRequest withInstanceId(String instanceId) {
        setInstanceId(instanceId);
        return this;
    }
<p>
The ID of the instance used to base the launch configuration on. If specified, Amazon EC2 Auto Scaling uses the
configuration values from the specified instance to create a new launch configuration. To get the instance ID,
use the Amazon EC2 <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html">DescribeInstances</a>
API operation. For more information, see <a
href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html">Create an Auto Scaling
group using parameters from an existing instance</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
</p>

@param instanceId
       The ID of the instance used to base the launch configuration on. If specified, Amazon EC2 Auto Scaling
       uses the configuration values from the specified instance to create a new launch configuration. To get the
       instance ID, use the Amazon EC2 <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html"
       >DescribeInstances</a> API operation. For more information, see <a
       href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html">Create an Auto
       Scaling group using parameters from an existing instance</a> in the <i>Amazon EC2 Auto Scaling User
       Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/CreateAutoScalingGroupRequest.java