public class GrantListEntry
extends java.lang.Object
implements java.io.Serializable
Contains information about a grant.
Constructor and Description |
---|
GrantListEntry() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.util.Date |
getCreationDate()
The date and time when the grant was created.
|
java.lang.String |
getGranteePrincipal()
The identity that gets the permissions in the grant.
|
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)
A list of key-value pairs that must be present in the encryption context
of certain subsequent operations that the grant allows.
|
void |
setCreationDate(java.util.Date creationDate)
The date and time when the grant was created.
|
void |
setGranteePrincipal(java.lang.String granteePrincipal)
The identity that gets the permissions in the grant.
|
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)
A list of key-value pairs that must be present in the encryption context
of certain subsequent operations that the grant allows.
|
GrantListEntry |
withCreationDate(java.util.Date creationDate)
The date and time when the grant was created.
|
GrantListEntry |
withGranteePrincipal(java.lang.String granteePrincipal)
The identity that gets the permissions in the grant.
|
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(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.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getGrantId()
The unique identifier for the grant.
Constraints:
Length: 1 - 128
The unique identifier for the grant.
public void setGrantId(java.lang.String grantId)
The unique identifier for the grant.
Constraints:
Length: 1 - 128
grantId
- The unique identifier for the grant.
public GrantListEntry withGrantId(java.lang.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 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.
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(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.
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(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.
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 java.util.Date getCreationDate()
The date and time when the grant was created.
The date and time when the grant was created.
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 GrantListEntry withCreationDate(java.util.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 java.lang.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 AWS service, the GranteePrincipal
field contains the
service principal, which might represent several different grantee
principals.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
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 AWS service, the
GranteePrincipal
field contains the service principal, which might represent several different
grantee principals.
public void setGranteePrincipal(java.lang.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 AWS service, the GranteePrincipal
field contains the
service principal, which might represent several different grantee
principals.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
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 AWS
service, the GranteePrincipal
field contains the
service principal, which might represent several
different grantee principals.
public GrantListEntry withGranteePrincipal(java.lang.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 AWS service, the GranteePrincipal
field contains the
service principal, which might represent several different grantee
principals.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
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 AWS
service, the GranteePrincipal
field contains the
service principal, which might represent several
different grantee principals.
public java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.List<java.lang.String> getOperations()
The list of operations permitted by the grant.
The list of operations permitted by the grant.
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.
public GrantListEntry withOperations(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.