Class AddAttachmentsToSetRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.support.model.AddAttachmentsToSetRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class AddAttachmentsToSetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AddAttachmentsToSetRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setAttachmentSetId
public void setAttachmentSetId(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 anAttachmentSetId
is specified, the attachments are added to the specified set, if it exists.- Parameters:
attachmentSetId
- The ID of the attachment set. If anAttachmentSetId
is not specified, a new attachment set is created, and the ID of the set is returned in the response. If anAttachmentSetId
is specified, the attachments are added to the specified set, if it exists.
-
getAttachmentSetId
public 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 anAttachmentSetId
is specified, the attachments are added to the specified set, if it exists.- Returns:
- 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 anAttachmentSetId
is specified, the attachments are added to the specified set, if it exists.
-
withAttachmentSetId
public AddAttachmentsToSetRequest withAttachmentSetId(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 anAttachmentSetId
is specified, the attachments are added to the specified set, if it exists.- Parameters:
attachmentSetId
- The ID of the attachment set. If anAttachmentSetId
is not specified, a new attachment set is created, and the ID of the set is returned in the response. If anAttachmentSetId
is specified, the attachments are added to the specified set, if it exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttachments
public 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.
- Returns:
- 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.
-
setAttachments
public void setAttachments(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.
- Parameters:
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.
-
withAttachments
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)
orwithAttachments(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttachments
public AddAttachmentsToSetRequest withAttachments(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AddAttachmentsToSetRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-