public class TransferContactRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Transfers contacts from one agent or queue to another agent or queue at any point after a contact is created. You can transfer a contact to another queue by providing the flow which orchestrates the contact to the destination queue. This gives you more control over contact handling and helps you adhere to the service level agreement (SLA) guaranteed to your customers.
Note the following requirements:
Transfer is supported for only TASK contacts.
Do not use both QueueId and UserId in the same
call.
The following flow types are supported: Inbound flow, Transfer to agent flow, and Transfer to queue flow.
The TransferContact API can be called only on active contacts.
A contact cannot be transferred more than 11 times.
| Constructor and Description |
|---|
TransferContactRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
java.lang.String |
getContactFlowId()
The identifier of the flow.
|
java.lang.String |
getContactId()
The identifier of the contact in this instance of Amazon Connect.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getQueueId()
The identifier for the queue.
|
java.lang.String |
getUserId()
The identifier for the user.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
void |
setContactFlowId(java.lang.String contactFlowId)
The identifier of the flow.
|
void |
setContactId(java.lang.String contactId)
The identifier of the contact in this instance of Amazon Connect.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setQueueId(java.lang.String queueId)
The identifier for the queue.
|
void |
setUserId(java.lang.String userId)
The identifier for the user.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TransferContactRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
TransferContactRequest |
withContactFlowId(java.lang.String contactFlowId)
The identifier of the flow.
|
TransferContactRequest |
withContactId(java.lang.String contactId)
The identifier of the contact in this instance of Amazon Connect.
|
TransferContactRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
TransferContactRequest |
withQueueId(java.lang.String queueId)
The identifier for the queue.
|
TransferContactRequest |
withUserId(java.lang.String userId)
The identifier for the user.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 TransferContactRequest 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.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 TransferContactRequest 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 getQueueId()
The identifier for the queue.
The identifier for the queue.
public void setQueueId(java.lang.String queueId)
The identifier for the queue.
queueId - The identifier for the queue.
public TransferContactRequest withQueueId(java.lang.String queueId)
The identifier for the queue.
Returns a reference to this object so that method calls can be chained together.
queueId - The identifier for the queue.
public java.lang.String getUserId()
The identifier for the user. This can be the ID or the ARN of the user.
Constraints:
Length: 1 - 256
The identifier for the user. This can be the ID or the ARN of the user.
public void setUserId(java.lang.String userId)
The identifier for the user. This can be the ID or the ARN of the user.
Constraints:
Length: 1 - 256
userId - The identifier for the user. This can be the ID or the ARN of the user.
public TransferContactRequest withUserId(java.lang.String userId)
The identifier for the user. This can be the ID or the ARN of the user.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
userId - The identifier for the user. This can be the ID or the ARN of the user.
public java.lang.String getContactFlowId()
The identifier of the flow.
Constraints:
Length: - 500
The identifier of the flow.
public void setContactFlowId(java.lang.String contactFlowId)
The identifier of the flow.
Constraints:
Length: - 500
contactFlowId - The identifier of the flow.
public TransferContactRequest withContactFlowId(java.lang.String contactFlowId)
The identifier of the flow.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 500
contactFlowId - The identifier of the flow.
public java.lang.String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Constraints:
Length: - 500
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Constraints:
Length: - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public TransferContactRequest withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
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