Struct aws_sdk_support::operation::add_attachments_to_set::builders::AddAttachmentsToSetFluentBuilder
source · pub struct AddAttachmentsToSetFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AddAttachmentsToSet
.
Adds one or more attachments to an attachment set.
An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The expiryTime
returned in the response is when the set expires.
-
You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
-
If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
error message appears. For information about changing your support plan, see Amazon Web Services Support.
Implementations§
source§impl AddAttachmentsToSetFluentBuilder
impl AddAttachmentsToSetFluentBuilder
sourcepub fn as_input(&self) -> &AddAttachmentsToSetInputBuilder
pub fn as_input(&self) -> &AddAttachmentsToSetInputBuilder
Access the AddAttachmentsToSet as a reference.
sourcepub async fn send(
self
) -> Result<AddAttachmentsToSetOutput, SdkError<AddAttachmentsToSetError, HttpResponse>>
pub async fn send( self ) -> Result<AddAttachmentsToSetOutput, SdkError<AddAttachmentsToSetError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AddAttachmentsToSetOutput, AddAttachmentsToSetError, Self>, SdkError<AddAttachmentsToSetError>>
pub async fn customize( self ) -> Result<CustomizableOperation<AddAttachmentsToSetOutput, AddAttachmentsToSetError, Self>, SdkError<AddAttachmentsToSetError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn attachment_set_id(self, input: impl Into<String>) -> Self
pub fn attachment_set_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_attachment_set_id(self, input: Option<String>) -> Self
pub fn set_attachment_set_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_attachment_set_id(&self) -> &Option<String>
pub fn get_attachment_set_id(&self) -> &Option<String>
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.
sourcepub fn attachments(self, input: Attachment) -> Self
pub fn attachments(self, input: Attachment) -> Self
Appends an item to attachments
.
To override the contents of this collection use set_attachments
.
One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.
In the Attachment
object, use the data
parameter to specify the contents of the attachment file. In the previous request syntax, the value for data
appear as blob
, which is represented as a base64-encoded string. The value for fileName
is the name of the attachment, such as troubleshoot-screenshot.png
.
sourcepub fn set_attachments(self, input: Option<Vec<Attachment>>) -> Self
pub fn set_attachments(self, input: Option<Vec<Attachment>>) -> Self
One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.
In the Attachment
object, use the data
parameter to specify the contents of the attachment file. In the previous request syntax, the value for data
appear as blob
, which is represented as a base64-encoded string. The value for fileName
is the name of the attachment, such as troubleshoot-screenshot.png
.
sourcepub fn get_attachments(&self) -> &Option<Vec<Attachment>>
pub fn get_attachments(&self) -> &Option<Vec<Attachment>>
One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.
In the Attachment
object, use the data
parameter to specify the contents of the attachment file. In the previous request syntax, the value for data
appear as blob
, which is represented as a base64-encoded string. The value for fileName
is the name of the attachment, such as troubleshoot-screenshot.png
.
Trait Implementations§
source§impl Clone for AddAttachmentsToSetFluentBuilder
impl Clone for AddAttachmentsToSetFluentBuilder
source§fn clone(&self) -> AddAttachmentsToSetFluentBuilder
fn clone(&self) -> AddAttachmentsToSetFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more