AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutQueryDefinitionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogsRequest.h>
11#include <aws/logs/CloudWatchLogs_EXPORTS.h>
12#include <aws/logs/model/QueryLanguage.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatchLogs {
18namespace Model {
19
23 public:
24 AWS_CLOUDWATCHLOGS_API PutQueryDefinitionRequest() = 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 "PutQueryDefinition"; }
31
32 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
44 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
45 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
46 inline void SetQueryLanguage(QueryLanguage value) {
47 m_queryLanguageHasBeenSet = true;
48 m_queryLanguage = value;
49 }
51 SetQueryLanguage(value);
52 return *this;
53 }
55
57
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
88 inline const Aws::String& GetQueryDefinitionId() const { return m_queryDefinitionId; }
89 inline bool QueryDefinitionIdHasBeenSet() const { return m_queryDefinitionIdHasBeenSet; }
90 template <typename QueryDefinitionIdT = Aws::String>
91 void SetQueryDefinitionId(QueryDefinitionIdT&& value) {
92 m_queryDefinitionIdHasBeenSet = true;
93 m_queryDefinitionId = std::forward<QueryDefinitionIdT>(value);
94 }
95 template <typename QueryDefinitionIdT = Aws::String>
96 PutQueryDefinitionRequest& WithQueryDefinitionId(QueryDefinitionIdT&& value) {
97 SetQueryDefinitionId(std::forward<QueryDefinitionIdT>(value));
98 return *this;
99 }
101
103
111 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const { return m_logGroupNames; }
112 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
113 template <typename LogGroupNamesT = Aws::Vector<Aws::String>>
114 void SetLogGroupNames(LogGroupNamesT&& value) {
115 m_logGroupNamesHasBeenSet = true;
116 m_logGroupNames = std::forward<LogGroupNamesT>(value);
117 }
118 template <typename LogGroupNamesT = Aws::Vector<Aws::String>>
120 SetLogGroupNames(std::forward<LogGroupNamesT>(value));
121 return *this;
122 }
123 template <typename LogGroupNamesT = Aws::String>
125 m_logGroupNamesHasBeenSet = true;
126 m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::String& GetQueryString() const { return m_queryString; }
138 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
139 template <typename QueryStringT = Aws::String>
140 void SetQueryString(QueryStringT&& value) {
141 m_queryStringHasBeenSet = true;
142 m_queryString = std::forward<QueryStringT>(value);
143 }
144 template <typename QueryStringT = Aws::String>
146 SetQueryString(std::forward<QueryStringT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetClientToken() const { return m_clientToken; }
157 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
158 template <typename ClientTokenT = Aws::String>
159 void SetClientToken(ClientTokenT&& value) {
160 m_clientTokenHasBeenSet = true;
161 m_clientToken = std::forward<ClientTokenT>(value);
162 }
163 template <typename ClientTokenT = Aws::String>
165 SetClientToken(std::forward<ClientTokenT>(value));
166 return *this;
167 }
169 private:
170 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
171
172 Aws::String m_name;
173
174 Aws::String m_queryDefinitionId;
175
176 Aws::Vector<Aws::String> m_logGroupNames;
177
178 Aws::String m_queryString;
179
181 bool m_queryLanguageHasBeenSet = false;
182 bool m_nameHasBeenSet = false;
183 bool m_queryDefinitionIdHasBeenSet = false;
184 bool m_logGroupNamesHasBeenSet = false;
185 bool m_queryStringHasBeenSet = false;
186 bool m_clientTokenHasBeenSet = true;
187};
188
189} // namespace Model
190} // namespace CloudWatchLogs
191} // namespace Aws
PutQueryDefinitionRequest & WithLogGroupNames(LogGroupNamesT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutQueryDefinitionRequest & WithName(NameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutQueryDefinitionRequest & AddLogGroupNames(LogGroupNamesT &&value)
PutQueryDefinitionRequest & WithClientToken(ClientTokenT &&value)
PutQueryDefinitionRequest & WithQueryDefinitionId(QueryDefinitionIdT &&value)
PutQueryDefinitionRequest & WithQueryLanguage(QueryLanguage value)
AWS_CLOUDWATCHLOGS_API PutQueryDefinitionRequest()=default
const Aws::Vector< Aws::String > & GetLogGroupNames() const
PutQueryDefinitionRequest & WithQueryString(QueryStringT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector