AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
CreateLookupTableRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API CreateLookupTableRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateLookupTable"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
40 inline const Aws::String& GetLookupTableName() const { return m_lookupTableName; }
41 inline bool LookupTableNameHasBeenSet() const { return m_lookupTableNameHasBeenSet; }
42 template <typename LookupTableNameT = Aws::String>
43 void SetLookupTableName(LookupTableNameT&& value) {
44 m_lookupTableNameHasBeenSet = true;
45 m_lookupTableName = std::forward<LookupTableNameT>(value);
46 }
47 template <typename LookupTableNameT = Aws::String>
48 CreateLookupTableRequest& WithLookupTableName(LookupTableNameT&& value) {
49 SetLookupTableName(std::forward<LookupTableNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetTableBody() const { return m_tableBody; }
81 inline bool TableBodyHasBeenSet() const { return m_tableBodyHasBeenSet; }
82 template <typename TableBodyT = Aws::String>
83 void SetTableBody(TableBodyT&& value) {
84 m_tableBodyHasBeenSet = true;
85 m_tableBody = std::forward<TableBodyT>(value);
86 }
87 template <typename TableBodyT = Aws::String>
89 SetTableBody(std::forward<TableBodyT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::String& GetQueryId() const { return m_queryId; }
102 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
103 template <typename QueryIdT = Aws::String>
104 void SetQueryId(QueryIdT&& value) {
105 m_queryIdHasBeenSet = true;
106 m_queryId = std::forward<QueryIdT>(value);
107 }
108 template <typename QueryIdT = Aws::String>
110 SetQueryId(std::forward<QueryIdT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
121 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
122 template <typename KmsKeyIdT = Aws::String>
123 void SetKmsKeyId(KmsKeyIdT&& value) {
124 m_kmsKeyIdHasBeenSet = true;
125 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
126 }
127 template <typename KmsKeyIdT = Aws::String>
129 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags = std::forward<TagsT>(value);
146 }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 SetTags(std::forward<TagsT>(value));
150 return *this;
151 }
152 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 CreateLookupTableRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_lookupTableName;
161
162 Aws::String m_description;
163
164 Aws::String m_tableBody;
165
166 Aws::String m_queryId;
167
168 Aws::String m_kmsKeyId;
169
171 bool m_lookupTableNameHasBeenSet = false;
172 bool m_descriptionHasBeenSet = false;
173 bool m_tableBodyHasBeenSet = false;
174 bool m_queryIdHasBeenSet = false;
175 bool m_kmsKeyIdHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace CloudWatchLogs
181} // namespace Aws
CreateLookupTableRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLookupTableRequest & WithDescription(DescriptionT &&value)
CreateLookupTableRequest & WithLookupTableName(LookupTableNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateLookupTableRequest & WithQueryId(QueryIdT &&value)
AWS_CLOUDWATCHLOGS_API CreateLookupTableRequest()=default
CreateLookupTableRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateLookupTableRequest & WithTableBody(TableBodyT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String