AWS SDK for C++

AWS SDK for C++ Version 1.11.910

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
48 inline ResourceType GetResourceType() const { return m_resourceType; }
49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 inline void SetResourceType(ResourceType value) {
51 m_resourceTypeHasBeenSet = true;
52 m_resourceType = value;
53 }
55 SetResourceType(value);
56 return *this;
57 }
59
61
64 inline TelemetryType GetTelemetryType() const { return m_telemetryType; }
65 inline bool TelemetryTypeHasBeenSet() const { return m_telemetryTypeHasBeenSet; }
66 inline void SetTelemetryType(TelemetryType value) {
67 m_telemetryTypeHasBeenSet = true;
68 m_telemetryType = value;
69 }
71 SetTelemetryType(value);
72 return *this;
73 }
75
77
82 inline const Aws::Vector<TelemetrySourceType>& GetTelemetrySourceTypes() const { return m_telemetrySourceTypes; }
83 inline bool TelemetrySourceTypesHasBeenSet() const { return m_telemetrySourceTypesHasBeenSet; }
84 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
85 void SetTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
86 m_telemetrySourceTypesHasBeenSet = true;
87 m_telemetrySourceTypes = std::forward<TelemetrySourceTypesT>(value);
88 }
89 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
90 TelemetryRule& WithTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
91 SetTelemetrySourceTypes(std::forward<TelemetrySourceTypesT>(value));
92 return *this;
93 }
95 m_telemetrySourceTypesHasBeenSet = true;
96 m_telemetrySourceTypes.push_back(value);
97 return *this;
98 }
100
102
106 inline const TelemetryDestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
107 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
108 template <typename DestinationConfigurationT = TelemetryDestinationConfiguration>
109 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
110 m_destinationConfigurationHasBeenSet = true;
111 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
112 }
113 template <typename DestinationConfigurationT = TelemetryDestinationConfiguration>
114 TelemetryRule& WithDestinationConfiguration(DestinationConfigurationT&& value) {
115 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetScope() const { return m_scope; }
126 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
127 template <typename ScopeT = Aws::String>
128 void SetScope(ScopeT&& value) {
129 m_scopeHasBeenSet = true;
130 m_scope = std::forward<ScopeT>(value);
131 }
132 template <typename ScopeT = Aws::String>
133 TelemetryRule& WithScope(ScopeT&& value) {
134 SetScope(std::forward<ScopeT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
145 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
146 template <typename SelectionCriteriaT = Aws::String>
147 void SetSelectionCriteria(SelectionCriteriaT&& value) {
148 m_selectionCriteriaHasBeenSet = true;
149 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
150 }
151 template <typename SelectionCriteriaT = Aws::String>
152 TelemetryRule& WithSelectionCriteria(SelectionCriteriaT&& value) {
153 SetSelectionCriteria(std::forward<SelectionCriteriaT>(value));
154 return *this;
155 }
157
159
168 inline bool GetAllowFieldUpdates() const { return m_allowFieldUpdates; }
169 inline bool AllowFieldUpdatesHasBeenSet() const { return m_allowFieldUpdatesHasBeenSet; }
170 inline void SetAllowFieldUpdates(bool value) {
171 m_allowFieldUpdatesHasBeenSet = true;
172 m_allowFieldUpdates = value;
173 }
176 return *this;
177 }
179
181
187 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
188 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
189 template <typename RegionsT = Aws::Vector<Aws::String>>
190 void SetRegions(RegionsT&& value) {
191 m_regionsHasBeenSet = true;
192 m_regions = std::forward<RegionsT>(value);
193 }
194 template <typename RegionsT = Aws::Vector<Aws::String>>
195 TelemetryRule& WithRegions(RegionsT&& value) {
196 SetRegions(std::forward<RegionsT>(value));
197 return *this;
198 }
199 template <typename RegionsT = Aws::String>
200 TelemetryRule& AddRegions(RegionsT&& value) {
201 m_regionsHasBeenSet = true;
202 m_regions.emplace_back(std::forward<RegionsT>(value));
203 return *this;
204 }
206
208
214 inline bool GetAllRegions() const { return m_allRegions; }
215 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
216 inline void SetAllRegions(bool value) {
217 m_allRegionsHasBeenSet = true;
218 m_allRegions = value;
219 }
220 inline TelemetryRule& WithAllRegions(bool value) {
221 SetAllRegions(value);
222 return *this;
223 }
225 private:
226 ResourceType m_resourceType{ResourceType::NOT_SET};
227
228 TelemetryType m_telemetryType{TelemetryType::NOT_SET};
229
230 Aws::Vector<TelemetrySourceType> m_telemetrySourceTypes;
231
232 TelemetryDestinationConfiguration m_destinationConfiguration;
233
234 Aws::String m_scope;
235
236 Aws::String m_selectionCriteria;
237
238 bool m_allowFieldUpdates{false};
239
240 Aws::Vector<Aws::String> m_regions;
241
242 bool m_allRegions{false};
243 bool m_resourceTypeHasBeenSet = false;
244 bool m_telemetryTypeHasBeenSet = false;
245 bool m_telemetrySourceTypesHasBeenSet = false;
246 bool m_destinationConfigurationHasBeenSet = false;
247 bool m_scopeHasBeenSet = false;
248 bool m_selectionCriteriaHasBeenSet = false;
249 bool m_allowFieldUpdatesHasBeenSet = false;
250 bool m_regionsHasBeenSet = false;
251 bool m_allRegionsHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace ObservabilityAdmin
256} // 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