public class RevokeGrantRequest extends AmazonWebServiceRequest implements java.io.Serializable
Revokes a grant. You can revoke a grant to actively deny operations that depend on it.
Constructor and Description |
---|
RevokeGrantRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGrantId()
Identifier of the grant to be revoked.
|
java.lang.String |
getKeyId()
A unique identifier for the customer master key associated with the
grant.
|
int |
hashCode() |
void |
setGrantId(java.lang.String grantId)
Identifier of the grant to be revoked.
|
void |
setKeyId(java.lang.String keyId)
A unique identifier for the customer master key associated with the
grant.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RevokeGrantRequest |
withGrantId(java.lang.String grantId)
Identifier of the grant to be revoked.
|
RevokeGrantRequest |
withKeyId(java.lang.String keyId)
A unique identifier for the customer master key associated with the
grant.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getKeyId()
A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234 -1234-123456789012
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
Constraints:
Length: 1 - 256
A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678- 1234-1234-1234-123456789012
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
public void setKeyId(java.lang.String keyId)
A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234 -1234-123456789012
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
Constraints:
Length: 1 - 256
keyId
- A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678 -1234-1234-1234-123456789012
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
public RevokeGrantRequest withKeyId(java.lang.String keyId)
A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234 -1234-123456789012
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
keyId
- A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678 -1234-1234-1234-123456789012
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
public java.lang.String getGrantId()
Identifier of the grant to be revoked.
Constraints:
Length: 1 - 128
Identifier of the grant to be revoked.
public void setGrantId(java.lang.String grantId)
Identifier of the grant to be revoked.
Constraints:
Length: 1 - 128
grantId
- Identifier of the grant to be revoked.
public RevokeGrantRequest withGrantId(java.lang.String grantId)
Identifier of the grant to be revoked.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
grantId
- Identifier of the grant to be revoked.
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 © 2010 Amazon Web Services, Inc. All Rights Reserved.