public static interface TargetGrant.Builder extends SdkPojo, CopyableBuilder<TargetGrant.Builder,TargetGrant>
Modifier and Type | Method and Description |
---|---|
default TargetGrant.Builder |
grantee(Consumer<Grantee.Builder> grantee)
Container for the person being granted permissions.
|
TargetGrant.Builder |
grantee(Grantee grantee)
Container for the person being granted permissions.
|
TargetGrant.Builder |
permission(BucketLogsPermission permission)
Logging permissions assigned to the grantee for the bucket.
|
TargetGrant.Builder |
permission(String permission)
Logging permissions assigned to the grantee for the bucket.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
TargetGrant.Builder grantee(Grantee grantee)
Container for the person being granted permissions.
grantee
- Container for the person being granted permissions.default TargetGrant.Builder grantee(Consumer<Grantee.Builder> grantee)
Container for 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)
TargetGrant.Builder permission(String permission)
Logging permissions assigned to the grantee for the bucket.
permission
- Logging permissions assigned to the grantee for the bucket.BucketLogsPermission
,
BucketLogsPermission
TargetGrant.Builder permission(BucketLogsPermission permission)
Logging permissions assigned to the grantee for the bucket.
permission
- Logging permissions assigned to the grantee for the bucket.BucketLogsPermission
,
BucketLogsPermission
Copyright © 2020. All rights reserved.