@Generated(value="software.amazon.awssdk:codegen") public final class AccessControlPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccessControlPolicy.Builder,AccessControlPolicy>
Contains the elements that set the ACL permissions for an object per grantee.
Modifier and Type | Class and Description |
---|---|
static interface |
AccessControlPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static AccessControlPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<Grant> |
grants()
A list of grants.
|
boolean |
hasGrants()
Returns true if the Grants property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
Owner |
owner()
Container for the bucket owner's display name and ID.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AccessControlPolicy.Builder> |
serializableBuilderClass() |
AccessControlPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public boolean hasGrants()
public List<Grant> grants()
A list of grants.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGrants()
to see if a value was sent in this field.
public Owner owner()
Container for the bucket owner's display name and ID.
public AccessControlPolicy.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AccessControlPolicy.Builder,AccessControlPolicy>
public static AccessControlPolicy.Builder builder()
public static Class<? extends AccessControlPolicy.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.