Interface ListAccountsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<ListAccountsResponse.Builder,ListAccountsResponse>, SdkBuilder<ListAccountsResponse.Builder,ListAccountsResponse>, SdkPojo, SdkResponse.Builder, SsoResponse.Builder
Enclosing class:
ListAccountsResponse

  • Method Details

    • nextToken

      ListAccountsResponse.Builder nextToken(String nextToken)

      The page token client that is used to retrieve the list of accounts.

      Parameters:
      nextToken - The page token client that is used to retrieve the list of accounts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountList

      A paginated response with the list of account information and the next token if more results are available.

      Parameters:
      accountList - A paginated response with the list of account information and the next token if more results are available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountList

      ListAccountsResponse.Builder accountList(AccountInfo... accountList)

      A paginated response with the list of account information and the next token if more results are available.

      Parameters:
      accountList - A paginated response with the list of account information and the next token if more results are available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountList

      A paginated response with the list of account information and the next token if more results are available.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accountList(List<AccountInfo>).

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