Interface CreateParticipantTokenRequest.Builder

  • Method Details

    • stageArn

      ARN of the stage to which this token is scoped.

      Parameters:
      stageArn - ARN of the stage to which this token is scoped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • duration

      Duration (in minutes), after which the token expires. Default: 720 (12 hours).

      Parameters:
      duration - Duration (in minutes), after which the token expires. Default: 720 (12 hours).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userId

      Name that can be specified to help identify the token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.

      Parameters:
      userId - Name that can be specified to help identify the token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.

      Parameters:
      attributes - Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilitiesWithStrings

      CreateParticipantTokenRequest.Builder capabilitiesWithStrings(Collection<String> capabilities)

      Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.

      Parameters:
      capabilities - Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilitiesWithStrings

      CreateParticipantTokenRequest.Builder capabilitiesWithStrings(String... capabilities)

      Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.

      Parameters:
      capabilities - Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilities

      Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.

      Parameters:
      capabilities - Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilities

      Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.

      Parameters:
      capabilities - Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateParticipantTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.