public InstanceTarget withTargetId(String targetId) {
        setTargetId(targetId);
        return this;
    }
<p>
The unique ID of a deployment target that has a type of <code>instanceTarget</code>.
</p>

@param targetId
       The unique ID of a deployment target that has a type of <code>instanceTarget</code>.
@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/InstanceTarget.java