public class AgentContactReference
extends java.lang.Object
implements java.io.Serializable
Information about the contact associated to the user.
| Constructor and Description |
|---|
AgentContactReference() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAgentContactState()
The state of the contact.
|
java.lang.String |
getChannel()
The channel of the contact.
|
java.util.Date |
getConnectedToAgentTimestamp()
The time at which the contact was connected to an agent.
|
java.lang.String |
getContactId()
The identifier of the contact in this instance of Amazon Connect.
|
java.lang.String |
getInitiationMethod()
How the contact was initiated.
|
QueueReference |
getQueue()
Contains information about a queue resource for which metrics are
returned.
|
java.util.Date |
getStateStartTimestamp()
The epoch timestamp when the contact state started.
|
int |
hashCode() |
void |
setAgentContactState(ContactState agentContactState)
The state of the contact.
|
void |
setAgentContactState(java.lang.String agentContactState)
The state of the contact.
|
void |
setChannel(Channel channel)
The channel of the contact.
|
void |
setChannel(java.lang.String channel)
The channel of the contact.
|
void |
setConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp)
The time at which the contact was connected to an agent.
|
void |
setContactId(java.lang.String contactId)
The identifier of the contact in this instance of Amazon Connect.
|
void |
setInitiationMethod(ContactInitiationMethod initiationMethod)
How the contact was initiated.
|
void |
setInitiationMethod(java.lang.String initiationMethod)
How the contact was initiated.
|
void |
setQueue(QueueReference queue)
Contains information about a queue resource for which metrics are
returned.
|
void |
setStateStartTimestamp(java.util.Date stateStartTimestamp)
The epoch timestamp when the contact state started.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AgentContactReference |
withAgentContactState(ContactState agentContactState)
The state of the contact.
|
AgentContactReference |
withAgentContactState(java.lang.String agentContactState)
The state of the contact.
|
AgentContactReference |
withChannel(Channel channel)
The channel of the contact.
|
AgentContactReference |
withChannel(java.lang.String channel)
The channel of the contact.
|
AgentContactReference |
withConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp)
The time at which the contact was connected to an agent.
|
AgentContactReference |
withContactId(java.lang.String contactId)
The identifier of the contact in this instance of Amazon Connect.
|
AgentContactReference |
withInitiationMethod(ContactInitiationMethod initiationMethod)
How the contact was initiated.
|
AgentContactReference |
withInitiationMethod(java.lang.String initiationMethod)
How the contact was initiated.
|
AgentContactReference |
withQueue(QueueReference queue)
Contains information about a queue resource for which metrics are
returned.
|
AgentContactReference |
withStateStartTimestamp(java.util.Date stateStartTimestamp)
The epoch timestamp when the contact state started.
|
public java.lang.String getContactId()
The identifier of the contact in this instance of Amazon Connect.
Constraints:
Length: 1 - 256
The identifier of the contact in this instance of Amazon Connect.
public void setContactId(java.lang.String contactId)
The identifier of the contact in this instance of Amazon Connect.
Constraints:
Length: 1 - 256
contactId - The identifier of the contact in this instance of Amazon Connect.
public AgentContactReference withContactId(java.lang.String contactId)
The identifier of the contact in this instance of Amazon Connect.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
contactId - The identifier of the contact in this instance of Amazon Connect.
public java.lang.String getChannel()
The channel of the contact.
Constraints:
Allowed Values: VOICE, CHAT, TASK
The channel of the contact.
Channelpublic void setChannel(java.lang.String channel)
The channel of the contact.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - The channel of the contact.
Channelpublic AgentContactReference withChannel(java.lang.String channel)
The channel of the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - The channel of the contact.
Channelpublic void setChannel(Channel channel)
The channel of the contact.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - The channel of the contact.
Channelpublic AgentContactReference withChannel(Channel channel)
The channel of the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VOICE, CHAT, TASK
channel - The channel of the contact.
Channelpublic java.lang.String getInitiationMethod()
How the contact was initiated.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
How the contact was initiated.
ContactInitiationMethodpublic void setInitiationMethod(java.lang.String initiationMethod)
How the contact was initiated.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
initiationMethod - How the contact was initiated.
ContactInitiationMethodpublic AgentContactReference withInitiationMethod(java.lang.String initiationMethod)
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 - How the contact was initiated.
ContactInitiationMethodpublic void setInitiationMethod(ContactInitiationMethod initiationMethod)
How the contact was initiated.
Constraints:
Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND
initiationMethod - How the contact was initiated.
ContactInitiationMethodpublic AgentContactReference withInitiationMethod(ContactInitiationMethod initiationMethod)
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 - How the contact was initiated.
ContactInitiationMethodpublic java.lang.String getAgentContactState()
The state of the contact.
Constraints:
Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED,
CONNECTED_ONHOLD, MISSED, ERROR, ENDED, REJECTED
The state of the contact.
ContactStatepublic void setAgentContactState(java.lang.String agentContactState)
The state of the contact.
Constraints:
Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED,
CONNECTED_ONHOLD, MISSED, ERROR, ENDED, REJECTED
agentContactState - The state of the contact.
ContactStatepublic AgentContactReference withAgentContactState(java.lang.String agentContactState)
The state of the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED,
CONNECTED_ONHOLD, MISSED, ERROR, ENDED, REJECTED
agentContactState - The state of the contact.
ContactStatepublic void setAgentContactState(ContactState agentContactState)
The state of the contact.
Constraints:
Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED,
CONNECTED_ONHOLD, MISSED, ERROR, ENDED, REJECTED
agentContactState - The state of the contact.
ContactStatepublic AgentContactReference withAgentContactState(ContactState agentContactState)
The state of the contact.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED,
CONNECTED_ONHOLD, MISSED, ERROR, ENDED, REJECTED
agentContactState - The state of the contact.
ContactStatepublic java.util.Date getStateStartTimestamp()
The epoch timestamp when the contact state started.
The epoch timestamp when the contact state started.
public void setStateStartTimestamp(java.util.Date stateStartTimestamp)
The epoch timestamp when the contact state started.
stateStartTimestamp - The epoch timestamp when the contact state started.
public AgentContactReference withStateStartTimestamp(java.util.Date stateStartTimestamp)
The epoch timestamp when the contact state started.
Returns a reference to this object so that method calls can be chained together.
stateStartTimestamp - The epoch timestamp when the contact state started.
public java.util.Date getConnectedToAgentTimestamp()
The time at which the contact was connected to an agent.
The time at which the contact was connected to an agent.
public void setConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp)
The time at which the contact was connected to an agent.
connectedToAgentTimestamp - The time at which the contact was connected to an agent.
public AgentContactReference withConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp)
The time at which the contact was connected to an agent.
Returns a reference to this object so that method calls can be chained together.
connectedToAgentTimestamp - The time at which the contact was connected to an agent.
public QueueReference getQueue()
Contains information about a queue resource for which metrics are returned.
Contains information about a queue resource for which metrics are returned.
public void setQueue(QueueReference queue)
Contains information about a queue resource for which metrics are returned.
queue - Contains information about a queue resource for which metrics are returned.
public AgentContactReference withQueue(QueueReference queue)
Contains information about a queue resource for which metrics are returned.
Returns a reference to this object so that method calls can be chained together.
queue - Contains information about a queue resource for which metrics are returned.
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