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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GrantItem.Builder
grant(Consumer<Grant.Builder> grant)
The configuration structure for the selected grant.GrantItem.Builder
grant(Grant grant)
The configuration structure for the selected grant.GrantItem.Builder
grantType(String grantType)
The type of the selected grant.GrantItem.Builder
grantType(GrantType grantType)
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 Detail
-
grant
GrantItem.Builder grant(Grant 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
default GrantItem.Builder grant(Consumer<Grant.Builder> 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:
grant(Grant)
-
grantType
GrantItem.Builder grantType(String grantType)
The type of the selected grant.
-
grantType
GrantItem.Builder grantType(GrantType grantType)
The type of the selected grant.
-
-