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, sdkFieldscopyapplyMutation, buildGrant.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 method 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.Buildergrantee(Grantee)Grant.Builder permission(String permission)
Specifies the permission given to the grantee.
permission - Specifies the permission given to the grantee.Permission,
PermissionGrant.Builder permission(Permission permission)
Specifies the permission given to the grantee.
permission - Specifies the permission given to the grantee.Permission,
PermissionCopyright © 2022. All rights reserved.