#[non_exhaustive]pub struct CreateTaskTemplateInput {
pub instance_id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub contact_flow_id: Option<String>,
pub constraints: Option<TaskTemplateConstraints>,
pub defaults: Option<TaskTemplateDefaults>,
pub status: Option<TaskTemplateStatus>,
pub fields: Option<Vec<TaskTemplateField>>,
pub client_token: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_id: Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
name: Option<String>
The name of the task template.
description: Option<String>
The description of the task template.
contact_flow_id: Option<String>
The identifier of the flow that runs by default when a task is created by referencing this template.
constraints: Option<TaskTemplateConstraints>
Constraints that are applicable to the fields listed.
defaults: Option<TaskTemplateDefaults>
The default values for fields when a task is created by referencing this template.
status: 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.
fields: Option<Vec<TaskTemplateField>>
Fields that are part of the template.
client_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Implementations§
source§impl CreateTaskTemplateInput
impl CreateTaskTemplateInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
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) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the task template.
sourcepub fn contact_flow_id(&self) -> Option<&str>
pub fn contact_flow_id(&self) -> Option<&str>
The identifier of the flow that runs by default when a task is created by referencing this template.
sourcepub fn constraints(&self) -> Option<&TaskTemplateConstraints>
pub fn constraints(&self) -> Option<&TaskTemplateConstraints>
Constraints that are applicable to the fields listed.
sourcepub fn defaults(&self) -> Option<&TaskTemplateDefaults>
pub fn defaults(&self) -> Option<&TaskTemplateDefaults>
The default values for fields when a task is created by referencing this template.
sourcepub fn status(&self) -> Option<&TaskTemplateStatus>
pub fn 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) -> &[TaskTemplateField]
pub fn fields(&self) -> &[TaskTemplateField]
Fields that are part of the template.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .fields.is_none()
.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
source§impl CreateTaskTemplateInput
impl CreateTaskTemplateInput
sourcepub fn builder() -> CreateTaskTemplateInputBuilder
pub fn builder() -> CreateTaskTemplateInputBuilder
Creates a new builder-style object to manufacture CreateTaskTemplateInput
.
Trait Implementations§
source§impl Clone for CreateTaskTemplateInput
impl Clone for CreateTaskTemplateInput
source§fn clone(&self) -> CreateTaskTemplateInput
fn clone(&self) -> CreateTaskTemplateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateTaskTemplateInput
impl Debug for CreateTaskTemplateInput
source§impl PartialEq for CreateTaskTemplateInput
impl PartialEq for CreateTaskTemplateInput
source§fn eq(&self, other: &CreateTaskTemplateInput) -> bool
fn eq(&self, other: &CreateTaskTemplateInput) -> bool
self
and other
values to be equal, and is used
by ==
.