Struct aws_sdk_support::operation::add_attachments_to_set::builders::AddAttachmentsToSetInputBuilder
source · #[non_exhaustive]pub struct AddAttachmentsToSetInputBuilder { /* private fields */ }
Expand description
A builder for AddAttachmentsToSetInput
.
Implementations§
source§impl AddAttachmentsToSetInputBuilder
impl AddAttachmentsToSetInputBuilder
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
.
sourcepub fn build(self) -> Result<AddAttachmentsToSetInput, BuildError>
pub fn build(self) -> Result<AddAttachmentsToSetInput, BuildError>
Consumes the builder and constructs a AddAttachmentsToSetInput
.
source§impl AddAttachmentsToSetInputBuilder
impl AddAttachmentsToSetInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AddAttachmentsToSetOutput, SdkError<AddAttachmentsToSetError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AddAttachmentsToSetOutput, SdkError<AddAttachmentsToSetError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AddAttachmentsToSetInputBuilder
impl Clone for AddAttachmentsToSetInputBuilder
source§fn clone(&self) -> AddAttachmentsToSetInputBuilder
fn clone(&self) -> AddAttachmentsToSetInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AddAttachmentsToSetInputBuilder
impl Default for AddAttachmentsToSetInputBuilder
source§fn default() -> AddAttachmentsToSetInputBuilder
fn default() -> AddAttachmentsToSetInputBuilder
source§impl PartialEq for AddAttachmentsToSetInputBuilder
impl PartialEq for AddAttachmentsToSetInputBuilder
source§fn eq(&self, other: &AddAttachmentsToSetInputBuilder) -> bool
fn eq(&self, other: &AddAttachmentsToSetInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddAttachmentsToSetInputBuilder
Auto Trait Implementations§
impl Freeze for AddAttachmentsToSetInputBuilder
impl RefUnwindSafe for AddAttachmentsToSetInputBuilder
impl Send for AddAttachmentsToSetInputBuilder
impl Sync for AddAttachmentsToSetInputBuilder
impl Unpin for AddAttachmentsToSetInputBuilder
impl UnwindSafe for AddAttachmentsToSetInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more