Interface CreateRoleAliasRequest.Builder

    • Method Detail

      • roleAlias

        CreateRoleAliasRequest.Builder roleAlias​(String roleAlias)

        The role alias that points to a role ARN. This allows you to change the role without having to update the device.

        Parameters:
        roleAlias - The role alias that points to a role ARN. This allows you to change the role without having to update the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArn

        CreateRoleAliasRequest.Builder roleArn​(String roleArn)

        The role ARN.

        Parameters:
        roleArn - The role ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • credentialDurationSeconds

        CreateRoleAliasRequest.Builder credentialDurationSeconds​(Integer credentialDurationSeconds)

        How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.

        This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.

        Parameters:
        credentialDurationSeconds - How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.

        This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRoleAliasRequest.Builder tags​(Collection<Tag> tags)

        Metadata which can be used to manage the role alias.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Parameters:
        tags - Metadata which can be used to manage the role alias.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRoleAliasRequest.Builder tags​(Tag... tags)

        Metadata which can be used to manage the role alias.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Parameters:
        tags - Metadata which can be used to manage the role alias.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRoleAliasRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        Metadata which can be used to manage the role alias.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)