public class AddAttachmentsToSetRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Attachment> |
attachments
One or more attachments to add to the set.
|
private java.lang.String |
attachmentSetId
The ID of the attachment set.
|
NOOP
Constructor and Description |
---|
AddAttachmentsToSetRequest() |
Modifier and Type | Method and Description |
---|---|
AddAttachmentsToSetRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<Attachment> |
getAttachments()
One or more attachments to add to the set.
|
java.lang.String |
getAttachmentSetId()
The ID of the attachment set.
|
int |
hashCode() |
void |
setAttachments(java.util.Collection<Attachment> attachments)
One or more attachments to add to the set.
|
void |
setAttachmentSetId(java.lang.String attachmentSetId)
The ID of the attachment set.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddAttachmentsToSetRequest |
withAttachments(Attachment... attachments)
One or more attachments to add to the set.
|
AddAttachmentsToSetRequest |
withAttachments(java.util.Collection<Attachment> attachments)
One or more attachments to add to the set.
|
AddAttachmentsToSetRequest |
withAttachmentSetId(java.lang.String attachmentSetId)
The ID of the attachment set.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String attachmentSetId
The ID of the attachment set. If an AttachmentSetId
is not
specified, a new attachment set is created, and the ID of the set is
returned in the response. If an AttachmentSetId
is
specified, the attachments are added to the specified set, if it exists.
private SdkInternalList<Attachment> attachments
One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.
public void setAttachmentSetId(java.lang.String attachmentSetId)
The ID of the attachment set. If an AttachmentSetId
is not
specified, a new attachment set is created, and the ID of the set is
returned in the response. If an AttachmentSetId
is
specified, the attachments are added to the specified set, if it exists.
attachmentSetId
- The ID of the attachment set. If an AttachmentSetId
is not specified, a new attachment set is created, and the ID of
the set is returned in the response. If an
AttachmentSetId
is specified, the attachments are
added to the specified set, if it exists.public java.lang.String getAttachmentSetId()
The ID of the attachment set. If an AttachmentSetId
is not
specified, a new attachment set is created, and the ID of the set is
returned in the response. If an AttachmentSetId
is
specified, the attachments are added to the specified set, if it exists.
AttachmentSetId
is not specified, a new attachment set is created, and the ID of
the set is returned in the response. If an
AttachmentSetId
is specified, the attachments are
added to the specified set, if it exists.public AddAttachmentsToSetRequest withAttachmentSetId(java.lang.String attachmentSetId)
The ID of the attachment set. If an AttachmentSetId
is not
specified, a new attachment set is created, and the ID of the set is
returned in the response. If an AttachmentSetId
is
specified, the attachments are added to the specified set, if it exists.
attachmentSetId
- The ID of the attachment set. If an AttachmentSetId
is not specified, a new attachment set is created, and the ID of
the set is returned in the response. If an
AttachmentSetId
is specified, the attachments are
added to the specified set, if it exists.public java.util.List<Attachment> getAttachments()
One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.
public void setAttachments(java.util.Collection<Attachment> attachments)
One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.
attachments
- One or more attachments to add to the set. The limit is 3
attachments per set, and the size limit is 5 MB per attachment.public AddAttachmentsToSetRequest withAttachments(Attachment... attachments)
One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.
NOTE: This method appends the values to the existing list (if
any). Use setAttachments(java.util.Collection)
or
withAttachments(java.util.Collection)
if you want to override
the existing values.
attachments
- One or more attachments to add to the set. The limit is 3
attachments per set, and the size limit is 5 MB per attachment.public AddAttachmentsToSetRequest withAttachments(java.util.Collection<Attachment> attachments)
One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.
attachments
- One or more attachments to add to the set. The limit is 3
attachments per set, and the size limit is 5 MB per attachment.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AddAttachmentsToSetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()