@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GrantListEntry extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a grant.
Constructor and Description |
---|
GrantListEntry() |
Modifier and Type | Method and Description |
---|---|
GrantListEntry |
clone() |
boolean |
equals(Object obj) |
GrantConstraints |
getConstraints()
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that
the grant allows.
|
Date |
getCreationDate()
The date and time when the grant was created.
|
String |
getGranteePrincipal()
The identity that gets the permissions in the grant.
|
String |
getGrantId()
The unique identifier for the grant.
|
String |
getIssuingAccount()
The Amazon Web Services account under which the grant was issued.
|
String |
getKeyId()
The unique identifier for the KMS key to which the grant applies.
|
String |
getName()
The friendly name that identifies the grant.
|
List<String> |
getOperations()
The list of operations permitted by the grant.
|
String |
getRetiringPrincipal()
The principal that can retire the grant.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConstraints(GrantConstraints constraints)
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that
the grant allows.
|
void |
setCreationDate(Date creationDate)
The date and time when the grant was created.
|
void |
setGranteePrincipal(String granteePrincipal)
The identity that gets the permissions in the grant.
|
void |
setGrantId(String grantId)
The unique identifier for the grant.
|
void |
setIssuingAccount(String issuingAccount)
The Amazon Web Services account under which the grant was issued.
|
void |
setKeyId(String keyId)
The unique identifier for the KMS key to which the grant applies.
|
void |
setName(String name)
The friendly name that identifies the grant.
|
void |
setOperations(Collection<String> operations)
The list of operations permitted by the grant.
|
void |
setRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
|
String |
toString()
Returns a string representation of this object.
|
GrantListEntry |
withConstraints(GrantConstraints constraints)
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that
the grant allows.
|
GrantListEntry |
withCreationDate(Date creationDate)
The date and time when the grant was created.
|
GrantListEntry |
withGranteePrincipal(String granteePrincipal)
The identity that gets the permissions in the grant.
|
GrantListEntry |
withGrantId(String grantId)
The unique identifier for the grant.
|
GrantListEntry |
withIssuingAccount(String issuingAccount)
The Amazon Web Services account under which the grant was issued.
|
GrantListEntry |
withKeyId(String keyId)
The unique identifier for the KMS key to which the grant applies.
|
GrantListEntry |
withName(String name)
The friendly name that identifies the grant.
|
GrantListEntry |
withOperations(Collection<String> operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withOperations(GrantOperation... operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withOperations(String... operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
|
public void setKeyId(String keyId)
The unique identifier for the KMS key to which the grant applies.
keyId
- The unique identifier for the KMS key to which the grant applies.public String getKeyId()
The unique identifier for the KMS key to which the grant applies.
public GrantListEntry withKeyId(String keyId)
The unique identifier for the KMS key to which the grant applies.
keyId
- The unique identifier for the KMS key to which the grant applies.public void setGrantId(String grantId)
The unique identifier for the grant.
grantId
- The unique identifier for the grant.public String getGrantId()
The unique identifier for the grant.
public GrantListEntry withGrantId(String grantId)
The unique identifier for the grant.
grantId
- The unique identifier for the grant.public void setName(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.
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 String getName()
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 GrantListEntry withName(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.
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 void setCreationDate(Date creationDate)
The date and time when the grant was created.
creationDate
- The date and time when the grant was created.public Date getCreationDate()
The date and time when the grant was created.
public GrantListEntry withCreationDate(Date creationDate)
The date and time when the grant was created.
creationDate
- The date and time when the grant was created.public void setGranteePrincipal(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 Amazon
Web Services service, the GranteePrincipal
field contains the service principal, which might represent several different grantee principals.
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 Amazon Web Services service, the GranteePrincipal
field contains the service principal, which might represent several different grantee principals.
public String getGranteePrincipal()
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 Amazon
Web Services 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 Amazon Web Services service, the GranteePrincipal
field contains the service principal, which might represent several different grantee principals.
public GrantListEntry withGranteePrincipal(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 Amazon
Web Services service, the GranteePrincipal
field contains the service principal, which might represent several different grantee principals.
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 Amazon Web Services service, the GranteePrincipal
field contains the service principal, which might represent several different grantee principals.
public void setRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
retiringPrincipal
- The principal that can retire the grant.public String getRetiringPrincipal()
The principal that can retire the grant.
public GrantListEntry withRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
retiringPrincipal
- The principal that can retire the grant.public void setIssuingAccount(String issuingAccount)
The Amazon Web Services account under which the grant was issued.
issuingAccount
- The Amazon Web Services account under which the grant was issued.public String getIssuingAccount()
The Amazon Web Services account under which the grant was issued.
public GrantListEntry withIssuingAccount(String issuingAccount)
The Amazon Web Services account under which the grant was issued.
issuingAccount
- The Amazon Web Services account under which the grant was issued.public List<String> getOperations()
The list of operations permitted by the grant.
GrantOperation
public void setOperations(Collection<String> operations)
The list of operations permitted by the grant.
operations
- The list of operations permitted by the grant.GrantOperation
public GrantListEntry withOperations(String... operations)
The list of operations permitted by the grant.
NOTE: This method appends the values to the existing list (if any). Use
setOperations(java.util.Collection)
or withOperations(java.util.Collection)
if you want to
override the existing values.
operations
- The list of operations permitted by the grant.GrantOperation
public GrantListEntry withOperations(Collection<String> operations)
The list of operations permitted by the grant.
operations
- The list of operations permitted by the grant.GrantOperation
public GrantListEntry withOperations(GrantOperation... operations)
The list of operations permitted by the grant.
operations
- The list of operations permitted by the grant.GrantOperation
public void setConstraints(GrantConstraints constraints)
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
constraints
- A list of key-value pairs that must be present in the encryption context of certain subsequent operations
that the grant allows.public GrantConstraints getConstraints()
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
public GrantListEntry withConstraints(GrantConstraints constraints)
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
constraints
- A list of key-value pairs that must be present in the encryption context of certain subsequent operations
that the grant allows.public String toString()
toString
in class Object
Object.toString()
public GrantListEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.