Struct aws_sdk_connect::operation::update_task_template::builders::UpdateTaskTemplateInputBuilder
source · #[non_exhaustive]pub struct UpdateTaskTemplateInputBuilder { /* private fields */ }
Expand description
A builder for UpdateTaskTemplateInput
.
Implementations§
source§impl UpdateTaskTemplateInputBuilder
impl UpdateTaskTemplateInputBuilder
sourcepub fn task_template_id(self, input: impl Into<String>) -> Self
pub fn task_template_id(self, input: impl Into<String>) -> Self
A unique identifier for the task template.
This field is required.sourcepub fn set_task_template_id(self, input: Option<String>) -> Self
pub fn set_task_template_id(self, input: Option<String>) -> Self
A unique identifier for the task template.
sourcepub fn get_task_template_id(&self) -> &Option<String>
pub fn get_task_template_id(&self) -> &Option<String>
A unique identifier for the task template.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the task template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the task template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the task template.
sourcepub fn contact_flow_id(self, input: impl Into<String>) -> Self
pub fn contact_flow_id(self, input: impl Into<String>) -> Self
The identifier of the flow that runs by default when a task is created by referencing this template.
sourcepub fn set_contact_flow_id(self, input: Option<String>) -> Self
pub fn set_contact_flow_id(self, input: Option<String>) -> Self
The identifier of the flow that runs by default when a task is created by referencing this template.
sourcepub fn get_contact_flow_id(&self) -> &Option<String>
pub fn get_contact_flow_id(&self) -> &Option<String>
The identifier of the flow that runs by default when a task is created by referencing this template.
sourcepub fn constraints(self, input: TaskTemplateConstraints) -> Self
pub fn constraints(self, input: TaskTemplateConstraints) -> Self
Constraints that are applicable to the fields listed.
sourcepub fn set_constraints(self, input: Option<TaskTemplateConstraints>) -> Self
pub fn set_constraints(self, input: Option<TaskTemplateConstraints>) -> Self
Constraints that are applicable to the fields listed.
sourcepub fn get_constraints(&self) -> &Option<TaskTemplateConstraints>
pub fn get_constraints(&self) -> &Option<TaskTemplateConstraints>
Constraints that are applicable to the fields listed.
sourcepub fn defaults(self, input: TaskTemplateDefaults) -> Self
pub fn defaults(self, input: TaskTemplateDefaults) -> Self
The default values for fields when a task is created by referencing this template.
sourcepub fn set_defaults(self, input: Option<TaskTemplateDefaults>) -> Self
pub fn set_defaults(self, input: Option<TaskTemplateDefaults>) -> Self
The default values for fields when a task is created by referencing this template.
sourcepub fn get_defaults(&self) -> &Option<TaskTemplateDefaults>
pub fn get_defaults(&self) -> &Option<TaskTemplateDefaults>
The default values for fields when a task is created by referencing this template.
sourcepub fn status(self, input: TaskTemplateStatus) -> Self
pub fn status(self, input: TaskTemplateStatus) -> Self
Marks a template as ACTIVE
or INACTIVE
for a task to refer to it. Tasks can only be created from ACTIVE
templates. If a template is marked as INACTIVE
, then a task that refers to this template cannot be created.
sourcepub fn set_status(self, input: Option<TaskTemplateStatus>) -> Self
pub fn set_status(self, input: Option<TaskTemplateStatus>) -> Self
Marks a template as ACTIVE
or INACTIVE
for a task to refer to it. Tasks can only be created from ACTIVE
templates. If a template is marked as INACTIVE
, then a task that refers to this template cannot be created.
sourcepub fn get_status(&self) -> &Option<TaskTemplateStatus>
pub fn get_status(&self) -> &Option<TaskTemplateStatus>
Marks a template as ACTIVE
or INACTIVE
for a task to refer to it. Tasks can only be created from ACTIVE
templates. If a template is marked as INACTIVE
, then a task that refers to this template cannot be created.
sourcepub fn fields(self, input: TaskTemplateField) -> Self
pub fn fields(self, input: TaskTemplateField) -> Self
Appends an item to fields
.
To override the contents of this collection use set_fields
.
Fields that are part of the template.
sourcepub fn set_fields(self, input: Option<Vec<TaskTemplateField>>) -> Self
pub fn set_fields(self, input: Option<Vec<TaskTemplateField>>) -> Self
Fields that are part of the template.
sourcepub fn get_fields(&self) -> &Option<Vec<TaskTemplateField>>
pub fn get_fields(&self) -> &Option<Vec<TaskTemplateField>>
Fields that are part of the template.
sourcepub fn build(self) -> Result<UpdateTaskTemplateInput, BuildError>
pub fn build(self) -> Result<UpdateTaskTemplateInput, BuildError>
Consumes the builder and constructs a UpdateTaskTemplateInput
.
source§impl UpdateTaskTemplateInputBuilder
impl UpdateTaskTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateTaskTemplateOutput, SdkError<UpdateTaskTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateTaskTemplateOutput, SdkError<UpdateTaskTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateTaskTemplateInputBuilder
impl Clone for UpdateTaskTemplateInputBuilder
source§fn clone(&self) -> UpdateTaskTemplateInputBuilder
fn clone(&self) -> UpdateTaskTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateTaskTemplateInputBuilder
impl Default for UpdateTaskTemplateInputBuilder
source§fn default() -> UpdateTaskTemplateInputBuilder
fn default() -> UpdateTaskTemplateInputBuilder
source§impl PartialEq for UpdateTaskTemplateInputBuilder
impl PartialEq for UpdateTaskTemplateInputBuilder
source§fn eq(&self, other: &UpdateTaskTemplateInputBuilder) -> bool
fn eq(&self, other: &UpdateTaskTemplateInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.