public class Contact
extends java.lang.Object
implements java.io.Serializable
Contains information about a contact.
| Constructor and Description |
|---|
Contact() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AgentInfo |
getAgentInfo()
Information about the agent who accepted the contact.
|
java.lang.String |
getArn()
The Amazon Resource Name (ARN) for the contact.
|
java.lang.String |
getChannel()
How the contact reached your contact center.
|
java.lang.String |
getDescription()
The description of the contact.
|
java.util.Date |
getDisconnectTimestamp()
The timestamp when the customer endpoint disconnected from Amazon
Connect.
|
java.lang.String |
getId()
The identifier for the contact.
|
java.lang.String |
getInitialContactId()
If this contact is related to other contacts, this is the ID of the
initial contact.
|
java.lang.String |
getInitiationMethod()
Indicates how the contact was initiated.
|
java.util.Date |
getInitiationTimestamp()
The date and time this contact was initiated, in UTC time.
|
java.util.Date |
getLastUpdateTimestamp()
The timestamp when contact was last updated.
|
java.lang.String |
getName()
The name of the contact.
|
java.lang.String |
getPreviousContactId()
If this contact is not the first contact, this is the ID of the previous
contact.
|
QueueInfo |
getQueueInfo()
If this contact was queued, this contains information about the queue.
|
java.lang.String |
getRelatedContactId()
The contactId that is related to this contact.
|
java.util.Date |
getScheduledTimestamp()
The timestamp, in Unix epoch time format, at which to start running the
inbound flow.
|
WisdomInfo |
getWisdomInfo()
Information about Amazon Connect Wisdom.
|
int |
hashCode() |
void |
setAgentInfo(AgentInfo agentInfo)
Information about the agent who accepted the contact.
|
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the contact.
|
void |
setChannel(Channel channel)
How the contact reached your contact center.
|
void |
setChannel(java.lang.String channel)
How the contact reached your contact center.
|
void |
setDescription(java.lang.String description)
The description of the contact.
|
void |
setDisconnectTimestamp(java.util.Date disconnectTimestamp)
The timestamp when the customer endpoint disconnected from Amazon
Connect.
|
void |
setId(java.lang.String id)
The identifier for the contact.
|
void |
setInitialContactId(java.lang.String initialContactId)
If this contact is related to other contacts, this is the ID of the
initial contact.
|
void |
setInitiationMethod(ContactInitiationMethod initiationMethod)
Indicates how the contact was initiated.
|
void |
setInitiationMethod(java.lang.String initiationMethod)
Indicates how the contact was initiated.
|
void |
setInitiationTimestamp(java.util.Date initiationTimestamp)
The date and time this contact was initiated, in UTC time.
|
void |
setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp)
The timestamp when contact was last updated.
|
void |
setName(java.lang.String name)
The name of the contact.
|
void |
setPreviousContactId(java.lang.String previousContactId)
If this contact is not the first contact, this is the ID of the previous
contact.
|
void |
setQueueInfo(QueueInfo queueInfo)
If this contact was queued, this contains information about the queue.
|
void |
setRelatedContactId(java.lang.String relatedContactId)
The contactId that is related to this contact.
|
void |
setScheduledTimestamp(java.util.Date scheduledTimestamp)
The timestamp, in Unix epoch time format, at which to start running the
inbound flow.
|
void |
setWisdomInfo(WisdomInfo wisdomInfo)
Information about Amazon Connect Wisdom.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Contact |
withAgentInfo(AgentInfo agentInfo)
Information about the agent who accepted the contact.
|
Contact |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the contact.
|
Contact |
withChannel(Channel channel)
How the contact reached your contact center.
|
Contact |
withChannel(java.lang.String channel)
How the contact reached your contact center.
|
Contact |
withDescription(java.lang.String description)
The description of the contact.
|
Contact |
withDisconnectTimestamp(java.util.Date disconnectTimestamp)
The timestamp when the customer endpoint disconnected from Amazon
Connect.
|
Contact |
withId(java.lang.String id)
The identifier for the contact.
|
Contact |
withInitialContactId(java.lang.String initialContactId)
If this contact is related to other contacts, this is the ID of the
initial contact.
|
Contact |
withInitiationMethod(ContactInitiationMethod initiationMethod)
Indicates how the contact was initiated.
|
Contact |
withInitiationMethod(java.lang.String initiationMethod)
Indicates how the contact was initiated.
|
Contact |
withInitiationTimestamp(java.util.Date initiationTimestamp)
The date and time this contact was initiated, in UTC time.
|
Contact |
withLastUpdateTimestamp(java.util.Date lastUpdateTimestamp)
The timestamp when contact was last updated.
|
Contact |
withName(java.lang.String name)
The name of the contact.
|
Contact |
withPreviousContactId(java.lang.String previousContactId)
If this contact is not the first contact, this is the ID of the previous
contact.
|
Contact |
withQueueInfo(QueueInfo queueInfo)
If this contact was queued, this contains information about the queue.
|
Contact |
withRelatedContactId(java.lang.String relatedContactId)
The contactId that is related to this contact.
|
Contact |
withScheduledTimestamp(java.util.Date scheduledTimestamp)
The timestamp, in Unix epoch time format, at which to start running the
inbound flow.
|
Contact |
withWisdomInfo(WisdomInfo wisdomInfo)
Information about Amazon Connect Wisdom.
|
public java.lang.String getArn()
The Amazon Resource Name (ARN) for the contact.
The Amazon Resource Name (ARN) for the contact.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the contact.
arn - The Amazon Resource Name (ARN) for the contact.
public Contact withArn(java.lang.String arn)
The Amazon Resource Name (ARN) for the contact.
Returns a reference to this object so that method calls can be chained together.
arn - The Amazon Resource Name (ARN) for the contact.
public java.lang.String getId()
The identifier for the contact.
Constraints:
Length: 1 - 256
The identifier for the contact.
public void setId(java.lang.String id)
The identifier for the contact.
Constraints:
Length: 1 - 256
id - The identifier for the contact.
public Contact withId(java.lang.String id)
The identifier for the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
id - The identifier for the contact.
public java.lang.String getInitialContactId()
If this contact is related to other contacts, this is the ID of the initial contact.
Constraints:
Length: 1 - 256
If this contact is related to other contacts, this is the ID of the initial contact.
public void setInitialContactId(java.lang.String initialContactId)
If this contact is related to other contacts, this is the ID of the initial contact.
Constraints:
Length: 1 - 256
initialContactId - If this contact is related to other contacts, this is the ID of the initial contact.
public Contact withInitialContactId(java.lang.String initialContactId)
If this contact is related to other contacts, this is the ID of the initial contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
initialContactId - If this contact is related to other contacts, this is the ID of the initial contact.
public java.lang.String getPreviousContactId()
If this contact is not the first contact, this is the ID of the previous contact.
Constraints:
Length: 1 - 256
If this contact is not the first contact, this is the ID of the previous contact.
public void setPreviousContactId(java.lang.String previousContactId)
If this contact is not the first contact, this is the ID of the previous contact.
Constraints:
Length: 1 - 256
previousContactId - If this contact is not the first contact, this is the ID of the previous contact.
public Contact withPreviousContactId(java.lang.String previousContactId)
If this contact is not the first contact, this is the ID of the previous contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
previousContactId - If this contact is not the first contact, this is the ID of the previous contact.
public java.lang.String getInitiationMethod()
Indicates how the contact was initiated.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
Indicates how the contact was initiated.
ContactInitiationMethodpublic void setInitiationMethod(java.lang.String initiationMethod)
Indicates how the contact was initiated.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
initiationMethod - Indicates how the contact was initiated.
ContactInitiationMethodpublic Contact withInitiationMethod(java.lang.String initiationMethod)
Indicates how the contact was initiated.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
initiationMethod - Indicates how the contact was initiated.
ContactInitiationMethodpublic void setInitiationMethod(ContactInitiationMethod initiationMethod)
Indicates how the contact was initiated.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
initiationMethod - Indicates how the contact was initiated.
ContactInitiationMethodpublic Contact withInitiationMethod(ContactInitiationMethod initiationMethod)
Indicates how the contact was initiated.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
initiationMethod - Indicates how the contact was initiated.
ContactInitiationMethodpublic java.lang.String getName()
The name of the contact.
Constraints:
Length: 0 - 512
The name of the contact.
public void setName(java.lang.String name)
The name of the contact.
Constraints:
Length: 0 - 512
name - The name of the contact.
public Contact withName(java.lang.String name)
The name of the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 512
name - The name of the contact.
public java.lang.String getDescription()
The description of the contact.
Constraints:
Length: 0 - 4096
The description of the contact.
public void setDescription(java.lang.String description)
The description of the contact.
Constraints:
Length: 0 - 4096
description - The description of the contact.
public Contact withDescription(java.lang.String description)
The description of the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 4096
description - The description of the contact.
public java.lang.String getChannel()
How the contact reached your contact center.
Constraints:
Allowed Values: VOICE, CHAT, TASK
How the contact reached your contact center.
Channelpublic void setChannel(java.lang.String channel)
How the contact reached your contact center.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - How the contact reached your contact center.
Channelpublic Contact withChannel(java.lang.String channel)
How the contact reached your contact center.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - How the contact reached your contact center.
Channelpublic void setChannel(Channel channel)
How the contact reached your contact center.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - How the contact reached your contact center.
Channelpublic Contact withChannel(Channel channel)
How the contact reached your contact center.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - How the contact reached your contact center.
Channelpublic QueueInfo getQueueInfo()
If this contact was queued, this contains information about the queue.
If this contact was queued, this contains information about the queue.
public void setQueueInfo(QueueInfo queueInfo)
If this contact was queued, this contains information about the queue.
queueInfo - If this contact was queued, this contains information about the queue.
public Contact withQueueInfo(QueueInfo queueInfo)
If this contact was queued, this contains information about the queue.
Returns a reference to this object so that method calls can be chained together.
queueInfo - If this contact was queued, this contains information about the queue.
public AgentInfo getAgentInfo()
Information about the agent who accepted the contact.
Information about the agent who accepted the contact.
public void setAgentInfo(AgentInfo agentInfo)
Information about the agent who accepted the contact.
agentInfo - Information about the agent who accepted the contact.
public Contact withAgentInfo(AgentInfo agentInfo)
Information about the agent who accepted the contact.
Returns a reference to this object so that method calls can be chained together.
agentInfo - Information about the agent who accepted the contact.
public java.util.Date getInitiationTimestamp()
The date and time this contact was initiated, in UTC time. For
INBOUND, this is when the contact arrived. For
OUTBOUND, this is when the agent began dialing. For
CALLBACK, this is when the callback contact was created. For
TRANSFER and QUEUE_TRANSFER, this is when the
transfer was initiated. For API, this is when the request
arrived. For EXTERNAL_OUTBOUND, this is when the agent
started dialing the external participant. For MONITOR, this
is when the supervisor started listening to a contact.
The date and time this contact was initiated, in UTC time. For
INBOUND, this is when the contact arrived. For
OUTBOUND, this is when the agent began dialing. For
CALLBACK, this is when the callback contact was
created. For TRANSFER and
QUEUE_TRANSFER, this is when the transfer was
initiated. For API, this is when the request
arrived. For EXTERNAL_OUTBOUND, this is when the
agent started dialing the external participant. For
MONITOR, this is when the supervisor started
listening to a contact.
public void setInitiationTimestamp(java.util.Date initiationTimestamp)
The date and time this contact was initiated, in UTC time. For
INBOUND, this is when the contact arrived. For
OUTBOUND, this is when the agent began dialing. For
CALLBACK, this is when the callback contact was created. For
TRANSFER and QUEUE_TRANSFER, this is when the
transfer was initiated. For API, this is when the request
arrived. For EXTERNAL_OUTBOUND, this is when the agent
started dialing the external participant. For MONITOR, this
is when the supervisor started listening to a contact.
initiationTimestamp -
The date and time this contact was initiated, in UTC time. For
INBOUND, this is when the contact arrived. For
OUTBOUND, this is when the agent began dialing.
For CALLBACK, this is when the callback contact
was created. For TRANSFER and
QUEUE_TRANSFER, this is when the transfer was
initiated. For API, this is when the request
arrived. For EXTERNAL_OUTBOUND, this is when the
agent started dialing the external participant. For
MONITOR, this is when the supervisor started
listening to a contact.
public Contact withInitiationTimestamp(java.util.Date initiationTimestamp)
The date and time this contact was initiated, in UTC time. For
INBOUND, this is when the contact arrived. For
OUTBOUND, this is when the agent began dialing. For
CALLBACK, this is when the callback contact was created. For
TRANSFER and QUEUE_TRANSFER, this is when the
transfer was initiated. For API, this is when the request
arrived. For EXTERNAL_OUTBOUND, this is when the agent
started dialing the external participant. For MONITOR, this
is when the supervisor started listening to a contact.
Returns a reference to this object so that method calls can be chained together.
initiationTimestamp -
The date and time this contact was initiated, in UTC time. For
INBOUND, this is when the contact arrived. For
OUTBOUND, this is when the agent began dialing.
For CALLBACK, this is when the callback contact
was created. For TRANSFER and
QUEUE_TRANSFER, this is when the transfer was
initiated. For API, this is when the request
arrived. For EXTERNAL_OUTBOUND, this is when the
agent started dialing the external participant. For
MONITOR, this is when the supervisor started
listening to a contact.
public java.util.Date getDisconnectTimestamp()
The timestamp when the customer endpoint disconnected from Amazon Connect.
The timestamp when the customer endpoint disconnected from Amazon Connect.
public void setDisconnectTimestamp(java.util.Date disconnectTimestamp)
The timestamp when the customer endpoint disconnected from Amazon Connect.
disconnectTimestamp - The timestamp when the customer endpoint disconnected from Amazon Connect.
public Contact withDisconnectTimestamp(java.util.Date disconnectTimestamp)
The timestamp when the customer endpoint disconnected from Amazon Connect.
Returns a reference to this object so that method calls can be chained together.
disconnectTimestamp - The timestamp when the customer endpoint disconnected from Amazon Connect.
public java.util.Date getLastUpdateTimestamp()
The timestamp when contact was last updated.
The timestamp when contact was last updated.
public void setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp)
The timestamp when contact was last updated.
lastUpdateTimestamp - The timestamp when contact was last updated.
public Contact withLastUpdateTimestamp(java.util.Date lastUpdateTimestamp)
The timestamp when contact was last updated.
Returns a reference to this object so that method calls can be chained together.
lastUpdateTimestamp - The timestamp when contact was last updated.
public java.util.Date getScheduledTimestamp()
The timestamp, in Unix epoch time format, at which to start running the inbound flow.
The timestamp, in Unix epoch time format, at which to start running the inbound flow.
public void setScheduledTimestamp(java.util.Date scheduledTimestamp)
The timestamp, in Unix epoch time format, at which to start running the inbound flow.
scheduledTimestamp - The timestamp, in Unix epoch time format, at which to start running the inbound flow.
public Contact withScheduledTimestamp(java.util.Date scheduledTimestamp)
The timestamp, in Unix epoch time format, at which to start running the inbound flow.
Returns a reference to this object so that method calls can be chained together.
scheduledTimestamp - The timestamp, in Unix epoch time format, at which to start running the inbound flow.
public java.lang.String getRelatedContactId()
The contactId that is related to this contact.
Constraints:
Length: 1 - 256
The contactId that is related to this contact.
public void setRelatedContactId(java.lang.String relatedContactId)
The contactId that is related to this contact.
Constraints:
Length: 1 - 256
relatedContactId - The contactId that is related to this contact.
public Contact withRelatedContactId(java.lang.String relatedContactId)
The contactId that is related to this contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
relatedContactId - The contactId that is related to this contact.
public WisdomInfo getWisdomInfo()
Information about Amazon Connect Wisdom.
Information about Amazon Connect Wisdom.
public void setWisdomInfo(WisdomInfo wisdomInfo)
Information about Amazon Connect Wisdom.
wisdomInfo - Information about Amazon Connect Wisdom.
public Contact withWisdomInfo(WisdomInfo wisdomInfo)
Information about Amazon Connect Wisdom.
Returns a reference to this object so that method calls can be chained together.
wisdomInfo - Information about Amazon Connect Wisdom.
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