Interface ListOrganizationalUnitsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComputeOptimizerAutomationResponse.Builder,CopyableBuilder<ListOrganizationalUnitsResponse.Builder,,ListOrganizationalUnitsResponse> SdkBuilder<ListOrganizationalUnitsResponse.Builder,,ListOrganizationalUnitsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListOrganizationalUnitsResponse
@Mutable
@NotThreadSafe
public static interface ListOrganizationalUnitsResponse.Builder
extends ComputeOptimizerAutomationResponse.Builder, SdkPojo, CopyableBuilder<ListOrganizationalUnitsResponse.Builder,ListOrganizationalUnitsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to retrieve the next page of results.organizationalUnits(Collection<OrganizationalUnitInfo> organizationalUnits) The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.organizationalUnits(Consumer<OrganizationalUnitInfo.Builder>... organizationalUnits) The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.organizationalUnits(OrganizationalUnitInfo... organizationalUnits) The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.Methods inherited from interface software.amazon.awssdk.services.computeoptimizerautomation.model.ComputeOptimizerAutomationResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
organizationalUnits
ListOrganizationalUnitsResponse.Builder organizationalUnits(Collection<OrganizationalUnitInfo> organizationalUnits) The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.
- Parameters:
organizationalUnits- The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnits
ListOrganizationalUnitsResponse.Builder organizationalUnits(OrganizationalUnitInfo... organizationalUnits) The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.
- Parameters:
organizationalUnits- The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnits
ListOrganizationalUnitsResponse.Builder organizationalUnits(Consumer<OrganizationalUnitInfo.Builder>... organizationalUnits) The organizational units and organization root returned in this page of results, including the organization rule mode that applies to each.
This is a convenience method that creates an instance of theOrganizationalUnitInfo.Builderavoiding the need to create one manually viaOrganizationalUnitInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorganizationalUnits(List<OrganizationalUnitInfo>).- Parameters:
organizationalUnits- a consumer that will call methods onOrganizationalUnitInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next page of results.
- Parameters:
nextToken- The token to use to retrieve the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-