Class TargetGrant
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.TargetGrant
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetGrant.Builder,TargetGrant>
@Generated("software.amazon.awssdk:codegen") public final class TargetGrant extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetGrant.Builder,TargetGrant>
Container for granting information.
Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions server access log delivery in the Amazon S3 User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetGrant.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetGrant.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Granteegrantee()Container for the person being granted permissions.inthashCode()BucketLogsPermissionpermission()Logging permissions assigned to the grantee for the bucket.StringpermissionAsString()Logging permissions assigned to the grantee for the bucket.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TargetGrant.Builder>serializableBuilderClass()TargetGrant.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
grantee
public final Grantee grantee()
Container for the person being granted permissions.
- Returns:
- Container for the person being granted permissions.
-
permission
public final BucketLogsPermission permission()
Logging permissions assigned to the grantee for the bucket.
If the service returns an enum value that is not available in the current SDK version,
permissionwill returnBucketLogsPermission.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionAsString().- Returns:
- Logging permissions assigned to the grantee for the bucket.
- See Also:
BucketLogsPermission
-
permissionAsString
public final String permissionAsString()
Logging permissions assigned to the grantee for the bucket.
If the service returns an enum value that is not available in the current SDK version,
permissionwill returnBucketLogsPermission.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionAsString().- Returns:
- Logging permissions assigned to the grantee for the bucket.
- See Also:
BucketLogsPermission
-
toBuilder
public TargetGrant.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetGrant.Builder,TargetGrant>
-
builder
public static TargetGrant.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetGrant.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-