public class GrantListEntry extends Object implements Serializable
Contains information about an entry in a list of grants.
| Constructor and Description |
|---|
GrantListEntry() |
| Modifier and Type | Method and Description |
|---|---|
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 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)
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 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)
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 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(String... operations)
The list of operations permitted by the grant.
|
GrantListEntry |
withRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
|
public String getKeyId()
The unique identifier for the customer master key (CMK) to which the grant applies.
Constraints:
Length: 1 - 2048
The unique identifier for the customer master key (CMK) to which the grant applies.
public void setKeyId(String keyId)
The unique identifier for the customer master key (CMK) to which the grant applies.
Constraints:
Length: 1 - 2048
keyId - The unique identifier for the customer master key (CMK) to which the grant applies.
public GrantListEntry withKeyId(String keyId)
The unique identifier for the customer master key (CMK) to which the grant applies.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId - The unique identifier for the customer master key (CMK) to which the grant applies.
public String getGrantId()
The unique identifier for the grant.
Constraints:
Length: 1 - 128
The unique identifier for the grant.
public void setGrantId(String grantId)
The unique identifier for the grant.
Constraints:
Length: 1 - 128
grantId - The unique identifier for the grant.
public GrantListEntry withGrantId(String grantId)
The unique identifier for the grant.
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()
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.
Constraints:
Length: 1 - 256
Pattern: ^[a-zA-Z0-9:/_-]+$
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 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.
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)
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.
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()
The date and time when the grant was created.
The date and time when the grant was created.
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 GrantListEntry withCreationDate(Date creationDate)
The date and time when the grant was created.
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()
The principal that receives the grant's permissions.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
The principal that receives the grant's permissions.
public void setGranteePrincipal(String granteePrincipal)
The principal that receives the grant's permissions.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
granteePrincipal - The principal that receives the grant's permissions.
public GrantListEntry withGranteePrincipal(String granteePrincipal)
The principal that receives the grant's permissions.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
granteePrincipal - The principal that receives the grant's permissions.
public String getRetiringPrincipal()
The principal that can retire the grant.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
The principal that can retire the grant.
public void setRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
retiringPrincipal - The principal that can retire the grant.
public GrantListEntry withRetiringPrincipal(String retiringPrincipal)
The principal that can retire the grant.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
retiringPrincipal - The principal that can retire the grant.
public String getIssuingAccount()
The AWS account under which the grant was issued.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
The AWS account under which the grant was issued.
public void setIssuingAccount(String issuingAccount)
The AWS account under which the grant was issued.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
issuingAccount - The AWS account under which the grant was issued.
public GrantListEntry withIssuingAccount(String issuingAccount)
The AWS account under which the grant was issued.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
issuingAccount - The AWS account under which the grant was issued.
public List<String> getOperations()
The list of operations permitted by the grant.
The list of operations permitted by the grant.
public void setOperations(Collection<String> operations)
The list of operations permitted by the grant.
operations - The list of operations permitted by the grant.
public GrantListEntry withOperations(String... operations)
The list of operations permitted by the grant.
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)
The list of operations permitted by the grant.
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()
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
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 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.
Returns a reference to this object so that method calls can be chained together.
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 ObjectObject.toString()Copyright © 2019. All rights reserved.