AWS SDK for C++

AWS SDK for C++ Version 1.11.807

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
45 inline ResourceType GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
47 inline void SetResourceType(ResourceType value) {
48 m_resourceTypeHasBeenSet = true;
49 m_resourceType = value;
50 }
52 SetResourceType(value);
53 return *this;
54 }
56
58
61 inline TelemetryType GetTelemetryType() const { return m_telemetryType; }
62 inline bool TelemetryTypeHasBeenSet() const { return m_telemetryTypeHasBeenSet; }
63 inline void SetTelemetryType(TelemetryType value) {
64 m_telemetryTypeHasBeenSet = true;
65 m_telemetryType = value;
66 }
68 SetTelemetryType(value);
69 return *this;
70 }
72
74
79 inline const Aws::Vector<TelemetrySourceType>& GetTelemetrySourceTypes() const { return m_telemetrySourceTypes; }
80 inline bool TelemetrySourceTypesHasBeenSet() const { return m_telemetrySourceTypesHasBeenSet; }
81 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
82 void SetTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
83 m_telemetrySourceTypesHasBeenSet = true;
84 m_telemetrySourceTypes = std::forward<TelemetrySourceTypesT>(value);
85 }
86 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
87 TelemetryRule& WithTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
88 SetTelemetrySourceTypes(std::forward<TelemetrySourceTypesT>(value));
89 return *this;
90 }
92 m_telemetrySourceTypesHasBeenSet = true;
93 m_telemetrySourceTypes.push_back(value);
94 return *this;
95 }
97
99
103 inline const TelemetryDestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
104 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
105 template <typename DestinationConfigurationT = TelemetryDestinationConfiguration>
106 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
107 m_destinationConfigurationHasBeenSet = true;
108 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
109 }
110 template <typename DestinationConfigurationT = TelemetryDestinationConfiguration>
111 TelemetryRule& WithDestinationConfiguration(DestinationConfigurationT&& value) {
112 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetScope() const { return m_scope; }
123 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
124 template <typename ScopeT = Aws::String>
125 void SetScope(ScopeT&& value) {
126 m_scopeHasBeenSet = true;
127 m_scope = std::forward<ScopeT>(value);
128 }
129 template <typename ScopeT = Aws::String>
130 TelemetryRule& WithScope(ScopeT&& value) {
131 SetScope(std::forward<ScopeT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
142 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
143 template <typename SelectionCriteriaT = Aws::String>
144 void SetSelectionCriteria(SelectionCriteriaT&& value) {
145 m_selectionCriteriaHasBeenSet = true;
146 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
147 }
148 template <typename SelectionCriteriaT = Aws::String>
149 TelemetryRule& WithSelectionCriteria(SelectionCriteriaT&& value) {
150 SetSelectionCriteria(std::forward<SelectionCriteriaT>(value));
151 return *this;
152 }
154
156
165 inline bool GetAllowFieldUpdates() const { return m_allowFieldUpdates; }
166 inline bool AllowFieldUpdatesHasBeenSet() const { return m_allowFieldUpdatesHasBeenSet; }
167 inline void SetAllowFieldUpdates(bool value) {
168 m_allowFieldUpdatesHasBeenSet = true;
169 m_allowFieldUpdates = value;
170 }
173 return *this;
174 }
176
178
184 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
185 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
186 template <typename RegionsT = Aws::Vector<Aws::String>>
187 void SetRegions(RegionsT&& value) {
188 m_regionsHasBeenSet = true;
189 m_regions = std::forward<RegionsT>(value);
190 }
191 template <typename RegionsT = Aws::Vector<Aws::String>>
192 TelemetryRule& WithRegions(RegionsT&& value) {
193 SetRegions(std::forward<RegionsT>(value));
194 return *this;
195 }
196 template <typename RegionsT = Aws::String>
197 TelemetryRule& AddRegions(RegionsT&& value) {
198 m_regionsHasBeenSet = true;
199 m_regions.emplace_back(std::forward<RegionsT>(value));
200 return *this;
201 }
203
205
211 inline bool GetAllRegions() const { return m_allRegions; }
212 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
213 inline void SetAllRegions(bool value) {
214 m_allRegionsHasBeenSet = true;
215 m_allRegions = value;
216 }
217 inline TelemetryRule& WithAllRegions(bool value) {
218 SetAllRegions(value);
219 return *this;
220 }
222 private:
223 ResourceType m_resourceType{ResourceType::NOT_SET};
224
225 TelemetryType m_telemetryType{TelemetryType::NOT_SET};
226
227 Aws::Vector<TelemetrySourceType> m_telemetrySourceTypes;
228
229 TelemetryDestinationConfiguration m_destinationConfiguration;
230
231 Aws::String m_scope;
232
233 Aws::String m_selectionCriteria;
234
235 bool m_allowFieldUpdates{false};
236
237 Aws::Vector<Aws::String> m_regions;
238
239 bool m_allRegions{false};
240 bool m_resourceTypeHasBeenSet = false;
241 bool m_telemetryTypeHasBeenSet = false;
242 bool m_telemetrySourceTypesHasBeenSet = false;
243 bool m_destinationConfigurationHasBeenSet = false;
244 bool m_scopeHasBeenSet = false;
245 bool m_selectionCriteriaHasBeenSet = false;
246 bool m_allowFieldUpdatesHasBeenSet = false;
247 bool m_regionsHasBeenSet = false;
248 bool m_allRegionsHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace ObservabilityAdmin
253} // 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