AWS SDK for C++

AWS SDK for C++ Version 1.11.861

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
100 inline const Aws::String& GetQueryId() const { return m_queryId; }
101 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
102 template <typename QueryIdT = Aws::String>
103 void SetQueryId(QueryIdT&& value) {
104 m_queryIdHasBeenSet = true;
105 m_queryId = std::forward<QueryIdT>(value);
106 }
107 template <typename QueryIdT = Aws::String>
109 SetQueryId(std::forward<QueryIdT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
120 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
121 template <typename KmsKeyIdT = Aws::String>
122 void SetKmsKeyId(KmsKeyIdT&& value) {
123 m_kmsKeyIdHasBeenSet = true;
124 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
125 }
126 template <typename KmsKeyIdT = Aws::String>
128 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateLookupTableRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_lookupTableName;
160
161 Aws::String m_description;
162
163 Aws::String m_tableBody;
164
165 Aws::String m_queryId;
166
167 Aws::String m_kmsKeyId;
168
170 bool m_lookupTableNameHasBeenSet = false;
171 bool m_descriptionHasBeenSet = false;
172 bool m_tableBodyHasBeenSet = false;
173 bool m_queryIdHasBeenSet = false;
174 bool m_kmsKeyIdHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace CloudWatchLogs
180} // 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