Class CreateGrantResult

    • Constructor Detail

      • CreateGrantResult

        public CreateGrantResult()
    • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object