JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

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.ivschat.model

Class CreateChatTokenRequest

    • Constructor Detail

      • CreateChatTokenRequest

        public CreateChatTokenRequest()
    • Method Detail

      • setRoomIdentifier

        public void setRoomIdentifier(String roomIdentifier)

        Identifier of the room that the client is trying to access. Currently this must be an ARN.

        Parameters:
        roomIdentifier - Identifier of the room that the client is trying to access. Currently this must be an ARN.
      • getRoomIdentifier

        public String getRoomIdentifier()

        Identifier of the room that the client is trying to access. Currently this must be an ARN.

        Returns:
        Identifier of the room that the client is trying to access. Currently this must be an ARN.
      • withRoomIdentifier

        public CreateChatTokenRequest withRoomIdentifier(String roomIdentifier)

        Identifier of the room that the client is trying to access. Currently this must be an ARN.

        Parameters:
        roomIdentifier - Identifier of the room that the client is trying to access. Currently this must be an ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUserId

        public void setUserId(String userId)

        Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.

        Parameters:
        userId - Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.
      • getUserId

        public String getUserId()

        Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.

        Returns:
        Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.
      • withUserId

        public CreateChatTokenRequest withUserId(String userId)

        Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.

        Parameters:
        userId - Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getCapabilities

        public List<String> getCapabilities()

        Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).

        Returns:
        Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
        See Also:
        ChatTokenCapability
      • setCapabilities

        public void setCapabilities(Collection<String> capabilities)

        Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).

        Parameters:
        capabilities - Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
        See Also:
        ChatTokenCapability
      • withCapabilities

        public CreateChatTokenRequest withCapabilities(String... capabilities)

        Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).

        NOTE: This method appends the values to the existing list (if any). Use setCapabilities(java.util.Collection) or withCapabilities(java.util.Collection) if you want to override the existing values.

        Parameters:
        capabilities - Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChatTokenCapability
      • withCapabilities

        public CreateChatTokenRequest withCapabilities(Collection<String> capabilities)

        Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).

        Parameters:
        capabilities - Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChatTokenCapability
      • withCapabilities

        public CreateChatTokenRequest withCapabilities(ChatTokenCapability... capabilities)

        Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).

        Parameters:
        capabilities - Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChatTokenCapability
      • setSessionDurationInMinutes

        public void setSessionDurationInMinutes(Integer sessionDurationInMinutes)

        Session duration (in minutes), after which the session expires. Default: 60 (1 hour).

        Parameters:
        sessionDurationInMinutes - Session duration (in minutes), after which the session expires. Default: 60 (1 hour).
      • getSessionDurationInMinutes

        public Integer getSessionDurationInMinutes()

        Session duration (in minutes), after which the session expires. Default: 60 (1 hour).

        Returns:
        Session duration (in minutes), after which the session expires. Default: 60 (1 hour).
      • withSessionDurationInMinutes

        public CreateChatTokenRequest withSessionDurationInMinutes(Integer sessionDurationInMinutes)

        Session duration (in minutes), after which the session expires. Default: 60 (1 hour).

        Parameters:
        sessionDurationInMinutes - Session duration (in minutes), after which the session expires. Default: 60 (1 hour).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getAttributes

        public Map<String,String> getAttributes()

        Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.

        Returns:
        Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.
      • setAttributes

        public void setAttributes(Map<String,String> attributes)

        Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.

        Parameters:
        attributes - Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.
      • withAttributes

        public CreateChatTokenRequest withAttributes(Map<String,String> attributes)

        Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.

        Parameters:
        attributes - Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearAttributesEntries

        public CreateChatTokenRequest clearAttributesEntries()
        Removes all the entries added into Attributes.
        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 によって変換されたページ (->オリジナル) /