AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
TelemetryRule.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/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10#include <aws/observabilityadmin/model/ResourceType.h>
11#include <aws/observabilityadmin/model/TelemetryDestinationConfiguration.h>
12#include <aws/observabilityadmin/model/TelemetrySourceType.h>
13#include <aws/observabilityadmin/model/TelemetryType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ObservabilityAdmin {
25namespace Model {
26
34 public:
35 AWS_OBSERVABILITYADMIN_API TelemetryRule() = default;
36 AWS_OBSERVABILITYADMIN_API TelemetryRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OBSERVABILITYADMIN_API TelemetryRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline ResourceType GetResourceType() const { return m_resourceType; }
48 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 inline void SetResourceType(ResourceType value) {
50 m_resourceTypeHasBeenSet = true;
51 m_resourceType = value;
52 }
54 SetResourceType(value);
55 return *this;
56 }
58
60
63 inline TelemetryType GetTelemetryType() const { return m_telemetryType; }
64 inline bool TelemetryTypeHasBeenSet() const { return m_telemetryTypeHasBeenSet; }
65 inline void SetTelemetryType(TelemetryType value) {
66 m_telemetryTypeHasBeenSet = true;
67 m_telemetryType = value;
68 }
70 SetTelemetryType(value);
71 return *this;
72 }
74
76
81 inline const Aws::Vector<TelemetrySourceType>& GetTelemetrySourceTypes() const { return m_telemetrySourceTypes; }
82 inline bool TelemetrySourceTypesHasBeenSet() const { return m_telemetrySourceTypesHasBeenSet; }
83 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
84 void SetTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
85 m_telemetrySourceTypesHasBeenSet = true;
86 m_telemetrySourceTypes = std::forward<TelemetrySourceTypesT>(value);
87 }
88 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
89 TelemetryRule& WithTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
90 SetTelemetrySourceTypes(std::forward<TelemetrySourceTypesT>(value));
91 return *this;
92 }
94 m_telemetrySourceTypesHasBeenSet = true;
95 m_telemetrySourceTypes.push_back(value);
96 return *this;
97 }
99
101
105 inline const TelemetryDestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
106 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
107 template <typename DestinationConfigurationT = TelemetryDestinationConfiguration>
108 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
109 m_destinationConfigurationHasBeenSet = true;
110 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
111 }
112 template <typename DestinationConfigurationT = TelemetryDestinationConfiguration>
113 TelemetryRule& WithDestinationConfiguration(DestinationConfigurationT&& value) {
114 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetScope() const { return m_scope; }
125 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
126 template <typename ScopeT = Aws::String>
127 void SetScope(ScopeT&& value) {
128 m_scopeHasBeenSet = true;
129 m_scope = std::forward<ScopeT>(value);
130 }
131 template <typename ScopeT = Aws::String>
132 TelemetryRule& WithScope(ScopeT&& value) {
133 SetScope(std::forward<ScopeT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
144 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
145 template <typename SelectionCriteriaT = Aws::String>
146 void SetSelectionCriteria(SelectionCriteriaT&& value) {
147 m_selectionCriteriaHasBeenSet = true;
148 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
149 }
150 template <typename SelectionCriteriaT = Aws::String>
151 TelemetryRule& WithSelectionCriteria(SelectionCriteriaT&& value) {
152 SetSelectionCriteria(std::forward<SelectionCriteriaT>(value));
153 return *this;
154 }
156
158
167 inline bool GetAllowFieldUpdates() const { return m_allowFieldUpdates; }
168 inline bool AllowFieldUpdatesHasBeenSet() const { return m_allowFieldUpdatesHasBeenSet; }
169 inline void SetAllowFieldUpdates(bool value) {
170 m_allowFieldUpdatesHasBeenSet = true;
171 m_allowFieldUpdates = value;
172 }
175 return *this;
176 }
178
180
186 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
187 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
188 template <typename RegionsT = Aws::Vector<Aws::String>>
189 void SetRegions(RegionsT&& value) {
190 m_regionsHasBeenSet = true;
191 m_regions = std::forward<RegionsT>(value);
192 }
193 template <typename RegionsT = Aws::Vector<Aws::String>>
194 TelemetryRule& WithRegions(RegionsT&& value) {
195 SetRegions(std::forward<RegionsT>(value));
196 return *this;
197 }
198 template <typename RegionsT = Aws::String>
199 TelemetryRule& AddRegions(RegionsT&& value) {
200 m_regionsHasBeenSet = true;
201 m_regions.emplace_back(std::forward<RegionsT>(value));
202 return *this;
203 }
205
207
213 inline bool GetAllRegions() const { return m_allRegions; }
214 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
215 inline void SetAllRegions(bool value) {
216 m_allRegionsHasBeenSet = true;
217 m_allRegions = value;
218 }
219 inline TelemetryRule& WithAllRegions(bool value) {
220 SetAllRegions(value);
221 return *this;
222 }
224 private:
225 ResourceType m_resourceType{ResourceType::NOT_SET};
226
227 TelemetryType m_telemetryType{TelemetryType::NOT_SET};
228
229 Aws::Vector<TelemetrySourceType> m_telemetrySourceTypes;
230
231 TelemetryDestinationConfiguration m_destinationConfiguration;
232
233 Aws::String m_scope;
234
235 Aws::String m_selectionCriteria;
236
237 bool m_allowFieldUpdates{false};
238
239 Aws::Vector<Aws::String> m_regions;
240
241 bool m_allRegions{false};
242 bool m_resourceTypeHasBeenSet = false;
243 bool m_telemetryTypeHasBeenSet = false;
244 bool m_telemetrySourceTypesHasBeenSet = false;
245 bool m_destinationConfigurationHasBeenSet = false;
246 bool m_scopeHasBeenSet = false;
247 bool m_selectionCriteriaHasBeenSet = false;
248 bool m_allowFieldUpdatesHasBeenSet = false;
249 bool m_regionsHasBeenSet = false;
250 bool m_allRegionsHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace ObservabilityAdmin
255} // namespace Aws
TelemetryRule & WithTelemetryType(TelemetryType value)
TelemetryRule & WithSelectionCriteria(SelectionCriteriaT &&value)
TelemetryRule & WithScope(ScopeT &&value)
const TelemetryDestinationConfiguration & GetDestinationConfiguration() const
const Aws::String & GetSelectionCriteria() const
TelemetryRule & AddRegions(RegionsT &&value)
void SetTelemetrySourceTypes(TelemetrySourceTypesT &&value)
TelemetryRule & WithResourceType(ResourceType value)
const Aws::Vector< Aws::String > & GetRegions() const
TelemetryRule & AddTelemetrySourceTypes(TelemetrySourceType value)
AWS_OBSERVABILITYADMIN_API TelemetryRule()=default
TelemetryRule & WithTelemetrySourceTypes(TelemetrySourceTypesT &&value)
const Aws::Vector< TelemetrySourceType > & GetTelemetrySourceTypes() const
TelemetryRule & WithDestinationConfiguration(DestinationConfigurationT &&value)
void SetSelectionCriteria(SelectionCriteriaT &&value)
TelemetryRule & WithRegions(RegionsT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OBSERVABILITYADMIN_API TelemetryRule(Aws::Utils::Json::JsonView jsonValue)
TelemetryRule & WithAllowFieldUpdates(bool value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue