AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
ScheduledQueryConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/ScheduleConfiguration.h>
12#include <aws/monitoring/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace CloudWatch {
23namespace Model {
24
32 public:
33 AWS_CLOUDWATCH_API ScheduledQueryConfiguration() = default;
34 AWS_CLOUDWATCH_API ScheduledQueryConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API ScheduledQueryConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetQueryString() const { return m_queryString; }
44 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
45 template <typename QueryStringT = Aws::String>
46 void SetQueryString(QueryStringT&& value) {
47 m_queryStringHasBeenSet = true;
48 m_queryString = std::forward<QueryStringT>(value);
49 }
50 template <typename QueryStringT = Aws::String>
52 SetQueryString(std::forward<QueryStringT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
65 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
66 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
67 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
68 m_logGroupIdentifiersHasBeenSet = true;
69 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
70 }
71 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
73 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
74 return *this;
75 }
76 template <typename LogGroupIdentifiersT = Aws::String>
77 ScheduledQueryConfiguration& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
78 m_logGroupIdentifiersHasBeenSet = true;
79 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::String& GetQueryARN() const { return m_queryARN; }
91 inline bool QueryARNHasBeenSet() const { return m_queryARNHasBeenSet; }
92 template <typename QueryARNT = Aws::String>
93 void SetQueryARN(QueryARNT&& value) {
94 m_queryARNHasBeenSet = true;
95 m_queryARN = std::forward<QueryARNT>(value);
96 }
97 template <typename QueryARNT = Aws::String>
99 SetQueryARN(std::forward<QueryARNT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetScheduledQueryRoleARN() const { return m_scheduledQueryRoleARN; }
110 inline bool ScheduledQueryRoleARNHasBeenSet() const { return m_scheduledQueryRoleARNHasBeenSet; }
111 template <typename ScheduledQueryRoleARNT = Aws::String>
112 void SetScheduledQueryRoleARN(ScheduledQueryRoleARNT&& value) {
113 m_scheduledQueryRoleARNHasBeenSet = true;
114 m_scheduledQueryRoleARN = std::forward<ScheduledQueryRoleARNT>(value);
115 }
116 template <typename ScheduledQueryRoleARNT = Aws::String>
118 SetScheduledQueryRoleARN(std::forward<ScheduledQueryRoleARNT>(value));
119 return *this;
120 }
122
124
128 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
129 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
130 template <typename ScheduleConfigurationT = ScheduleConfiguration>
131 void SetScheduleConfiguration(ScheduleConfigurationT&& value) {
132 m_scheduleConfigurationHasBeenSet = true;
133 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
134 }
135 template <typename ScheduleConfigurationT = ScheduleConfiguration>
137 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::String& GetAggregationExpression() const { return m_aggregationExpression; }
150 inline bool AggregationExpressionHasBeenSet() const { return m_aggregationExpressionHasBeenSet; }
151 template <typename AggregationExpressionT = Aws::String>
152 void SetAggregationExpression(AggregationExpressionT&& value) {
153 m_aggregationExpressionHasBeenSet = true;
154 m_aggregationExpression = std::forward<AggregationExpressionT>(value);
155 }
156 template <typename AggregationExpressionT = Aws::String>
158 SetAggregationExpression(std::forward<AggregationExpressionT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 template <typename TagsT = Aws::Vector<Tag>>
171 void SetTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags = std::forward<TagsT>(value);
174 }
175 template <typename TagsT = Aws::Vector<Tag>>
177 SetTags(std::forward<TagsT>(value));
178 return *this;
179 }
180 template <typename TagsT = Tag>
182 m_tagsHasBeenSet = true;
183 m_tags.emplace_back(std::forward<TagsT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_queryString;
189
190 Aws::Vector<Aws::String> m_logGroupIdentifiers;
191
192 Aws::String m_queryARN;
193
194 Aws::String m_scheduledQueryRoleARN;
195
196 ScheduleConfiguration m_scheduleConfiguration;
197
198 Aws::String m_aggregationExpression;
199
200 Aws::Vector<Tag> m_tags;
201 bool m_queryStringHasBeenSet = false;
202 bool m_logGroupIdentifiersHasBeenSet = false;
203 bool m_queryARNHasBeenSet = false;
204 bool m_scheduledQueryRoleARNHasBeenSet = false;
205 bool m_scheduleConfigurationHasBeenSet = false;
206 bool m_aggregationExpressionHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace CloudWatch
212} // namespace Aws
ScheduledQueryConfiguration & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
AWS_CLOUDWATCH_API ScheduledQueryConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ScheduledQueryConfiguration & WithScheduledQueryRoleARN(ScheduledQueryRoleARNT &&value)
AWS_CLOUDWATCH_API ScheduledQueryConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ScheduledQueryConfiguration & WithScheduleConfiguration(ScheduleConfigurationT &&value)
ScheduledQueryConfiguration & WithAggregationExpression(AggregationExpressionT &&value)
AWS_CLOUDWATCH_API ScheduledQueryConfiguration()=default
ScheduledQueryConfiguration & WithQueryARN(QueryARNT &&value)
ScheduledQueryConfiguration & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
ScheduledQueryConfiguration & AddTags(TagsT &&value)
ScheduledQueryConfiguration & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
ScheduledQueryConfiguration & WithQueryString(QueryStringT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector