144 lines
5.2 KiB
C++
144 lines
5.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kms/KMS_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
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<Aws::Utils::Json::JsonValue>& result);
|
|
CreateGrantResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline const Aws::String& GetGrantToken() const{ return m_grantToken; }
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline void SetGrantToken(const Aws::String& value) { m_grantToken = value; }
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline void SetGrantToken(Aws::String&& value) { m_grantToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline void SetGrantToken(const char* value) { m_grantToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline CreateGrantResult& WithGrantToken(const Aws::String& value) { SetGrantToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline CreateGrantResult& WithGrantToken(Aws::String&& value) { SetGrantToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The grant token.</p> <p>For more information, see <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token">Grant
|
|
* Tokens</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
*/
|
|
inline CreateGrantResult& WithGrantToken(const char* value) { SetGrantToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
inline const Aws::String& GetGrantId() const{ return m_grantId; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
inline void SetGrantId(const Aws::String& value) { m_grantId = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
inline void SetGrantId(Aws::String&& value) { m_grantId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
inline void SetGrantId(const char* value) { m_grantId.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
inline CreateGrantResult& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
inline CreateGrantResult& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the grant.</p> <p>You can use the
|
|
* <code>GrantId</code> in a subsequent <a>RetireGrant</a> or <a>RevokeGrant</a>
|
|
* operation.</p>
|
|
*/
|
|
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
|