#[non_exhaustive]pub struct CreateContextInputBuilder { /* private fields */ }
Expand description
A builder for CreateContextInput
.
Implementations§
source§impl CreateContextInputBuilder
impl CreateContextInputBuilder
sourcepub fn context_name(self, input: impl Into<String>) -> Self
pub fn context_name(self, input: impl Into<String>) -> Self
The name of the context. Must be unique to your account in an Amazon Web Services Region.
This field is required.sourcepub fn set_context_name(self, input: Option<String>) -> Self
pub fn set_context_name(self, input: Option<String>) -> Self
The name of the context. Must be unique to your account in an Amazon Web Services Region.
sourcepub fn get_context_name(&self) -> &Option<String>
pub fn get_context_name(&self) -> &Option<String>
The name of the context. Must be unique to your account in an Amazon Web Services Region.
sourcepub fn source(self, input: ContextSource) -> Self
pub fn source(self, input: ContextSource) -> Self
The source type, ID, and URI.
This field is required.sourcepub fn set_source(self, input: Option<ContextSource>) -> Self
pub fn set_source(self, input: Option<ContextSource>) -> Self
The source type, ID, and URI.
sourcepub fn get_source(&self) -> &Option<ContextSource>
pub fn get_source(&self) -> &Option<ContextSource>
The source type, ID, and URI.
sourcepub fn context_type(self, input: impl Into<String>) -> Self
pub fn context_type(self, input: impl Into<String>) -> Self
The context type.
This field is required.sourcepub fn set_context_type(self, input: Option<String>) -> Self
pub fn set_context_type(self, input: Option<String>) -> Self
The context type.
sourcepub fn get_context_type(&self) -> &Option<String>
pub fn get_context_type(&self) -> &Option<String>
The context type.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the context.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the context.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the context.
sourcepub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to properties
.
To override the contents of this collection use set_properties
.
A list of properties to add to the context.
sourcepub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
A list of properties to add to the context.
sourcepub fn get_properties(&self) -> &Option<HashMap<String, String>>
pub fn get_properties(&self) -> &Option<HashMap<String, String>>
A list of properties to add to the context.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tags to apply to the context.
A list of tags to apply to the context.
A list of tags to apply to the context.
sourcepub fn build(self) -> Result<CreateContextInput, BuildError>
pub fn build(self) -> Result<CreateContextInput, BuildError>
Consumes the builder and constructs a CreateContextInput
.
source§impl CreateContextInputBuilder
impl CreateContextInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateContextOutput, SdkError<CreateContextError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateContextOutput, SdkError<CreateContextError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateContextInputBuilder
impl Clone for CreateContextInputBuilder
source§fn clone(&self) -> CreateContextInputBuilder
fn clone(&self) -> CreateContextInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateContextInputBuilder
impl Debug for CreateContextInputBuilder
source§impl Default for CreateContextInputBuilder
impl Default for CreateContextInputBuilder
source§fn default() -> CreateContextInputBuilder
fn default() -> CreateContextInputBuilder
source§impl PartialEq for CreateContextInputBuilder
impl PartialEq for CreateContextInputBuilder
source§fn eq(&self, other: &CreateContextInputBuilder) -> bool
fn eq(&self, other: &CreateContextInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateContextInputBuilder
Auto Trait Implementations§
impl Freeze for CreateContextInputBuilder
impl RefUnwindSafe for CreateContextInputBuilder
impl Send for CreateContextInputBuilder
impl Sync for CreateContextInputBuilder
impl Unpin for CreateContextInputBuilder
impl UnwindSafe for CreateContextInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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