public class UpdateContactAttributesRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
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.
| Constructor and Description |
|---|
UpdateContactAttributesRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateContactAttributesRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value)
The Amazon Connect attributes.
|
UpdateContactAttributesRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
The Amazon Connect attributes.
|
java.lang.String |
getInitialContactId()
The identifier of the contact.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The Amazon Connect attributes.
|
void |
setInitialContactId(java.lang.String initialContactId)
The identifier of the contact.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateContactAttributesRequest |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The Amazon Connect attributes.
|
UpdateContactAttributesRequest |
withInitialContactId(java.lang.String initialContactId)
The identifier of the contact.
|
UpdateContactAttributesRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getInitialContactId()
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
Constraints:
Length: 1 - 256
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
public void setInitialContactId(java.lang.String initialContactId)
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
Constraints:
Length: 1 - 256
initialContactId - The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
public UpdateContactAttributesRequest withInitialContactId(java.lang.String initialContactId)
The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
initialContactId - The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.
public java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public UpdateContactAttributesRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
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.
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.
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> 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.
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.
public UpdateContactAttributesRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> 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.
Returns a reference to this object so that method calls can be chained together.
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.
public UpdateContactAttributesRequest addAttributesEntry(java.lang.String key, java.lang.String value)
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.
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into
Attributes.public UpdateContactAttributesRequest clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object