public PublishBatchRequestEntry withId(String id) {
        setId(id);
        return this;
    }
<p>
An identifier for the message in this batch.
</p>
<note>
<p>
The <code>Ids</code> of a batch request must be unique within a request.
</p>
<p>
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters,
hyphens(-), and underscores (_).
</p>
</note>

@param id
       An identifier for the message in this batch.</p> <note>
       <p>
       The <code>Ids</code> of a batch request must be unique within a request.
       </p>
       <p>
       This identifier can have up to 80 characters. The following characters are accepted: alphanumeric
       characters, hyphens(-), and underscores (_).
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/PublishBatchRequestEntry.java