Struct aws_sdk_lexruntime::types::builders::ResponseCardBuilder
source · #[non_exhaustive]pub struct ResponseCardBuilder { /* private fields */ }
Expand description
A builder for ResponseCard
.
Implementations§
source§impl ResponseCardBuilder
impl ResponseCardBuilder
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version of the response card format.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the response card format.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the response card format.
sourcepub fn content_type(self, input: ContentType) -> Self
pub fn content_type(self, input: ContentType) -> Self
The content type of the response.
sourcepub fn set_content_type(self, input: Option<ContentType>) -> Self
pub fn set_content_type(self, input: Option<ContentType>) -> Self
The content type of the response.
sourcepub fn get_content_type(&self) -> &Option<ContentType>
pub fn get_content_type(&self) -> &Option<ContentType>
The content type of the response.
sourcepub fn generic_attachments(self, input: GenericAttachment) -> Self
pub fn generic_attachments(self, input: GenericAttachment) -> Self
Appends an item to generic_attachments
.
To override the contents of this collection use set_generic_attachments
.
An array of attachment objects representing options.
sourcepub fn set_generic_attachments(
self,
input: Option<Vec<GenericAttachment>>,
) -> Self
pub fn set_generic_attachments( self, input: Option<Vec<GenericAttachment>>, ) -> Self
An array of attachment objects representing options.
sourcepub fn get_generic_attachments(&self) -> &Option<Vec<GenericAttachment>>
pub fn get_generic_attachments(&self) -> &Option<Vec<GenericAttachment>>
An array of attachment objects representing options.
sourcepub fn build(self) -> ResponseCard
pub fn build(self) -> ResponseCard
Consumes the builder and constructs a ResponseCard
.
Trait Implementations§
source§impl Clone for ResponseCardBuilder
impl Clone for ResponseCardBuilder
source§fn clone(&self) -> ResponseCardBuilder
fn clone(&self) -> ResponseCardBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResponseCardBuilder
impl Debug for ResponseCardBuilder
source§impl Default for ResponseCardBuilder
impl Default for ResponseCardBuilder
source§fn default() -> ResponseCardBuilder
fn default() -> ResponseCardBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResponseCardBuilder
impl PartialEq for ResponseCardBuilder
impl StructuralPartialEq for ResponseCardBuilder
Auto Trait Implementations§
impl Freeze for ResponseCardBuilder
impl RefUnwindSafe for ResponseCardBuilder
impl Send for ResponseCardBuilder
impl Sync for ResponseCardBuilder
impl Unpin for ResponseCardBuilder
impl UnwindSafe for ResponseCardBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.