public static interface Grant.Builder extends SdkPojo, CopyableBuilder<Grant.Builder,Grant>
Modifier and Type | Method and 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(Permission permission)
Specifies the permission given to the grantee.
|
Grant.Builder |
permission(String permission)
Specifies the permission given to the grantee.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Grant.Builder grantee(Grantee grantee)
The person being granted permissions.
grantee
- The person being granted permissions.default Grant.Builder grantee(Consumer<Grantee.Builder> grantee)
The person being granted permissions.
This is a convenience that creates an instance of theGrantee.Builder
avoiding the need to create one
manually via Grantee.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to grantee(Grantee)
.grantee
- a consumer that will call methods on Grantee.Builder
grantee(Grantee)
Grant.Builder permission(String permission)
Specifies the permission given to the grantee.
permission
- Specifies the permission given to the grantee.Permission
,
Permission
Grant.Builder permission(Permission permission)
Specifies the permission given to the grantee.
permission
- Specifies the permission given to the grantee.Permission
,
Permission
Copyright © 2019. All rights reserved.