Interface CreateOrganizationalUnitResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateOrganizationalUnitResponse.Builder,
,CreateOrganizationalUnitResponse> OrganizationsResponse.Builder
,SdkBuilder<CreateOrganizationalUnitResponse.Builder,
,CreateOrganizationalUnitResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateOrganizationalUnitResponse
public static interface CreateOrganizationalUnitResponse.Builder
extends OrganizationsResponse.Builder, SdkPojo, CopyableBuilder<CreateOrganizationalUnitResponse.Builder,CreateOrganizationalUnitResponse>
-
Method Summary
Modifier and TypeMethodDescriptionorganizationalUnit
(Consumer<OrganizationalUnit.Builder> organizationalUnit) A structure that contains details about the newly created OU.organizationalUnit
(OrganizationalUnit organizationalUnit) A structure that contains details about the newly created OU.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.organizations.model.OrganizationsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
organizationalUnit
A structure that contains details about the newly created OU.
- Parameters:
organizationalUnit
- A structure that contains details about the newly created OU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnit
default CreateOrganizationalUnitResponse.Builder organizationalUnit(Consumer<OrganizationalUnit.Builder> organizationalUnit) A structure that contains details about the newly created OU.
This is a convenience method that creates an instance of theOrganizationalUnit.Builder
avoiding the need to create one manually viaOrganizationalUnit.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toorganizationalUnit(OrganizationalUnit)
.- Parameters:
organizationalUnit
- a consumer that will call methods onOrganizationalUnit.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-