Struct aws_sdk_sagemaker::input::create_context_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateContextInput
.
Implementations§
source§impl Builder
impl Builder
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
.