Class TargetGrant
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetGrant.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final Granteegrantee()Container for the person being granted permissions.final inthashCode()final BucketLogsPermissionLogging permissions assigned to the grantee for the bucket.final StringLogging permissions assigned to the grantee for the bucket.static Class<? extends TargetGrant.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
grantee
Container for the person being granted permissions.
- Returns:
- Container for the person being granted permissions.
-
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:
-
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:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetGrant.Builder,TargetGrant>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-