Class CreateGrantResult
- java.lang.Object
-
- com.amazonaws.services.kms.model.CreateGrantResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CreateGrantResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateGrantResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateGrantResult
clone()
boolean
equals(Object obj)
String
getGrantId()
The unique identifier for the grant.String
getGrantToken()
The grant token.int
hashCode()
void
setGrantId(String grantId)
The unique identifier for the grant.void
setGrantToken(String grantToken)
The grant token.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateGrantResult
withGrantId(String grantId)
The unique identifier for the grant.CreateGrantResult
withGrantToken(String grantToken)
The grant token.
-
-
-
Method Detail
-
setGrantToken
public void setGrantToken(String grantToken)
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
- Parameters:
grantToken
- The grant token.For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
-
getGrantToken
public String getGrantToken()
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
- Returns:
- The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
-
withGrantToken
public CreateGrantResult withGrantToken(String grantToken)
The grant token.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
- Parameters:
grantToken
- The grant token.For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGrantId
public void setGrantId(String grantId)
The unique identifier for the grant.
You can use the
GrantId
in a subsequent RetireGrant or RevokeGrant operation.- Parameters:
grantId
- The unique identifier for the grant.You can use the
GrantId
in a subsequent RetireGrant or RevokeGrant operation.
-
getGrantId
public String getGrantId()
The unique identifier for the grant.
You can use the
GrantId
in a subsequent RetireGrant or RevokeGrant operation.- Returns:
- The unique identifier for the grant.
You can use the
GrantId
in a subsequent RetireGrant or RevokeGrant operation.
-
withGrantId
public CreateGrantResult withGrantId(String grantId)
The unique identifier for the grant.
You can use the
GrantId
in a subsequent RetireGrant or RevokeGrant operation.- Parameters:
grantId
- The unique identifier for the grant.You can use the
GrantId
in a subsequent RetireGrant or RevokeGrant operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateGrantResult clone()
-
-