@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 |
addMessageAttributesEntry(String key,
MessageAttributeValue value)
Add a single MessageAttributes entry
|
SendChannelMessageRequest |
clearMessageAttributesEntries()
Removes all the entries added into MessageAttributes.
|
SendChannelMessageRequest |
clone() |
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.
|
Map<String,MessageAttributeValue> |
getMessageAttributes()
The attributes for the message, used for message filtering along with a
FilterRule defined in the
PushNotificationPreferences. |
String |
getMetadata()
The optional metadata for each message.
|
String |
getPersistence()
Boolean that controls whether the message is persisted on the back end.
|
PushNotificationConfiguration |
getPushNotification()
The push notification configuration of the message.
|
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 |
setMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a
FilterRule defined in the
PushNotificationPreferences. |
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 |
setPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
|
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 |
withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a
FilterRule defined in the
PushNotificationPreferences. |
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 |
withPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
|
SendChannelMessageRequest |
withType(ChannelMessageType type)
The type of message,
STANDARD or CONTROL. |
SendChannelMessageRequest |
withType(String type)
The type of message,
STANDARD or CONTROL. |
addHandlerContext, copyBaseTo, 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 void setPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
pushNotification - The push notification configuration of the message.public PushNotificationConfiguration getPushNotification()
The push notification configuration of the message.
public SendChannelMessageRequest withPushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
pushNotification - The push notification configuration of the message.public Map<String,MessageAttributeValue> getMessageAttributes()
The attributes for the message, used for message filtering along with a FilterRule defined in the
PushNotificationPreferences.
FilterRule defined
in the PushNotificationPreferences.public void setMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a FilterRule defined in the
PushNotificationPreferences.
messageAttributes - The attributes for the message, used for message filtering along with a FilterRule defined in
the PushNotificationPreferences.public SendChannelMessageRequest withMessageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a FilterRule defined in the
PushNotificationPreferences.
messageAttributes - The attributes for the message, used for message filtering along with a FilterRule defined in
the PushNotificationPreferences.public SendChannelMessageRequest addMessageAttributesEntry(String key, MessageAttributeValue value)
public SendChannelMessageRequest clearMessageAttributesEntries()
public String toString()
toString in class ObjectObject.toString()public SendChannelMessageRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.