AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateKmsKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchLogs {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHLOGS_API AssociateKmsKeyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AssociateKmsKey"; }
28
29 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
40 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
41 template <typename LogGroupNameT = Aws::String>
42 void SetLogGroupName(LogGroupNameT&& value) {
43 m_logGroupNameHasBeenSet = true;
44 m_logGroupName = std::forward<LogGroupNameT>(value);
45 }
46 template <typename LogGroupNameT = Aws::String>
47 AssociateKmsKeyRequest& WithLogGroupName(LogGroupNameT&& value) {
48 SetLogGroupName(std::forward<LogGroupNameT>(value));
49 return *this;
50 }
52
54
62 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
63 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
64 template <typename KmsKeyIdT = Aws::String>
65 void SetKmsKeyId(KmsKeyIdT&& value) {
66 m_kmsKeyIdHasBeenSet = true;
67 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
68 }
69 template <typename KmsKeyIdT = Aws::String>
71 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
72 return *this;
73 }
75
77
93 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
94 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
95 template <typename ResourceIdentifierT = Aws::String>
96 void SetResourceIdentifier(ResourceIdentifierT&& value) {
97 m_resourceIdentifierHasBeenSet = true;
98 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
99 }
100 template <typename ResourceIdentifierT = Aws::String>
101 AssociateKmsKeyRequest& WithResourceIdentifier(ResourceIdentifierT&& value) {
102 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_logGroupName;
108
109 Aws::String m_kmsKeyId;
110
111 Aws::String m_resourceIdentifier;
112 bool m_logGroupNameHasBeenSet = false;
113 bool m_kmsKeyIdHasBeenSet = false;
114 bool m_resourceIdentifierHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CloudWatchLogs
119} // 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