Interface DescribeAccountResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeAccountResponse.Builder,,DescribeAccountResponse> OrganizationsResponse.Builder,SdkBuilder<DescribeAccountResponse.Builder,,DescribeAccountResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeAccountResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault DescribeAccountResponse.Builderaccount(Consumer<Account.Builder> account) A structure that contains information about the requested account.A structure that contains information about the requested account.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.organizations.model.OrganizationsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
account
A structure that contains information about the requested account.
The
Statusparameter in the API response will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore September 9, 2026.- Parameters:
account- A structure that contains information about the requested account.The
Statusparameter in the API response will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore 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.
This is a convenience method that creates an instance of theThe
Statusparameter in the API response will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore September 9, 2026.Account.Builderavoiding the need to create one manually viaAccount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccount(Account).- Parameters:
account- a consumer that will call methods onAccount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-