Interface TargetGrant.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TargetGrant.Builder,TargetGrant>
,SdkBuilder<TargetGrant.Builder,TargetGrant>
,SdkPojo
- Enclosing class:
- TargetGrant
public static interface TargetGrant.Builder extends SdkPojo, CopyableBuilder<TargetGrant.Builder,TargetGrant>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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(String permission)
Logging permissions assigned to the grantee for the bucket.TargetGrant.Builder
permission(BucketLogsPermission permission)
Logging permissions assigned to the grantee for the bucket.-
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
TargetGrant.Builder grantee(Grantee grantee)
Container for the person being granted permissions.
- Parameters:
grantee
- Container for the person being granted permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
default TargetGrant.Builder grantee(Consumer<Grantee.Builder> grantee)
Container for 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
TargetGrant.Builder permission(String permission)
Logging permissions assigned to the grantee for the bucket.
- Parameters:
permission
- Logging permissions assigned to the grantee for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BucketLogsPermission
,BucketLogsPermission
-
permission
TargetGrant.Builder permission(BucketLogsPermission permission)
Logging permissions assigned to the grantee for the bucket.
- Parameters:
permission
- Logging permissions assigned to the grantee for the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BucketLogsPermission
,BucketLogsPermission
-
-