public class AddAttachmentsToSetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AddAttachmentsToSet operation.
Adds one or more attachments to an 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.
An attachment set is a temporary container for attachments that are to
be added to a case or case communication. The set is available for one
hour after it is created; the ExpiryTime returned in the
response indicates when the set expires. The maximum number of
attachments in a set is 3, and the maximum size of any attachment in
the set is 5 MB.
NOOP| Constructor and Description |
|---|
AddAttachmentsToSetRequest() |
| Modifier and Type | Method and Description |
|---|---|
AddAttachmentsToSetRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<Attachment> |
getAttachments()
One or more attachments to add to the set.
|
String |
getAttachmentSetId()
The ID of the attachment set.
|
int |
hashCode() |
void |
setAttachments(Collection<Attachment> attachments)
One or more attachments to add to the set.
|
void |
setAttachmentSetId(String attachmentSetId)
The ID of the attachment set.
|
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(Collection<Attachment> attachments)
One or more attachments to add to the set.
|
AddAttachmentsToSetRequest |
withAttachmentSetId(String attachmentSetId)
The ID of the attachment set.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getAttachmentSetId()
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 void setAttachmentSetId(String attachmentSetId)
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 AddAttachmentsToSetRequest withAttachmentSetId(String attachmentSetId)
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.
Returns a reference to this object so that method calls can be chained together.
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 List<Attachment> getAttachments()
public void setAttachments(Collection<Attachment> attachments)
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)
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.
Returns a reference to this object so that method calls can be chained together.
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(Collection<Attachment> attachments)
Returns a reference to this object so that method calls can be chained together.
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 String toString()
toString in class ObjectObject.toString()public AddAttachmentsToSetRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.