AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QueryDefinition.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCHLOGS_API QueryDefinition() = default;
38 AWS_CLOUDWATCHLOGS_API QueryDefinition(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API QueryDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
51 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
52 inline void SetQueryLanguage(QueryLanguage value) { m_queryLanguageHasBeenSet = true; m_queryLanguage = value; }
53 inline QueryDefinition& WithQueryLanguage(QueryLanguage value) { SetQueryLanguage(value); return *this;}
55
57
60 inline const Aws::String& GetQueryDefinitionId() const { return m_queryDefinitionId; }
61 inline bool QueryDefinitionIdHasBeenSet() const { return m_queryDefinitionIdHasBeenSet; }
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>
65 QueryDefinition& WithQueryDefinitionId(QueryDefinitionIdT&& value) { SetQueryDefinitionId(std::forward<QueryDefinitionIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
77 QueryDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
86 inline const Aws::String& GetQueryString() const { return m_queryString; }
87 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
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>
91 QueryDefinition& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
93
95
98 inline long long GetLastModified() const { return m_lastModified; }
99 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
100 inline void SetLastModified(long long value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
101 inline QueryDefinition& WithLastModified(long long value) { SetLastModified(value); return *this;}
103
105
109 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const { return m_logGroupNames; }
110 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
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>>
114 QueryDefinition& WithLogGroupNames(LogGroupNamesT&& value) { SetLogGroupNames(std::forward<LogGroupNamesT>(value)); return *this;}
115 template<typename LogGroupNamesT = Aws::String>
116 QueryDefinition& AddLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value)); return *this; }
118 private:
119
120 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
121 bool m_queryLanguageHasBeenSet = false;
122
123 Aws::String m_queryDefinitionId;
124 bool m_queryDefinitionIdHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_queryString;
130 bool m_queryStringHasBeenSet = false;
131
132 long long m_lastModified{0};
133 bool m_lastModifiedHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_logGroupNames;
136 bool m_logGroupNamesHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CloudWatchLogs
141} // namespace Aws
QueryDefinition & WithLogGroupNames(LogGroupNamesT &&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)
QueryDefinition & WithQueryDefinitionId(QueryDefinitionIdT &&value)
AWS_CLOUDWATCHLOGS_API QueryDefinition()=default
QueryDefinition & AddLogGroupNames(LogGroupNamesT &&value)
QueryDefinition & WithQueryString(QueryStringT &&value)
void SetLogGroupNames(LogGroupNamesT &&value)
AWS_CLOUDWATCHLOGS_API QueryDefinition(Aws::Utils::Json::JsonView jsonValue)
QueryDefinition & WithName(NameT &&value)
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