Struct aws_sdk_connectcases::input::create_template_input::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for CreateTemplateInput
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn domain_id(self, input: impl Into<String>) -> Self
pub fn domain_id(self, input: impl Into<String>) -> Self
The unique identifier of the Cases domain.
sourcepub fn set_domain_id(self, input: Option<String>) -> Self
pub fn set_domain_id(self, input: Option<String>) -> Self
The unique identifier of the Cases domain.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the template. It must be unique per domain.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the template. It must be unique per domain.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the template.
sourcepub fn layout_configuration(self, input: LayoutConfiguration) -> Self
pub fn layout_configuration(self, input: LayoutConfiguration) -> Self
Configuration of layouts associated to the template.
sourcepub fn set_layout_configuration(self, input: Option<LayoutConfiguration>) -> Self
pub fn set_layout_configuration(self, input: Option<LayoutConfiguration>) -> Self
Configuration of layouts associated to the template.
sourcepub fn required_fields(self, input: RequiredField) -> Self
pub fn required_fields(self, input: RequiredField) -> Self
Appends an item to required_fields
.
To override the contents of this collection use set_required_fields
.
A list of fields that must contain a value for a case to be successfully created with this template.
sourcepub fn set_required_fields(self, input: Option<Vec<RequiredField>>) -> Self
pub fn set_required_fields(self, input: Option<Vec<RequiredField>>) -> Self
A list of fields that must contain a value for a case to be successfully created with this template.
sourcepub fn build(self) -> Result<CreateTemplateInput, BuildError>
pub fn build(self) -> Result<CreateTemplateInput, BuildError>
Consumes the builder and constructs a CreateTemplateInput
.