AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateKmsKeyRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CloudWatchLogs
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDWATCHLOGS_API AssociateKmsKeyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AssociateKmsKey"; }
31
32 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
43 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
44 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
45 template<typename LogGroupNameT = Aws::String>
46 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
47 template<typename LogGroupNameT = Aws::String>
48 AssociateKmsKeyRequest& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
50
52
60 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
61 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
62 template<typename KmsKeyIdT = Aws::String>
63 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
64 template<typename KmsKeyIdT = Aws::String>
65 AssociateKmsKeyRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
67
69
85 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
86 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
87 template<typename ResourceIdentifierT = Aws::String>
88 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
89 template<typename ResourceIdentifierT = Aws::String>
90 AssociateKmsKeyRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
92 private:
93
94 Aws::String m_logGroupName;
95 bool m_logGroupNameHasBeenSet = false;
96
97 Aws::String m_kmsKeyId;
98 bool m_kmsKeyIdHasBeenSet = false;
99
100 Aws::String m_resourceIdentifier;
101 bool m_resourceIdentifierHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudWatchLogs
106} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AssociateKmsKeyRequest & WithLogGroupName(LogGroupNameT &&value)
AssociateKmsKeyRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API AssociateKmsKeyRequest()=default
AssociateKmsKeyRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String