Interface S3Grant.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<S3Grant.Builder,S3Grant>,SdkBuilder<S3Grant.Builder,S3Grant>,SdkPojo
- Enclosing class:
- S3Grant
public static interface S3Grant.Builder extends SdkPojo, CopyableBuilder<S3Grant.Builder,S3Grant>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default S3Grant.Buildergrantee(Consumer<S3Grantee.Builder> grantee)This is a convenience method that creates an instance of theS3Grantee.Builderavoiding the need to create one manually viaS3Grantee.builder().S3Grant.Buildergrantee(S3Grantee grantee)S3Grant.Builderpermission(String permission)S3Grant.Builderpermission(S3Permission permission)-
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, sdkFields
-
-
-
-
Method Detail
-
grantee
S3Grant.Builder grantee(S3Grantee grantee)
- Parameters:
grantee-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
default S3Grant.Builder grantee(Consumer<S3Grantee.Builder> grantee)
This is a convenience method that creates an instance of theS3Grantee.Builderavoiding the need to create one manually viaS3Grantee.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tograntee(S3Grantee).- Parameters:
grantee- a consumer that will call methods onS3Grantee.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
grantee(S3Grantee)
-
permission
S3Grant.Builder permission(String permission)
- Parameters:
permission-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3Permission,S3Permission
-
permission
S3Grant.Builder permission(S3Permission permission)
- Parameters:
permission-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
S3Permission,S3Permission
-
-