@Generated(value="software.amazon.awssdk:codegen") public final class GrantListEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GrantListEntry.Builder,GrantListEntry>
Contains information about a grant.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GrantListEntry.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GrantListEntry.Builder |
builder() |
GrantConstraints |
constraints()
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that
the grant allows.
|
Instant |
creationDate()
The date and time when the grant was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
granteePrincipal()
The identity that gets the permissions in the grant.
|
String |
grantId()
The unique identifier for the grant.
|
int |
hashCode() |
boolean |
hasOperations()
Returns true if the Operations property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
String |
issuingAccount()
The AWS account under which the grant was issued.
|
String |
keyId()
The unique identifier for the customer master key (CMK) to which the grant applies.
|
String |
name()
The friendly name that identifies the grant.
|
List<GrantOperation> |
operations()
The list of operations permitted by the grant.
|
List<String> |
operationsAsStrings()
The list of operations permitted by the grant.
|
String |
retiringPrincipal()
The principal that can retire the grant.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GrantListEntry.Builder> |
serializableBuilderClass() |
GrantListEntry.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String keyId()
The unique identifier for the customer master key (CMK) to which the grant applies.
public final String grantId()
The unique identifier for the grant.
public final String name()
The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.
public final Instant creationDate()
The date and time when the grant was created.
public final String granteePrincipal()
The identity that gets the permissions in the grant.
The GranteePrincipal field in the ListGrants response usually contains the user or role
designated as the grantee principal in the grant. However, when the grantee principal in the grant is an AWS
service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.
The GranteePrincipal field in the ListGrants response usually contains the user
or role designated as the grantee principal in the grant. However, when the grantee principal in the
grant is an AWS service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.
public final String retiringPrincipal()
The principal that can retire the grant.
public final String issuingAccount()
The AWS account under which the grant was issued.
public final List<GrantOperation> operations()
The list of operations permitted by the grant.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasOperations() to see if a value was sent in this field.
public final boolean hasOperations()
public final List<String> operationsAsStrings()
The list of operations permitted by the grant.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasOperations() to see if a value was sent in this field.
public final GrantConstraints constraints()
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
public GrantListEntry.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GrantListEntry.Builder,GrantListEntry>public static GrantListEntry.Builder builder()
public static Class<? extends GrantListEntry.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.