public class UpdateContactAttributesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates or updates the contact attributes associated with the specified contact.
You can add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed 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 identifying abusive callers.
Contact attributes are available in Amazon Connect for 24 months, and are then deleted.
Important: You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.
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, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
Constraints:
Length: 1 - 100
instanceId
- The identifier of the Amazon Connect instance.
public UpdateContactAttributesRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect 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.
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
The Amazon Connect attributes. These attributes can be accessed in contact 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 contact 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 contact 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 contact 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 contact 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 contact 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 contact 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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.