public void setEc2InstanceId(String ec2InstanceId) {
        this.ec2InstanceId = ec2InstanceId;
    }
<p>
The ID of the associated Amazon EC2 instance.
</p>

@param ec2InstanceId
       The ID of the associated Amazon EC2 instance.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Instance.java