7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/model/QueryLanguage.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace CloudWatchLogs
62 template<
typename QueryDefinitionIdT = Aws::String>
63 void SetQueryDefinitionId(QueryDefinitionIdT&& value) { m_queryDefinitionIdHasBeenSet =
true; m_queryDefinitionId = std::forward<QueryDefinitionIdT>(value); }
64 template<
typename QueryDefinitionIdT = Aws::String>
74 template<
typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
76 template<
typename NameT = Aws::String>
88 template<
typename QueryStringT = Aws::String>
89 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet =
true; m_queryString = std::forward<QueryStringT>(value); }
90 template<
typename QueryStringT = Aws::String>
100 inline void SetLastModified(
long long value) { m_lastModifiedHasBeenSet =
true; m_lastModified = value; }
111 template<
typename LogGroupNamesT = Aws::Vector<Aws::String>>
112 void SetLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet =
true; m_logGroupNames = std::forward<LogGroupNamesT>(value); }
113 template<
typename LogGroupNamesT = Aws::Vector<Aws::String>>
115 template<
typename LogGroupNamesT = Aws::String>
116 QueryDefinition&
AddLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet =
true; m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value));
return *
this; }
121 bool m_queryLanguageHasBeenSet =
false;
124 bool m_queryDefinitionIdHasBeenSet =
false;
127 bool m_nameHasBeenSet =
false;
130 bool m_queryStringHasBeenSet =
false;
132 long long m_lastModified{0};
133 bool m_lastModifiedHasBeenSet =
false;
136 bool m_logGroupNamesHasBeenSet =
false;
bool LastModifiedHasBeenSet() const
void SetLastModified(long long 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)
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
QueryDefinition & AddLogGroupNames(LogGroupNamesT &&value)
bool LogGroupNamesHasBeenSet() const
QueryDefinition & WithQueryString(QueryStringT &&value)
bool QueryLanguageHasBeenSet() const
void SetLogGroupNames(LogGroupNamesT &&value)
AWS_CLOUDWATCHLOGS_API QueryDefinition(Aws::Utils::Json::JsonView jsonValue)
QueryDefinition & WithName(NameT &&value)
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