public Attribute withTargetType(TargetType targetType) {
        this.targetType = targetType.toString();
        return this;
    }
<p>
The type of the target to attach the attribute with. This parameter is required if you use the short form ID for
a resource instead of the full ARN.
</p>

@param targetType
       The type of the target to attach the attribute with. This parameter is required if you use the short form
       ID for a resource instead of the full ARN.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetType
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Attribute.java