public class GrantListEntry
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an entry in a list of grants.
Modifier and Type | Field and Description |
---|---|
private GrantConstraints |
constraints
The conditions under which the grant's operations are allowed.
|
private java.util.Date |
creationDate
The date and time when the grant was created.
|
private java.lang.String |
granteePrincipal
The principal that receives the grant's permissions.
|
private java.lang.String |
grantId
The unique identifier for the grant.
|
private java.lang.String |
issuingAccount
The AWS account under which the grant was issued.
|
private java.lang.String |
keyId
The unique identifier for the customer master key (CMK) to which the
grant applies.
|
private java.lang.String |
name
The friendly name that identifies the grant.
|
private SdkInternalList<java.lang.String> |
operations
The list of operations permitted by the grant.
|
private java.lang.String |
retiringPrincipal
The principal that can retire the grant.
|
Constructor and Description |
---|
GrantListEntry() |
Modifier and Type | Method and Description |
---|---|
GrantListEntry |
clone() |
boolean |
equals(java.lang.Object obj) |
GrantConstraints |
getConstraints()
The conditions under which the grant's operations are allowed.
|
java.util.Date |
getCreationDate()
The date and time when the grant was created.
|
java.lang.String |
getGranteePrincipal()
The principal that receives the grant's permissions.
|
java.lang.String |
getGrantId()
The unique identifier for the grant.
|
java.lang.String |
getIssuingAccount()
The AWS account under which the grant was issued.
|
java.lang.String |
getKeyId()
The unique identifier for the customer master key (CMK) to which the
grant applies.
|
java.lang.String |
getName()
The friendly name that identifies the grant.
|
java.util.List<java.lang.String> |
getOperations()
The list of operations permitted by the grant.
|
java.lang.String |
getRetiringPrincipal()
The principal that can retire the grant.
|
int |
hashCode() |
void |
setConstraints(GrantConstraints constraints)
The conditions under which the grant's operations are allowed.
|
void |
setCreationDate(java.util.Date creationDate)
The date and time when the grant was created.
|
void |
setGranteePrincipal(java.lang.String granteePrincipal)
The principal that receives the grant's permissions.
|
void |
setGrantId(java.lang.String grantId)
The unique identifier for the grant.
|
void |
setIssuingAccount(java.lang.String issuingAccount)
The AWS account under which the grant was issued.
|
void |
setKeyId(java.lang.String keyId)
The unique identifier for the customer master key (CMK) to which the
grant applies.
|
void |
setName(java.lang.String name)
The friendly name that identifies the grant.
|
void |
setOperations(java.util.Collection<java.lang.String> operations)
The list of operations permitted by the grant.
|
void |
setRetiringPrincipal(java.lang.String retiringPrincipal)
The principal that can retire the grant.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GrantListEntry |
withConstraints(GrantConstraints constraints)
The conditions under which the grant's operations are allowed.
|
GrantListEntry |
withCreationDate(java.util.Date creationDate)
The date and time when the grant was created.
|
GrantListEntry |
withGranteePrincipal(java.lang.String granteePrincipal)
The principal that receives the grant's permissions.
|
GrantListEntry |
withGrantId(java.lang.String grantId)
The unique identifier for the grant.
|
GrantListEntry |
withIssuingAccount(java.lang.String issuingAccount)
The AWS account under which the grant was issued.
|
GrantListEntry |
withKeyId(java.lang.String keyId)
The unique identifier for the customer master key (CMK) to which the
grant applies.
|
GrantListEntry |
withName(java.lang.String name)
The friendly name that identifies the grant.
|
GrantListEntry |
withOperations(java.util.Collection<java.lang.String> operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withOperations(GrantOperation... operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withOperations(java.lang.String... operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withRetiringPrincipal(java.lang.String retiringPrincipal)
The principal that can retire the grant.
|
private java.lang.String keyId
The unique identifier for the customer master key (CMK) to which the grant applies.
private java.lang.String grantId
The unique identifier for the grant.
private java.lang.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.
private java.util.Date creationDate
The date and time when the grant was created.
private java.lang.String granteePrincipal
The principal that receives the grant's permissions.
private java.lang.String retiringPrincipal
The principal that can retire the grant.
private java.lang.String issuingAccount
The AWS account under which the grant was issued.
private SdkInternalList<java.lang.String> operations
The list of operations permitted by the grant.
private GrantConstraints constraints
The conditions under which the grant's operations are allowed.
public void setKeyId(java.lang.String keyId)
The unique identifier for the customer master key (CMK) to which the grant applies.
keyId
- The unique identifier for the customer master key (CMK) to which
the grant applies.public java.lang.String getKeyId()
The unique identifier for the customer master key (CMK) to which the grant applies.
public GrantListEntry withKeyId(java.lang.String keyId)
The unique identifier for the customer master key (CMK) to which the grant applies.
keyId
- The unique identifier for the customer master key (CMK) to which
the grant applies.public void setGrantId(java.lang.String grantId)
The unique identifier for the grant.
grantId
- The unique identifier for the grant.public java.lang.String getGrantId()
The unique identifier for the grant.
public GrantListEntry withGrantId(java.lang.String grantId)
The unique identifier for the grant.
grantId
- The unique identifier for the grant.public void setName(java.lang.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 java.lang.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(java.lang.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(java.util.Date creationDate)
The date and time when the grant was created.
creationDate
- The date and time when the grant was created.public java.util.Date getCreationDate()
The date and time when the grant was created.
public GrantListEntry withCreationDate(java.util.Date creationDate)
The date and time when the grant was created.
creationDate
- The date and time when the grant was created.public void setGranteePrincipal(java.lang.String granteePrincipal)
The principal that receives the grant's permissions.
granteePrincipal
- The principal that receives the grant's permissions.public java.lang.String getGranteePrincipal()
The principal that receives the grant's permissions.
public GrantListEntry withGranteePrincipal(java.lang.String granteePrincipal)
The principal that receives the grant's permissions.
granteePrincipal
- The principal that receives the grant's permissions.public void setRetiringPrincipal(java.lang.String retiringPrincipal)
The principal that can retire the grant.
retiringPrincipal
- The principal that can retire the grant.public java.lang.String getRetiringPrincipal()
The principal that can retire the grant.
public GrantListEntry withRetiringPrincipal(java.lang.String retiringPrincipal)
The principal that can retire the grant.
retiringPrincipal
- The principal that can retire the grant.public void setIssuingAccount(java.lang.String issuingAccount)
The AWS account under which the grant was issued.
issuingAccount
- The AWS account under which the grant was issued.public java.lang.String getIssuingAccount()
The AWS account under which the grant was issued.
public GrantListEntry withIssuingAccount(java.lang.String issuingAccount)
The AWS account under which the grant was issued.
issuingAccount
- The AWS account under which the grant was issued.public java.util.List<java.lang.String> getOperations()
The list of operations permitted by the grant.
GrantOperation
public void setOperations(java.util.Collection<java.lang.String> operations)
The list of operations permitted by the grant.
operations
- The list of operations permitted by the grant.GrantOperation
public GrantListEntry withOperations(java.lang.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(java.util.Collection<java.lang.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)
The conditions under which the grant's operations are allowed.
constraints
- The conditions under which the grant's operations are allowed.public GrantConstraints getConstraints()
The conditions under which the grant's operations are allowed.
public GrantListEntry withConstraints(GrantConstraints constraints)
The conditions under which the grant's operations are allowed.
constraints
- The conditions under which the grant's operations are allowed.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GrantListEntry clone()
clone
in class java.lang.Object