#[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.
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 source(self, input: ContextSource) -> Self
pub fn source(self, input: ContextSource) -> Self
The source type, ID, and URI.
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 context_type(self, input: impl Into<String>) -> Self
pub fn context_type(self, input: impl Into<String>) -> Self
The context type.
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 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 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.
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.
sourcepub fn build(self) -> Result<CreateContextInput, BuildError>
pub fn build(self) -> Result<CreateContextInput, BuildError>
Consumes the builder and constructs a CreateContextInput
.
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<CreateContextInputBuilder> for CreateContextInputBuilder
impl PartialEq<CreateContextInputBuilder> 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 ==
.