Interface GrantItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GrantItem.Builder,
,GrantItem> SdkBuilder<GrantItem.Builder,
,GrantItem> SdkPojo
- Enclosing class:
GrantItem
public static interface GrantItem.Builder
extends SdkPojo, CopyableBuilder<GrantItem.Builder,GrantItem>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GrantItem.Builder
grant
(Consumer<Grant.Builder> grant) The configuration structure for the selected grant.The configuration structure for the selected grant.The type of the selected grant.The type of the selected grant.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
grant
The configuration structure for the selected grant.
- Parameters:
grant
- The configuration structure for the selected grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grant
The configuration structure for the selected grant.
This is a convenience method that creates an instance of theGrant.Builder
avoiding the need to create one manually viaGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togrant(Grant)
.- Parameters:
grant
- a consumer that will call methods onGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantType
The type of the selected grant.
- Parameters:
grantType
- The type of the selected grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantType
The type of the selected grant.
- Parameters:
grantType
- The type of the selected grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-