Struct aws_sdk_connect::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder
source · pub struct UpdateContactAttributesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateContactAttributes
.
Creates or updates user-defined contact attributes associated with the specified contact.
You can create or update user-defined attributes for both ongoing and completed contacts. For example, while the call is active, you can update the customer's name or the reason the customer called. You can add notes about steps that the agent took during the call that display to the next agent that takes the call. You can also update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or to identify abusive callers.
Contact attributes are available in Amazon Connect for 24 months, and are then deleted. For information about contact record retention and the maximum size of the contact record attributes section, see Feature specifications in the Amazon Connect Administrator Guide.
Implementations§
source§impl UpdateContactAttributesFluentBuilder
impl UpdateContactAttributesFluentBuilder
sourcepub fn as_input(&self) -> &UpdateContactAttributesInputBuilder
pub fn as_input(&self) -> &UpdateContactAttributesInputBuilder
Access the UpdateContactAttributes as a reference.
sourcepub async fn send(
self
) -> Result<UpdateContactAttributesOutput, SdkError<UpdateContactAttributesError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateContactAttributesOutput, SdkError<UpdateContactAttributesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateContactAttributesOutput, UpdateContactAttributesError, Self>, SdkError<UpdateContactAttributesError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateContactAttributesOutput, UpdateContactAttributesError, Self>, SdkError<UpdateContactAttributesError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn initial_contact_id(self, input: impl Into<String>) -> Self
pub fn initial_contact_id(self, input: impl Into<String>) -> Self
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
sourcepub fn set_initial_contact_id(self, input: Option<String>) -> Self
pub fn set_initial_contact_id(self, input: Option<String>) -> Self
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
sourcepub fn get_initial_contact_id(&self) -> &Option<String>
pub fn get_initial_contact_id(&self) -> &Option<String>
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
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.
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 attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to Attributes
.
To override the contents of this collection use set_attributes
.
The Amazon Connect attributes. These attributes can be accessed in flows just like any other contact attributes.
You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
The Amazon Connect attributes. These attributes can be accessed in flows just like any other contact attributes.
You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
The Amazon Connect attributes. These attributes can be accessed in flows just like any other contact attributes.
You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
Trait Implementations§
source§impl Clone for UpdateContactAttributesFluentBuilder
impl Clone for UpdateContactAttributesFluentBuilder
source§fn clone(&self) -> UpdateContactAttributesFluentBuilder
fn clone(&self) -> UpdateContactAttributesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more