Interface CreateOrganizationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateOrganizationResponse.Builder,,CreateOrganizationResponse> OrganizationsResponse.Builder,SdkBuilder<CreateOrganizationResponse.Builder,,CreateOrganizationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateOrganizationResponse
public static interface CreateOrganizationResponse.Builder
extends OrganizationsResponse.Builder, SdkPojo, CopyableBuilder<CreateOrganizationResponse.Builder,CreateOrganizationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionorganization(Consumer<Organization.Builder> organization) A structure that contains details about the newly created organization.organization(Organization organization) A structure that contains details about the newly created organization.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
organization
A structure that contains details about the newly created organization.
- Parameters:
organization- A structure that contains details about the newly created organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organization
default CreateOrganizationResponse.Builder organization(Consumer<Organization.Builder> organization) A structure that contains details about the newly created organization.
This is a convenience method that creates an instance of theOrganization.Builderavoiding the need to create one manually viaOrganization.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorganization(Organization).- Parameters:
organization- a consumer that will call methods onOrganization.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-