public Target withId(String id) {
        setId(id);
        return this;
    }
<p>
The ID of the target within the specified rule. Use this ID to reference the target when updating the rule. We
recommend using a memorable and unique string.
</p>

@param id
       The ID of the target within the specified rule. Use this ID to reference the target when updating the
       rule. We recommend using a memorable and unique string.
@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/Target.java