Class GrantListEntry
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about an entry in a list of grants.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The conditions under which the grant's operations are allowed.The date and time when the grant was created.The principal that receives the grant's permissions.The unique identifier for the grant.The AWS account under which the grant was issued.getKeyId()
The unique identifier for the customer master key (CMK) to which the grant applies.getName()
The friendly name that identifies the grant.The list of operations permitted by the grant.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
The unique identifier for the customer master key (CMK) to which the grant applies.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withConstraints
(GrantConstraints constraints) The conditions under which the grant's operations are allowed.withCreationDate
(Date creationDate) The date and time when the grant was created.withGranteePrincipal
(String granteePrincipal) The principal that receives the grant's permissions.withGrantId
(String grantId) The unique identifier for the grant.withIssuingAccount
(String issuingAccount) The AWS account under which the grant was issued.The unique identifier for the customer master key (CMK) to which the grant applies.The friendly name that identifies the grant.withOperations
(GrantOperation... operations) The list of operations permitted by the grant.withOperations
(String... operations) The list of operations permitted by the grant.withOperations
(Collection<String> operations) The list of operations permitted by the grant.withRetiringPrincipal
(String retiringPrincipal) The principal that can retire the grant.
-
Constructor Details
-
GrantListEntry
public GrantListEntry()
-
-
Method Details
-
setKeyId
The unique identifier for the customer master key (CMK) to which the grant applies.
- Parameters:
keyId
- The unique identifier for the customer master key (CMK) to which the grant applies.
-
getKeyId
The unique identifier for the customer master key (CMK) to which the grant applies.
- Returns:
- The unique identifier for the customer master key (CMK) to which the grant applies.
-
withKeyId
The unique identifier for the customer master key (CMK) to which the grant applies.
- Parameters:
keyId
- The unique identifier for the customer master key (CMK) to which the grant applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGrantId
The unique identifier for the grant.
- Parameters:
grantId
- The unique identifier for the grant.
-
getGrantId
The unique identifier for the grant.
- Returns:
- The unique identifier for the grant.
-
withGrantId
The unique identifier for the grant.
- Parameters:
grantId
- The unique identifier for the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withName
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
The date and time when the grant was created.
- Parameters:
creationDate
- The date and time when the grant was created.
-
getCreationDate
The date and time when the grant was created.
- Returns:
- The date and time when the grant was created.
-
withCreationDate
The date and time when the grant was created.
- Parameters:
creationDate
- The date and time when the grant was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGranteePrincipal
The principal that receives the grant's permissions.
- Parameters:
granteePrincipal
- The principal that receives the grant's permissions.
-
getGranteePrincipal
The principal that receives the grant's permissions.
- Returns:
- The principal that receives the grant's permissions.
-
withGranteePrincipal
The principal that receives the grant's permissions.
- Parameters:
granteePrincipal
- The principal that receives the grant's permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRetiringPrincipal
The principal that can retire the grant.
- Parameters:
retiringPrincipal
- The principal that can retire the grant.
-
getRetiringPrincipal
The principal that can retire the grant.
- Returns:
- The principal that can retire the grant.
-
withRetiringPrincipal
The principal that can retire the grant.
- Parameters:
retiringPrincipal
- The principal that can retire the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIssuingAccount
The AWS account under which the grant was issued.
- Parameters:
issuingAccount
- The AWS account under which the grant was issued.
-
getIssuingAccount
The AWS account under which the grant was issued.
- Returns:
- The AWS account under which the grant was issued.
-
withIssuingAccount
The AWS account under which the grant was issued.
- Parameters:
issuingAccount
- The AWS account under which the grant was issued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getOperations
The list of operations permitted by the grant.
- Returns:
- The list of operations permitted by the grant.
- See Also:
-
setOperations
The list of operations permitted by the grant.
- Parameters:
operations
- The list of operations permitted by the grant.- See Also:
-
withOperations
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)
orwithOperations(java.util.Collection)
if you want to override the existing values.- Parameters:
operations
- The list of operations permitted by the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withOperations
The list of operations permitted by the grant.
- Parameters:
operations
- The list of operations permitted by the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withOperations
The list of operations permitted by the grant.
- Parameters:
operations
- The list of operations permitted by the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setConstraints
The conditions under which the grant's operations are allowed.
- Parameters:
constraints
- The conditions under which the grant's operations are allowed.
-
getConstraints
The conditions under which the grant's operations are allowed.
- Returns:
- The conditions under which the grant's operations are allowed.
-
withConstraints
The conditions under which the grant's operations are allowed.
- Parameters:
constraints
- The conditions under which the grant's operations are allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-