/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace KMS { namespace Model { class AWS_KMS_API CreateGrantResult { public: CreateGrantResult(); CreateGrantResult(const Aws::AmazonWebServiceResult& result); CreateGrantResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline const Aws::String& GetGrantToken() const{ return m_grantToken; } /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline void SetGrantToken(const Aws::String& value) { m_grantToken = value; } /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline void SetGrantToken(Aws::String&& value) { m_grantToken = std::move(value); } /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline void SetGrantToken(const char* value) { m_grantToken.assign(value); } /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline CreateGrantResult& WithGrantToken(const Aws::String& value) { SetGrantToken(value); return *this;} /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline CreateGrantResult& WithGrantToken(Aws::String&& value) { SetGrantToken(std::move(value)); return *this;} /** *

The grant token.

For more information, see Grant * Tokens in the AWS Key Management Service Developer Guide.

*/ inline CreateGrantResult& WithGrantToken(const char* value) { SetGrantToken(value); return *this;} /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline const Aws::String& GetGrantId() const{ return m_grantId; } /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline void SetGrantId(const Aws::String& value) { m_grantId = value; } /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline void SetGrantId(Aws::String&& value) { m_grantId = std::move(value); } /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline void SetGrantId(const char* value) { m_grantId.assign(value); } /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline CreateGrantResult& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;} /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline CreateGrantResult& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;} /** *

The unique identifier for the grant.

You can use the * GrantId in a subsequent RetireGrant or RevokeGrant * operation.

*/ inline CreateGrantResult& WithGrantId(const char* value) { SetGrantId(value); return *this;} private: Aws::String m_grantToken; Aws::String m_grantId; }; } // namespace Model } // namespace KMS } // namespace Aws