public InstanceTarget withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status an EC2/On-premises deployment's target instance.
</p>

@param status
       The status an EC2/On-premises deployment's target instance.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetStatus
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/InstanceTarget.java