170 lines
7.3 KiB
C++
170 lines
7.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/logs/CloudWatchLogs_EXPORTS.h>
|
|
#include <aws/logs/CloudWatchLogsRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace CloudWatchLogs
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_CLOUDWATCHLOGS_API AssociateKmsKeyRequest : public CloudWatchLogsRequest
|
|
{
|
|
public:
|
|
AssociateKmsKeyRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "AssociateKmsKey"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline AssociateKmsKeyRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline AssociateKmsKeyRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the log group.</p>
|
|
*/
|
|
inline AssociateKmsKeyRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline AssociateKmsKeyRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline AssociateKmsKeyRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
|
* This must be a symmetric CMK. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon
|
|
* Resource Names - AWS Key Management Service (AWS KMS)</a> and <a
|
|
* href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
|
|
* Symmetric and Asymmetric Keys</a>.</p>
|
|
*/
|
|
inline AssociateKmsKeyRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_logGroupName;
|
|
bool m_logGroupNameHasBeenSet;
|
|
|
|
Aws::String m_kmsKeyId;
|
|
bool m_kmsKeyIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudWatchLogs
|
|
} // namespace Aws
|