Interface Grant.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Grant.Builder,Grant>
,SdkBuilder<Grant.Builder,Grant>
,SdkPojo
- Enclosing class:
- Grant
public static interface Grant.Builder extends SdkPojo, CopyableBuilder<Grant.Builder,Grant>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Grant.Builder
grantee(Consumer<Grantee.Builder> grantee)
The person being granted permissions.Grant.Builder
grantee(Grantee grantee)
The person being granted permissions.Grant.Builder
permission(String permission)
Specifies the permission given to the grantee.Grant.Builder
permission(Permission permission)
Specifies the permission given to the grantee.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
grantee
Grant.Builder grantee(Grantee grantee)
The person being granted permissions.
- Parameters:
grantee
- The person being granted permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
default Grant.Builder grantee(Consumer<Grantee.Builder> grantee)
The person being granted permissions.
This is a convenience method that creates an instance of theGrantee.Builder
avoiding the need to create one manually viaGrantee.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tograntee(Grantee)
.- Parameters:
grantee
- a consumer that will call methods onGrantee.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
grantee(Grantee)
-
permission
Grant.Builder permission(String permission)
Specifies the permission given to the grantee.
- Parameters:
permission
- Specifies the permission given to the grantee.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Permission
,Permission
-
permission
Grant.Builder permission(Permission permission)
Specifies the permission given to the grantee.
- Parameters:
permission
- Specifies the permission given to the grantee.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Permission
,Permission
-
-