@Generated(value="software.amazon.awssdk:codegen") public final class AclGrantee extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AclGrantee.Builder,AclGrantee>
You specify each grantee as a type-value pair using one of these types. You can specify only one type of grantee. For more information, see PutBucketAcl.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AclGrantee.Builder |
static class |
AclGrantee.Type |
| Modifier and Type | Method and Description |
|---|---|
static AclGrantee.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static AclGrantee |
fromId(String id)
Create an instance of this class with
id() initialized to the given value. |
static AclGrantee |
fromUri(String uri)
Create an instance of this class with
uri() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The value specified is the canonical user ID of an Amazon Web Services account.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AclGrantee.Builder> |
serializableBuilderClass() |
AclGrantee.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AclGrantee.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
String |
uri()
Used for granting permissions to a predefined group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The value specified is the canonical user ID of an Amazon Web Services account.
public final String uri()
Used for granting permissions to a predefined group.
public AclGrantee.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AclGrantee.Builder,AclGrantee>public static AclGrantee.Builder builder()
public static Class<? extends AclGrantee.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static AclGrantee fromId(String id)
id() initialized to the given value.
The value specified is the canonical user ID of an Amazon Web Services account.
id - The value specified is the canonical user ID of an Amazon Web Services account.public static AclGrantee fromUri(String uri)
uri() initialized to the given value.
Used for granting permissions to a predefined group.
uri - Used for granting permissions to a predefined group.public AclGrantee.Type type()
Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.