#[non_exhaustive]pub struct TaskActionDefinitionBuilder { /* private fields */ }
Expand description
A builder for TaskActionDefinition
.
Implementations§
source§impl TaskActionDefinitionBuilder
impl TaskActionDefinitionBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
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.
This field is required.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.
sourcepub fn get_contact_flow_id(&self) -> &Option<String>
pub fn get_contact_flow_id(&self) -> &Option<String>
The identifier of the flow.
sourcepub fn references(self, k: impl Into<String>, v: Reference) -> Self
pub fn references(self, k: impl Into<String>, v: Reference) -> Self
Adds a key-value pair to references
.
To override the contents of this collection use set_references
.
Information about the reference when the referenceType
is URL
. Otherwise, null. (Supports variable injection in the Value
field.)
sourcepub fn set_references(self, input: Option<HashMap<String, Reference>>) -> Self
pub fn set_references(self, input: Option<HashMap<String, Reference>>) -> Self
Information about the reference when the referenceType
is URL
. Otherwise, null. (Supports variable injection in the Value
field.)
sourcepub fn get_references(&self) -> &Option<HashMap<String, Reference>>
pub fn get_references(&self) -> &Option<HashMap<String, Reference>>
Information about the reference when the referenceType
is URL
. Otherwise, null. (Supports variable injection in the Value
field.)
sourcepub fn build(self) -> Result<TaskActionDefinition, BuildError>
pub fn build(self) -> Result<TaskActionDefinition, BuildError>
Consumes the builder and constructs a TaskActionDefinition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TaskActionDefinitionBuilder
impl Clone for TaskActionDefinitionBuilder
source§fn clone(&self) -> TaskActionDefinitionBuilder
fn clone(&self) -> TaskActionDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskActionDefinitionBuilder
impl Debug for TaskActionDefinitionBuilder
source§impl Default for TaskActionDefinitionBuilder
impl Default for TaskActionDefinitionBuilder
source§fn default() -> TaskActionDefinitionBuilder
fn default() -> TaskActionDefinitionBuilder
source§impl PartialEq for TaskActionDefinitionBuilder
impl PartialEq for TaskActionDefinitionBuilder
source§fn eq(&self, other: &TaskActionDefinitionBuilder) -> bool
fn eq(&self, other: &TaskActionDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskActionDefinitionBuilder
Auto Trait Implementations§
impl Freeze for TaskActionDefinitionBuilder
impl RefUnwindSafe for TaskActionDefinitionBuilder
impl Send for TaskActionDefinitionBuilder
impl Sync for TaskActionDefinitionBuilder
impl Unpin for TaskActionDefinitionBuilder
impl UnwindSafe for TaskActionDefinitionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more