Interface AccessGrantSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AccessGrantSummary.Builder,,AccessGrantSummary> SdkBuilder<AccessGrantSummary.Builder,,AccessGrantSummary> SdkPojo
- Enclosing class:
AccessGrantSummary
@Mutable
@NotThreadSafe
public static interface AccessGrantSummary.Builder
extends SdkPojo, CopyableBuilder<AccessGrantSummary.Builder,AccessGrantSummary>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the 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(AccessGrantPermission permission) The permission granted.default AccessGrantSummary.Builderprincipal(Consumer<AccessGrantPrincipal.Builder> principal) The principal receiving the grant.principal(AccessGrantPrincipal principal) The principal receiving the grant.The space this grant applies to.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 domain the grant belongs to.
- Parameters:
domainId- The ID of the 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
The principal receiving the grant.
This is a convenience method that creates an instance of theAccessGrantPrincipal.Builderavoiding the need to create one manually viaAccessGrantPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(AccessGrantPrincipal).- Parameters:
principal- a consumer that will call methods onAccessGrantPrincipal.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:
-
spaceId
The space this grant applies to. Domain-scoped grants are returned by ListDomainAccessGrantsForOrganization instead.
- Parameters:
spaceId- The space this grant applies to. Domain-scoped grants are returned by ListDomainAccessGrantsForOrganization instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-