JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.connectparticipant.model

Class SendMessageRequest

    • Constructor Detail

      • SendMessageRequest

        public SendMessageRequest()
    • Method Detail

      • setContentType

        public void setContentType(String contentType)

        The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.

        Parameters:
        contentType - The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.
      • getContentType

        public String getContentType()

        The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.

        Returns:
        The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.
      • withContentType

        public SendMessageRequest withContentType(String contentType)

        The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.

        Parameters:
        contentType - The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setContent

        public void setContent(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.

        Parameters:
        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.

      • getContent

        public 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.

        Returns:
        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.

      • withContent

        public SendMessageRequest withContent(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • setClientToken

        public void setClientToken(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.

        Parameters:
        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.
      • getClientToken

        public 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.

        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.
      • withClientToken

        public SendMessageRequest withClientToken(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • setConnectionToken

        public void setConnectionToken(String connectionToken)

        The authentication token associated with the connection.

        Parameters:
        connectionToken - The authentication token associated with the connection.
      • getConnectionToken

        public String getConnectionToken()

        The authentication token associated with the connection.

        Returns:
        The authentication token associated with the connection.
      • withConnectionToken

        public SendMessageRequest withConnectionToken(String connectionToken)

        The authentication token associated with the connection.

        Parameters:
        connectionToken - The authentication token associated with the connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String 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.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /