@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendChannelMessageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
SendChannelMessageRequest() |
| Modifier and Type | Method and Description |
|---|---|
SendChannelMessageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getChannelArn()
The ARN of the channel.
|
String |
getChimeBearer()
The
AppInstanceUserArn of the user that makes the API call. |
String |
getClientRequestToken()
The
Idempotency token for each client request. |
String |
getContent()
The content of the message.
|
String |
getMetadata()
The optional metadata for each message.
|
String |
getPersistence()
Boolean that controls whether the message is persisted on the back end.
|
String |
getType()
The type of message,
STANDARD or CONTROL. |
int |
hashCode() |
void |
setChannelArn(String channelArn)
The ARN of the channel.
|
void |
setChimeBearer(String chimeBearer)
The
AppInstanceUserArn of the user that makes the API call. |
void |
setClientRequestToken(String clientRequestToken)
The
Idempotency token for each client request. |
void |
setContent(String content)
The content of the message.
|
void |
setMetadata(String metadata)
The optional metadata for each message.
|
void |
setPersistence(String persistence)
Boolean that controls whether the message is persisted on the back end.
|
void |
setType(String type)
The type of message,
STANDARD or CONTROL. |
String |
toString()
Returns a string representation of this object.
|
SendChannelMessageRequest |
withChannelArn(String channelArn)
The ARN of the channel.
|
SendChannelMessageRequest |
withChimeBearer(String chimeBearer)
The
AppInstanceUserArn of the user that makes the API call. |
SendChannelMessageRequest |
withClientRequestToken(String clientRequestToken)
The
Idempotency token for each client request. |
SendChannelMessageRequest |
withContent(String content)
The content of the message.
|
SendChannelMessageRequest |
withMetadata(String metadata)
The optional metadata for each message.
|
SendChannelMessageRequest |
withPersistence(ChannelMessagePersistenceType persistence)
Boolean that controls whether the message is persisted on the back end.
|
SendChannelMessageRequest |
withPersistence(String persistence)
Boolean that controls whether the message is persisted on the back end.
|
SendChannelMessageRequest |
withType(ChannelMessageType type)
The type of message,
STANDARD or CONTROL. |
SendChannelMessageRequest |
withType(String type)
The type of message,
STANDARD or CONTROL. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setChannelArn(String channelArn)
The ARN of the channel.
channelArn - The ARN of the channel.public String getChannelArn()
The ARN of the channel.
public SendChannelMessageRequest withChannelArn(String channelArn)
The ARN of the channel.
channelArn - The ARN of the channel.public void setContent(String content)
The content of the message.
content - The content of the message.public String getContent()
The content of the message.
public SendChannelMessageRequest withContent(String content)
The content of the message.
content - The content of the message.public void setType(String type)
The type of message, STANDARD or CONTROL.
type - The type of message, STANDARD or CONTROL.ChannelMessageTypepublic String getType()
The type of message, STANDARD or CONTROL.
STANDARD or CONTROL.ChannelMessageTypepublic SendChannelMessageRequest withType(String type)
The type of message, STANDARD or CONTROL.
type - The type of message, STANDARD or CONTROL.ChannelMessageTypepublic SendChannelMessageRequest withType(ChannelMessageType type)
The type of message, STANDARD or CONTROL.
type - The type of message, STANDARD or CONTROL.ChannelMessageTypepublic void setPersistence(String persistence)
Boolean that controls whether the message is persisted on the back end. Required.
persistence - Boolean that controls whether the message is persisted on the back end. Required.ChannelMessagePersistenceTypepublic String getPersistence()
Boolean that controls whether the message is persisted on the back end. Required.
ChannelMessagePersistenceTypepublic SendChannelMessageRequest withPersistence(String persistence)
Boolean that controls whether the message is persisted on the back end. Required.
persistence - Boolean that controls whether the message is persisted on the back end. Required.ChannelMessagePersistenceTypepublic SendChannelMessageRequest withPersistence(ChannelMessagePersistenceType persistence)
Boolean that controls whether the message is persisted on the back end. Required.
persistence - Boolean that controls whether the message is persisted on the back end. Required.ChannelMessagePersistenceTypepublic void setMetadata(String metadata)
The optional metadata for each message.
metadata - The optional metadata for each message.public String getMetadata()
The optional metadata for each message.
public SendChannelMessageRequest withMetadata(String metadata)
The optional metadata for each message.
metadata - The optional metadata for each message.public void setClientRequestToken(String clientRequestToken)
The Idempotency token for each client request.
clientRequestToken - The Idempotency token for each client request.public String getClientRequestToken()
The Idempotency token for each client request.
Idempotency token for each client request.public SendChannelMessageRequest withClientRequestToken(String clientRequestToken)
The Idempotency token for each client request.
clientRequestToken - The Idempotency token for each client request.public void setChimeBearer(String chimeBearer)
The AppInstanceUserArn of the user that makes the API call.
chimeBearer - The AppInstanceUserArn of the user that makes the API call.public String getChimeBearer()
The AppInstanceUserArn of the user that makes the API call.
AppInstanceUserArn of the user that makes the API call.public SendChannelMessageRequest withChimeBearer(String chimeBearer)
The AppInstanceUserArn of the user that makes the API call.
chimeBearer - The AppInstanceUserArn of the user that makes the API call.public String toString()
toString in class ObjectObject.toString()public SendChannelMessageRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()