public class SendMessageRequest extends AmazonWebServiceRequest implements java.io.Serializable
Sends a message. Note that 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, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getContentType()
The type of the content. Supported types are text/plain.
Constraints:
Length: 1 - 100
The type of the content. Supported types are text/plain.
public void setContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain.
Constraints:
Length: 1 - 100
contentType
- The type of the content. Supported types are text/plain.
public SendMessageRequest withContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain.
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.
public java.lang.String getContent()
The content of the message.
Constraints:
Length: 1 - 1024
The content of the message.
public void setContent(java.lang.String content)
The content of the message.
Constraints:
Length: 1 - 1024
content
- The content of the message.
public SendMessageRequest withContent(java.lang.String content)
The content of the message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
content
- The content of the message.
public java.lang.String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Constraints:
Length: - 500
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Constraints:
Length: - 500
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public SendMessageRequest withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
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.
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.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.