@Generated(value="software.amazon.awssdk:codegen") public final class GrantListEntry extends Object implements StructuredPojo, ToCopyableBuilder<GrantListEntry.Builder,GrantListEntry>
Contains information about an entry in a list of grants.
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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
granteePrincipal()
The principal that receives the grant's permissions.
|
String |
grantId()
The unique identifier for the grant.
|
int |
hashCode() |
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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
static Class<? extends GrantListEntry.Builder> |
serializableBuilderClass() |
GrantListEntry.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String keyId()
The unique identifier for the customer master key (CMK) to which the grant applies.
public String grantId()
The unique identifier for the grant.
public 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 Instant creationDate()
The date and time when the grant was created.
public String granteePrincipal()
The principal that receives the grant's permissions.
public String retiringPrincipal()
The principal that can retire the grant.
public String issuingAccount()
The AWS account under which the grant was issued.
public 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.
public 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.
public 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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GrantListEntry.Builder,GrantListEntry>
public static GrantListEntry.Builder builder()
public static Class<? extends GrantListEntry.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.