public class SendMessageRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Sends a message.
ConnectionToken is used for invoking this API instead of
ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
| Constructor and Description |
|---|
SendMessageRequest() |
| 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 |
getConnectionToken()
The authentication token associated with the connection.
|
java.lang.String |
getContent()
The content of the message.
|
java.lang.String |
getContentType()
The type of the content.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
void |
setConnectionToken(java.lang.String connectionToken)
The authentication token associated with the connection.
|
void |
setContent(java.lang.String content)
The content of the message.
|
void |
setContentType(java.lang.String contentType)
The type of the content.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendMessageRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
SendMessageRequest |
withConnectionToken(java.lang.String connectionToken)
The authentication token associated with the connection.
|
SendMessageRequest |
withContent(java.lang.String content)
The content of the message.
|
SendMessageRequest |
withContentType(java.lang.String contentType)
The type of the content.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getContentType()
The type of the content. Supported types are text/plain,
text/markdown, application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
Constraints:
Length: 1 - 100
The type of the content. Supported types are
text/plain, text/markdown,
application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
public void setContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain,
text/markdown, application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
Constraints:
Length: 1 - 100
contentType -
The type of the content. Supported types are
text/plain, text/markdown,
application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
public SendMessageRequest withContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain,
text/markdown, application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
contentType -
The type of the content. Supported types are
text/plain, text/markdown,
application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
public java.lang.String getContent()
The content of the message.
For text/plain and text/markdown, the Length
Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are Minimum of
1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Constraints:
Length: 1 - 16384
The content of the message.
For text/plain and text/markdown, the
Length Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are
Minimum of 1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
public void setContent(java.lang.String content)
The content of the message.
For text/plain and text/markdown, the Length
Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are Minimum of
1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Constraints:
Length: 1 - 16384
content - The content of the message.
For text/plain and text/markdown,
the Length Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are
Minimum of 1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
public SendMessageRequest withContent(java.lang.String content)
The content of the message.
For text/plain and text/markdown, the Length
Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are Minimum of
1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
content - The content of the message.
For text/plain and text/markdown,
the Length Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are
Minimum of 1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
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 SendMessageRequest 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 getConnectionToken()
The authentication token associated with the connection.
Constraints:
Length: 1 - 1000
The authentication token associated with the connection.
public void setConnectionToken(java.lang.String connectionToken)
The authentication token associated with the connection.
Constraints:
Length: 1 - 1000
connectionToken - The authentication token associated with the connection.
public SendMessageRequest withConnectionToken(java.lang.String connectionToken)
The authentication token associated with the connection.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1000
connectionToken - The authentication token associated with the connection.
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