public PutTargetsResultEntry withTargetId(String targetId) {
        setTargetId(targetId);
        return this;
    }
<p>
The ID of the target.
</p>

@param targetId
       The ID of the target.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutTargetsResultEntry.java