public class CreateGrantResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
grantId
The unique identifier for the grant.
|
private java.lang.String |
grantToken
The grant token.
|
Constructor and Description |
---|
CreateGrantResult() |
Modifier and Type | Method and Description |
---|---|
CreateGrantResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGrantId()
The unique identifier for the grant.
|
java.lang.String |
getGrantToken()
The grant token.
|
int |
hashCode() |
void |
setGrantId(java.lang.String grantId)
The unique identifier for the grant.
|
void |
setGrantToken(java.lang.String grantToken)
The grant token.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateGrantResult |
withGrantId(java.lang.String grantId)
The unique identifier for the grant.
|
CreateGrantResult |
withGrantToken(java.lang.String grantToken)
The grant token.
|
private java.lang.String grantToken
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
private java.lang.String grantId
The unique identifier for the grant.
You can use the GrantId
in a subsequent RetireGrant
or RevokeGrant operation.
public void setGrantToken(java.lang.String grantToken)
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
grantToken
- The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
public java.lang.String getGrantToken()
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
public CreateGrantResult withGrantToken(java.lang.String grantToken)
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
grantToken
- The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
public void setGrantId(java.lang.String grantId)
The unique identifier for the grant.
You can use the GrantId
in a subsequent RetireGrant
or RevokeGrant operation.
grantId
- The unique identifier for the grant.
You can use the GrantId
in a subsequent
RetireGrant or RevokeGrant operation.
public java.lang.String getGrantId()
The unique identifier for the grant.
You can use the GrantId
in a subsequent RetireGrant
or RevokeGrant operation.
You can use the GrantId
in a subsequent
RetireGrant or RevokeGrant operation.
public CreateGrantResult withGrantId(java.lang.String grantId)
The unique identifier for the grant.
You can use the GrantId
in a subsequent RetireGrant
or RevokeGrant operation.
grantId
- The unique identifier for the grant.
You can use the GrantId
in a subsequent
RetireGrant or RevokeGrant operation.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateGrantResult clone()
clone
in class java.lang.Object