Interface OrganizationAccessGrantPrincipal.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OrganizationAccessGrantPrincipal.Builder,,OrganizationAccessGrantPrincipal> SdkBuilder<OrganizationAccessGrantPrincipal.Builder,,OrganizationAccessGrantPrincipal> SdkPojo
- Enclosing class:
OrganizationAccessGrantPrincipal
-
Method Summary
Modifier and TypeMethodDescriptionprincipalAttributes(Collection<AccessGrantPrincipalAttribute> principalAttributes) Attribute conditions for attribute-based access.principalAttributes(Consumer<AccessGrantPrincipalAttribute.Builder>... principalAttributes) Attribute conditions for attribute-based access.principalAttributes(AccessGrantPrincipalAttribute... principalAttributes) Attribute conditions for attribute-based access.principalId(String principalId) The ID of the principal receiving the grant.principalType(String principalType) The type of principal receiving the grant.principalType(OrganizationGrantPrincipalType principalType) The type of principal receiving the grant.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
-
principalType
The type of principal receiving the grant.
- Parameters:
principalType- The type of principal receiving the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
principalType
OrganizationAccessGrantPrincipal.Builder principalType(OrganizationGrantPrincipalType principalType) The type of principal receiving the grant.
- Parameters:
principalType- The type of principal receiving the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
principalId
The ID of the principal receiving the grant.
- Parameters:
principalId- The ID of the principal receiving the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalAttributes
OrganizationAccessGrantPrincipal.Builder principalAttributes(Collection<AccessGrantPrincipalAttribute> principalAttributes) Attribute conditions for attribute-based access. When provided, the grant targets any principal matching all specified conditions. Supported only for IDC_USER principals.
- Parameters:
principalAttributes- Attribute conditions for attribute-based access. When provided, the grant targets any principal matching all specified conditions. Supported only for IDC_USER principals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalAttributes
OrganizationAccessGrantPrincipal.Builder principalAttributes(AccessGrantPrincipalAttribute... principalAttributes) Attribute conditions for attribute-based access. When provided, the grant targets any principal matching all specified conditions. Supported only for IDC_USER principals.
- Parameters:
principalAttributes- Attribute conditions for attribute-based access. When provided, the grant targets any principal matching all specified conditions. Supported only for IDC_USER principals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalAttributes
OrganizationAccessGrantPrincipal.Builder principalAttributes(Consumer<AccessGrantPrincipalAttribute.Builder>... principalAttributes) Attribute conditions for attribute-based access. When provided, the grant targets any principal matching all specified conditions. Supported only for IDC_USER principals.
This is a convenience method that creates an instance of theAccessGrantPrincipalAttribute.Builderavoiding the need to create one manually viaAccessGrantPrincipalAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipalAttributes(List<AccessGrantPrincipalAttribute>).- Parameters:
principalAttributes- a consumer that will call methods onAccessGrantPrincipalAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-