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:
  • Constructor Details

    • CreateGrantResult

      public CreateGrantResult()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreateGrantResult clone()
      Overrides:
      clone in class Object