Class Grant
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.Grant
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Grant.Builder,Grant>
@Generated("software.amazon.awssdk:codegen") public final class Grant extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Grant.Builder,Grant>
Container for grant information.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGrant.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Grant.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Granteegrantee()The person being granted permissions.inthashCode()Permissionpermission()Specifies the permission given to the grantee.StringpermissionAsString()Specifies the permission given to the grantee.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Grant.Builder>serializableBuilderClass()Grant.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()
The person being granted permissions.
- Returns:
- The person being granted permissions.
-
permission
public final Permission permission()
Specifies the permission given to the grantee.
If the service returns an enum value that is not available in the current SDK version,
permissionwill returnPermission.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionAsString().- Returns:
- Specifies the permission given to the grantee.
- See Also:
Permission
-
permissionAsString
public final String permissionAsString()
Specifies the permission given to the grantee.
If the service returns an enum value that is not available in the current SDK version,
permissionwill returnPermission.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionAsString().- Returns:
- Specifies the permission given to the grantee.
- See Also:
Permission
-
toBuilder
public Grant.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Grant.Builder,Grant>
-
builder
public static Grant.Builder builder()
-
serializableBuilderClass
public static Class<? extends Grant.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
-
-