Interface AssumedRole.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AssumedRole.Builder,AssumedRole>, SdkBuilder<AssumedRole.Builder,AssumedRole>, SdkPojo
Enclosing class:
AssumedRole

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

    • accessKeyId

      AssumedRole.Builder accessKeyId(String accessKeyId)

      The Amazon Web Services access key ID that identifies the credentials.

      Parameters:
      accessKeyId - The Amazon Web Services access key ID that identifies the credentials.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      AssumedRole.Builder accountId(String accountId)

      The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.

      Parameters:
      accountId - The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of the entity that was used to get the credentials.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principalId

      AssumedRole.Builder principalId(String principalId)

      The unique identifier for the entity that was used to get the credentials.

      Parameters:
      principalId - The unique identifier for the entity that was used to get the credentials.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionContext

      AssumedRole.Builder sessionContext(SessionContext sessionContext)

      The details of the session that was created for the credentials, including the entity that issued the session.

      Parameters:
      sessionContext - The details of the session that was created for the credentials, including the entity that issued the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionContext

      default AssumedRole.Builder sessionContext(Consumer<SessionContext.Builder> sessionContext)

      The details of the session that was created for the credentials, including the entity that issued the session.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sessionContext(SessionContext).

      Parameters:
      sessionContext - a consumer that will call methods on SessionContext.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: