Interface CreateRoleAliasRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateRoleAliasRequest.Builder,CreateRoleAliasRequest>, IotRequest.Builder, SdkBuilder<CreateRoleAliasRequest.Builder,CreateRoleAliasRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateRoleAliasRequest

public static interface CreateRoleAliasRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateRoleAliasRequest.Builder,CreateRoleAliasRequest>
  • Method Details

    • 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

      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

      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

      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

      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<Tag>).

      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:
    • overrideConfiguration

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