Interface AdminScopeSelection.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AdminScopeSelection.Builder,,AdminScopeSelection> SdkBuilder<AdminScopeSelection.Builder,,AdminScopeSelection> SdkPojo
- Enclosing class:
AdminScopeSelection
@Mutable
@NotThreadSafe
public static interface AdminScopeSelection.Builder
extends SdkPojo, CopyableBuilder<AdminScopeSelection.Builder,AdminScopeSelection>
-
Method Summary
Modifier and TypeMethodDescriptionaccounts(Collection<AccountReference> accounts) The AWS accounts in the selection.accounts(Consumer<AccountReference.Builder>... accounts) The AWS accounts in the selection.accounts(AccountReference... accounts) The AWS accounts in the selection.organizationalUnits(Collection<OrganizationalUnitReference> organizationalUnits) The AWS Organizations organizational units (OUs) in the selection.organizationalUnits(Consumer<OrganizationalUnitReference.Builder>... organizationalUnits) The AWS Organizations organizational units (OUs) in the selection.organizationalUnits(OrganizationalUnitReference... organizationalUnits) The AWS Organizations organizational units (OUs) in the selection.Methods 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, sdkFields
-
Method Details
-
accounts
The AWS accounts in the selection.
- Parameters:
accounts- The AWS accounts in the selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accounts
The AWS accounts in the selection.
- Parameters:
accounts- The AWS accounts in the selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accounts
The AWS accounts in the selection.
This is a convenience method that creates an instance of theAccountReference.Builderavoiding the need to create one manually viaAccountReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccounts(List<AccountReference>).- Parameters:
accounts- a consumer that will call methods onAccountReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
organizationalUnits
AdminScopeSelection.Builder organizationalUnits(Collection<OrganizationalUnitReference> organizationalUnits) The AWS Organizations organizational units (OUs) in the selection.
- Parameters:
organizationalUnits- The AWS Organizations organizational units (OUs) in the selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnits
The AWS Organizations organizational units (OUs) in the selection.
- Parameters:
organizationalUnits- The AWS Organizations organizational units (OUs) in the selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnits
AdminScopeSelection.Builder organizationalUnits(Consumer<OrganizationalUnitReference.Builder>... organizationalUnits) The AWS Organizations organizational units (OUs) in the selection.
This is a convenience method that creates an instance of theOrganizationalUnitReference.Builderavoiding the need to create one manually viaOrganizationalUnitReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorganizationalUnits(List<OrganizationalUnitReference>).- Parameters:
organizationalUnits- a consumer that will call methods onOrganizationalUnitReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-