Interface OrganizationAccessGrant.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OrganizationAccessGrant.Builder,,OrganizationAccessGrant> SdkBuilder<OrganizationAccessGrant.Builder,,OrganizationAccessGrant> SdkPojo
- Enclosing class:
OrganizationAccessGrant
@Mutable
@NotThreadSafe
public static interface OrganizationAccessGrant.Builder
extends SdkPojo, CopyableBuilder<OrganizationAccessGrant.Builder,OrganizationAccessGrant>
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp when the grant was created.The principal that created the grant.The ID of the organization domain the grant belongs to.The Amazon Resource Name (ARN) of the access grant.The unique ID of the access grant.Who manages the grant.grantType(AccessGrantType grantType) Who manages the grant.A name that identifies the access grant.permission(String permission) The permission granted.permission(OrganizationGrantPermission permission) The permission granted.default OrganizationAccessGrant.BuilderThe principal receiving the grant.principal(OrganizationAccessGrantPrincipal principal) The principal receiving the grant.The timestamp when the grant was last updated.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
-
grantId
The unique ID of the access grant.
- Parameters:
grantId- The unique ID of the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantArn
The Amazon Resource Name (ARN) of the access grant.
- Parameters:
grantArn- The Amazon Resource Name (ARN) of the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name that identifies the access grant.
- Parameters:
name- A name that identifies the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainId
The ID of the organization domain the grant belongs to.
- Parameters:
domainId- The ID of the organization domain the grant belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal receiving the grant.
- Parameters:
principal- The principal receiving the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default OrganizationAccessGrant.Builder principal(Consumer<OrganizationAccessGrantPrincipal.Builder> principal) The principal receiving the grant.
This is a convenience method that creates an instance of theOrganizationAccessGrantPrincipal.Builderavoiding the need to create one manually viaOrganizationAccessGrantPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(OrganizationAccessGrantPrincipal).- Parameters:
principal- a consumer that will call methods onOrganizationAccessGrantPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
The permission granted.
- Parameters:
permission- The permission granted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
The permission granted.
- Parameters:
permission- The permission granted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantType
Who manages the grant.
- Parameters:
grantType- Who manages the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantType
Who manages the grant.
- Parameters:
grantType- Who manages the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdBy
The principal that created the grant.
- Parameters:
createdBy- The principal that created the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the grant was created.
- Parameters:
createdAt- The timestamp when the grant was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the grant was last updated.
- Parameters:
updatedAt- The timestamp when the grant was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-