/** * 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 CreateGrantResult { public: AWS_KMS_API CreateGrantResult(); AWS_KMS_API CreateGrantResult(const Aws::AmazonWebServiceResult& result); AWS_KMS_API CreateGrantResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the Key Management Service Developer Guide.

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

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the Key Management Service Developer Guide.

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

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the Key Management Service Developer Guide.

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

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the Key Management Service Developer Guide.

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

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the Key Management Service Developer Guide.

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

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the Key Management Service Developer Guide.

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

The grant token.

Use a grant token when your permission to call this * operation comes from a new grant that has not yet achieved eventual * consistency. For more information, see Grant * token and Using * a grant token in the 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 ListGrants, 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 ListGrants, 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 ListGrants, 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 ListGrants, 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 ListGrants, 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 ListGrants, 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 ListGrants, RetireGrant, or * RevokeGrant operation.

*/ inline CreateGrantResult& WithGrantId(const char* value) { SetGrantId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_grantToken; Aws::String m_grantId; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws