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 interface
TargetGrant.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetGrant.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
Grantee
grantee()
Container for the person being granted permissions.int
hashCode()
BucketLogsPermission
permission()
Logging permissions assigned to the grantee for the bucket.String
permissionAsString()
Logging permissions assigned to the grantee for the bucket.List<SdkField<?>>
sdkFields()
static Class<? extends TargetGrant.Builder>
serializableBuilderClass()
TargetGrant.Builder
toBuilder()
String
toString()
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,
permission
will 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,
permission
will 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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-