Class SendMessageRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SendMessageRequest.Builder,SendMessageRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SendMessageRequest.Builderbuilder()final StringA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.final StringThe authentication token associated with the connection.final Stringcontent()The content of the message.final StringThe type of the content.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends SendMessageRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
contentType
The type of the content. Possible types are
text/plain,text/markdown,application/json, andapplication/vnd.amazonaws.connect.message.interactive.response.Supported types on the contact are configured through
SupportedMessagingContentTypeson StartChatContact and StartOutboundChatContact.For Apple Messages for Business, SMS, and WhatsApp Business Messaging contacts, only
text/plainis supported.- Returns:
- The type of the content. Possible types are
text/plain,text/markdown,application/json, andapplication/vnd.amazonaws.connect.message.interactive.response.Supported types on the contact are configured through
SupportedMessagingContentTypeson StartChatContact and StartOutboundChatContact.For Apple Messages for Business, SMS, and WhatsApp Business Messaging contacts, only
text/plainis supported.
-
content
The content of the message.
-
For
text/plainandtext/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:
- The content of the message.
-
For
text/plainandtext/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.
-
-
-
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 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.
-
connectionToken
The authentication token associated with the connection.
- Returns:
- The authentication token associated with the connection.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<SendMessageRequest.Builder,SendMessageRequest> - Specified by:
toBuilderin classConnectParticipantRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-