Class AclGrantee
- java.lang.Object
-
- software.amazon.awssdk.services.accessanalyzer.model.AclGrantee
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AclGrantee.Builder,AclGrantee>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAclGrantee.Builderstatic classAclGrantee.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AclGrantee.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static AclGranteefromId(String id)Create an instance of this class withid()initialized to the given value.static AclGranteefromUri(String uri)Create an instance of this class withuri()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The value specified is the canonical user ID of an Amazon Web Services account.List<SdkField<?>>sdkFields()static Class<? extends AclGrantee.Builder>serializableBuilderClass()AclGrantee.BuildertoBuilder()StringtoString()Returns a string representation of this object.AclGrantee.Typetype()Retrieve an enum value representing which member of this object is populated.Stringuri()Used for granting permissions to a predefined group.-
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
-
id
public final String id()
The value specified is the canonical user ID of an Amazon Web Services account.
- Returns:
- The value specified is the canonical user ID of an Amazon Web Services account.
-
uri
public final String uri()
Used for granting permissions to a predefined group.
- Returns:
- Used for granting permissions to a predefined group.
-
toBuilder
public AclGrantee.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AclGrantee.Builder,AclGrantee>
-
builder
public static AclGrantee.Builder builder()
-
serializableBuilderClass
public static Class<? extends AclGrantee.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.
-
fromId
public static AclGrantee fromId(String id)
Create an instance of this class withid()initialized to the given value.The value specified is the canonical user ID of an Amazon Web Services account.
- Parameters:
id- The value specified is the canonical user ID of an Amazon Web Services account.
-
fromUri
public static AclGrantee fromUri(String uri)
Create an instance of this class withuri()initialized to the given value.Used for granting permissions to a predefined group.
- Parameters:
uri- Used for granting permissions to a predefined group.
-
type
public AclGrantee.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAclGrantee.Type.UNKNOWN_TO_SDK_VERSIONif 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 beAclGrantee.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-