Interface AccessGrant.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AccessGrant.Builder,,AccessGrant> SdkBuilder<AccessGrant.Builder,,AccessGrant> SdkPojo
- Enclosing class:
AccessGrant
-
Method Summary
Modifier and TypeMethodDescriptionThe AWS account ID that owns the grant.The timestamp when the grant was created.The principal that created the grant.The 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 AccessGrant.Builderprincipal(Consumer<AccessGrantPrincipal.Builder> principal) The principal receiving the grant.principal(AccessGrantPrincipal principal) The principal receiving the grant.scopedActions(Collection<ScopedActions> scopedActions) Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.scopedActions(Consumer<ScopedActions.Builder>... scopedActions) Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.scopedActions(ScopedActions... scopedActions) Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.The space this grant applies to.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.
-
accountId
The AWS account ID that owns the grant.
- Parameters:
accountId- The AWS account ID that owns the 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:
-
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.
-
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.
-
scopedActions
Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.
- Parameters:
scopedActions- Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopedActions
Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.
- Parameters:
scopedActions- Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopedActions
Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.
This is a convenience method that creates an instance of theScopedActions.Builderavoiding the need to create one manually viaScopedActions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscopedActions(List<ScopedActions>).- Parameters:
scopedActions- a consumer that will call methods onScopedActions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-