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#include <aws/logs/model/QueryParameter.h>
18namespace CloudWatchLogs {
48 m_queryLanguageHasBeenSet =
true;
49 m_queryLanguage = value;
67 template <
typename NameT = Aws::String>
69 m_nameHasBeenSet =
true;
70 m_name = std::forward<NameT>(value);
72 template <
typename NameT = Aws::String>
74 SetName(std::forward<NameT>(value));
91 template <
typename QueryDefinitionIdT = Aws::String>
93 m_queryDefinitionIdHasBeenSet =
true;
94 m_queryDefinitionId = std::forward<QueryDefinitionIdT>(value);
96 template <
typename QueryDefinitionIdT = Aws::String>
114 template <
typename LogGroupNamesT = Aws::Vector<Aws::String>>
116 m_logGroupNamesHasBeenSet =
true;
117 m_logGroupNames = std::forward<LogGroupNamesT>(value);
119 template <
typename LogGroupNamesT = Aws::Vector<Aws::String>>
124 template <
typename LogGroupNamesT = Aws::String>
126 m_logGroupNamesHasBeenSet =
true;
127 m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value));
140 template <
typename QueryStringT = Aws::String>
142 m_queryStringHasBeenSet =
true;
143 m_queryString = std::forward<QueryStringT>(value);
145 template <
typename QueryStringT = Aws::String>
159 template <
typename ClientTokenT = Aws::String>
161 m_clientTokenHasBeenSet =
true;
162 m_clientToken = std::forward<ClientTokenT>(value);
164 template <
typename ClientTokenT = Aws::String>
182 template <
typename ParametersT = Aws::Vector<QueryParameter>>
184 m_parametersHasBeenSet =
true;
185 m_parameters = std::forward<ParametersT>(value);
187 template <
typename ParametersT = Aws::Vector<QueryParameter>>
192 template <
typename ParametersT = QueryParameter>
194 m_parametersHasBeenSet =
true;
195 m_parameters.emplace_back(std::forward<ParametersT>(value));
213 bool m_queryLanguageHasBeenSet =
false;
214 bool m_nameHasBeenSet =
false;
215 bool m_queryDefinitionIdHasBeenSet =
false;
216 bool m_logGroupNamesHasBeenSet =
false;
217 bool m_queryStringHasBeenSet =
false;
218 bool m_clientTokenHasBeenSet =
true;
219 bool m_parametersHasBeenSet =
false;
PutQueryDefinitionRequest & WithLogGroupNames(LogGroupNamesT &&value)
void SetLogGroupNames(LogGroupNamesT &&value)
bool QueryLanguageHasBeenSet() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutQueryDefinitionRequest & WithName(NameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
void SetQueryDefinitionId(QueryDefinitionIdT &&value)
QueryLanguage GetQueryLanguage() const
bool LogGroupNamesHasBeenSet() const
const Aws::String & GetName() const
bool ClientTokenHasBeenSet() const
const Aws::Vector< QueryParameter > & GetParameters() const
const Aws::String & GetQueryDefinitionId() const
virtual const char * GetServiceRequestName() const override
PutQueryDefinitionRequest & AddParameters(ParametersT &&value)
PutQueryDefinitionRequest & AddLogGroupNames(LogGroupNamesT &&value)
PutQueryDefinitionRequest & WithClientToken(ClientTokenT &&value)
void SetQueryLanguage(QueryLanguage value)
PutQueryDefinitionRequest & WithQueryDefinitionId(QueryDefinitionIdT &&value)
const Aws::String & GetClientToken() const
bool QueryDefinitionIdHasBeenSet() const
void SetParameters(ParametersT &&value)
bool NameHasBeenSet() const
bool ParametersHasBeenSet() const
PutQueryDefinitionRequest & WithQueryLanguage(QueryLanguage value)
const Aws::String & GetQueryString() const
AWS_CLOUDWATCHLOGS_API PutQueryDefinitionRequest()=default
const Aws::Vector< Aws::String > & GetLogGroupNames() const
PutQueryDefinitionRequest & WithQueryString(QueryStringT &&value)
void SetClientToken(ClientTokenT &&value)
void SetQueryString(QueryStringT &&value)
void SetName(NameT &&value)
PutQueryDefinitionRequest & WithParameters(ParametersT &&value)
bool QueryStringHasBeenSet() const
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