Interface DescribeAccountResponse.Builder

  • Method Details

    • account

      A structure that contains information about the requested account.

      The Status parameter in the API response will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.

      Parameters:
      account - A structure that contains information about the requested account.

      The Status parameter in the API response will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.

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

      A structure that contains information about the requested account.

      The Status parameter in the API response will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.

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

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

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