public class GrantListEntry extends Object implements Serializable, Cloneable
Contains information about an entry in a list of grants.
| Constructor and Description |
|---|
GrantListEntry() |
| Modifier and Type | Method and Description |
|---|---|
GrantListEntry |
clone() |
boolean |
equals(Object obj) |
GrantConstraints |
getConstraints()
The conditions under which the grant's operations are allowed.
|
Date |
getCreationDate()
The date and time when the grant was created.
|
String |
getGranteePrincipal()
The principal that receives the grant's permissions.
|
String |
getGrantId()
The unique identifier for the grant.
|
String |
getIssuingAccount()
The AWS account under which the grant was issued.
|
String |
getKeyId()
The unique identifier for the customer master key (CMK) 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 |
setConstraints(GrantConstraints constraints)
The conditions under which the grant's operations are allowed.
|
void |
setCreationDate(Date creationDate)
The date and time when the grant was created.
|
void |
setGranteePrincipal(String granteePrincipal)
The principal that receives the grant's permissions.
|
void |
setGrantId(String grantId)
The unique identifier for the grant.
|
void |
setIssuingAccount(String issuingAccount)
The AWS account under which the grant was issued.
|
void |
setKeyId(String keyId)
The unique identifier for the customer master key (CMK) 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; useful for testing and
debugging.
|
GrantListEntry |
withConstraints(GrantConstraints constraints)
The conditions under which the grant's operations are allowed.
|
GrantListEntry |
withCreationDate(Date creationDate)
The date and time when the grant was created.
|
GrantListEntry |
withGranteePrincipal(String granteePrincipal)
The principal that receives the grant's permissions.
|
GrantListEntry |
withGrantId(String grantId)
The unique identifier for the grant.
|
GrantListEntry |
withIssuingAccount(String issuingAccount)
The AWS account under which the grant was issued.
|
GrantListEntry |
withKeyId(String keyId)
The unique identifier for the customer master key (CMK) 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 String getKeyId()
Constraints:
Length: 1 - 256
public void setKeyId(String keyId)
Constraints:
Length: 1 - 256
keyId - The unique identifier for the customer master key (CMK) to which the
grant applies.public GrantListEntry withKeyId(String keyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
keyId - The unique identifier for the customer master key (CMK) to which the
grant applies.public String getGrantId()
Constraints:
Length: 1 - 128
public void setGrantId(String grantId)
Constraints:
Length: 1 - 128
grantId - The unique identifier for the grant.public GrantListEntry withGrantId(String grantId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
grantId - The unique identifier for the grant.public String getName()
Constraints:
Length: 1 - 256
Pattern: ^[a-zA-Z0-9:/_-]+$
public void setName(String name)
Constraints:
Length: 1 - 256
Pattern: ^[a-zA-Z0-9:/_-]+$
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 GrantListEntry withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^[a-zA-Z0-9:/_-]+$
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 Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate - The date and time when the grant was created.public GrantListEntry withCreationDate(Date creationDate)
Returns a reference to this object so that method calls can be chained together.
creationDate - The date and time when the grant was created.public String getGranteePrincipal()
Constraints:
Length: 1 - 256
public void setGranteePrincipal(String granteePrincipal)
Constraints:
Length: 1 - 256
granteePrincipal - The principal that receives the grant's permissions.public GrantListEntry withGranteePrincipal(String granteePrincipal)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
granteePrincipal - The principal that receives the grant's permissions.public String getRetiringPrincipal()
Constraints:
Length: 1 - 256
public void setRetiringPrincipal(String retiringPrincipal)
Constraints:
Length: 1 - 256
retiringPrincipal - The principal that can retire the grant.public GrantListEntry withRetiringPrincipal(String retiringPrincipal)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
retiringPrincipal - The principal that can retire the grant.public String getIssuingAccount()
Constraints:
Length: 1 - 256
public void setIssuingAccount(String issuingAccount)
Constraints:
Length: 1 - 256
issuingAccount - The AWS account under which the grant was issued.public GrantListEntry withIssuingAccount(String issuingAccount)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
issuingAccount - The AWS account under which the grant was issued.public List<String> getOperations()
public void setOperations(Collection<String> operations)
operations - The list of operations permitted by the grant.public GrantListEntry withOperations(String... operations)
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.
Returns a reference to this object so that method calls can be chained together.
operations - The list of operations permitted by the grant.public GrantListEntry withOperations(Collection<String> operations)
Returns a reference to this object so that method calls can be chained together.
operations - The list of operations permitted by the grant.public GrantListEntry withOperations(GrantOperation... operations)
Returns a reference to this object so that method calls can be chained together.
operations - The list of operations permitted by the grant.public GrantConstraints getConstraints()
public void setConstraints(GrantConstraints constraints)
constraints - The conditions under which the grant's operations are allowed.public GrantListEntry withConstraints(GrantConstraints constraints)
Returns a reference to this object so that method calls can be chained together.
constraints - The conditions under which the grant's operations are allowed.public String toString()
toString in class ObjectObject.toString()public GrantListEntry clone()
Copyright © 2015. All rights reserved.