7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/QueryLanguage.h>
11#include <aws/logs/model/QueryParameter.h>
22namespace CloudWatchLogs {
48 m_queryLanguageHasBeenSet =
true;
49 m_queryLanguage = value;
63 template <
typename QueryDefinitionIdT = Aws::String>
65 m_queryDefinitionIdHasBeenSet =
true;
66 m_queryDefinitionId = std::forward<QueryDefinitionIdT>(value);
68 template <
typename QueryDefinitionIdT = Aws::String>
81 template <
typename NameT = Aws::String>
83 m_nameHasBeenSet =
true;
84 m_name = std::forward<NameT>(value);
86 template <
typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
101 template <
typename QueryStringT = Aws::String>
103 m_queryStringHasBeenSet =
true;
104 m_queryString = std::forward<QueryStringT>(value);
106 template <
typename QueryStringT = Aws::String>
120 m_lastModifiedHasBeenSet =
true;
121 m_lastModified = value;
136 template <
typename LogGroupNamesT = Aws::Vector<Aws::String>>
138 m_logGroupNamesHasBeenSet =
true;
139 m_logGroupNames = std::forward<LogGroupNamesT>(value);
141 template <
typename LogGroupNamesT = Aws::Vector<Aws::String>>
146 template <
typename LogGroupNamesT = Aws::String>
148 m_logGroupNamesHasBeenSet =
true;
149 m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value));
161 template <
typename ParametersT = Aws::Vector<QueryParameter>>
163 m_parametersHasBeenSet =
true;
164 m_parameters = std::forward<ParametersT>(value);
166 template <
typename ParametersT = Aws::Vector<QueryParameter>>
171 template <
typename ParametersT = QueryParameter>
173 m_parametersHasBeenSet =
true;
174 m_parameters.emplace_back(std::forward<ParametersT>(value));
187 long long m_lastModified{0};
192 bool m_queryLanguageHasBeenSet =
false;
193 bool m_queryDefinitionIdHasBeenSet =
false;
194 bool m_nameHasBeenSet =
false;
195 bool m_queryStringHasBeenSet =
false;
196 bool m_lastModifiedHasBeenSet =
false;
197 bool m_logGroupNamesHasBeenSet =
false;
198 bool m_parametersHasBeenSet =
false;
bool LastModifiedHasBeenSet() const
void SetLastModified(long long value)
QueryDefinition & AddParameters(ParametersT &&value)
void SetQueryLanguage(QueryLanguage value)
QueryDefinition & WithLogGroupNames(LogGroupNamesT &&value)
const Aws::String & GetName() const
void SetName(NameT &&value)
const Aws::String & GetQueryDefinitionId() const
QueryDefinition & WithQueryLanguage(QueryLanguage value)
QueryDefinition & WithLastModified(long long value)
QueryDefinition & WithParameters(ParametersT &&value)
const Aws::String & GetQueryString() const
AWS_CLOUDWATCHLOGS_API QueryDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLogGroupNames() const
void SetQueryDefinitionId(QueryDefinitionIdT &&value)
void SetQueryString(QueryStringT &&value)
QueryDefinition & WithQueryDefinitionId(QueryDefinitionIdT &&value)
long long GetLastModified() const
bool NameHasBeenSet() const
QueryLanguage GetQueryLanguage() const
AWS_CLOUDWATCHLOGS_API QueryDefinition()=default
bool QueryStringHasBeenSet() const
bool ParametersHasBeenSet() const
QueryDefinition & AddLogGroupNames(LogGroupNamesT &&value)
bool LogGroupNamesHasBeenSet() const
void SetParameters(ParametersT &&value)
QueryDefinition & WithQueryString(QueryStringT &&value)
bool QueryLanguageHasBeenSet() const
void SetLogGroupNames(LogGroupNamesT &&value)
AWS_CLOUDWATCHLOGS_API QueryDefinition(Aws::Utils::Json::JsonView jsonValue)
QueryDefinition & WithName(NameT &&value)
const Aws::Vector< QueryParameter > & GetParameters() const
bool QueryDefinitionIdHasBeenSet() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue