#[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 ==
.