AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
TelemetryRule.h
1
6#pragma once
7#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
8#include <aws/observabilityadmin/model/ResourceType.h>
9#include <aws/observabilityadmin/model/TelemetryType.h>
10#include <aws/observabilityadmin/model/TelemetryDestinationConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ObservabilityAdmin
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_OBSERVABILITYADMIN_API TelemetryRule() = default;
39 AWS_OBSERVABILITYADMIN_API TelemetryRule(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OBSERVABILITYADMIN_API TelemetryRule& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline ResourceType GetResourceType() const { return m_resourceType; }
50 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
51 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
52 inline TelemetryRule& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
54
56
59 inline TelemetryType GetTelemetryType() const { return m_telemetryType; }
60 inline bool TelemetryTypeHasBeenSet() const { return m_telemetryTypeHasBeenSet; }
61 inline void SetTelemetryType(TelemetryType value) { m_telemetryTypeHasBeenSet = true; m_telemetryType = value; }
62 inline TelemetryRule& WithTelemetryType(TelemetryType value) { SetTelemetryType(value); return *this;}
64
66
70 inline const TelemetryDestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
71 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
72 template<typename DestinationConfigurationT = TelemetryDestinationConfiguration>
73 void SetDestinationConfiguration(DestinationConfigurationT&& value) { m_destinationConfigurationHasBeenSet = true; m_destinationConfiguration = std::forward<DestinationConfigurationT>(value); }
74 template<typename DestinationConfigurationT = TelemetryDestinationConfiguration>
75 TelemetryRule& WithDestinationConfiguration(DestinationConfigurationT&& value) { SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value)); return *this;}
77
79
83 inline const Aws::String& GetScope() const { return m_scope; }
84 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
85 template<typename ScopeT = Aws::String>
86 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
87 template<typename ScopeT = Aws::String>
88 TelemetryRule& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
90
92
96 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
97 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
98 template<typename SelectionCriteriaT = Aws::String>
99 void SetSelectionCriteria(SelectionCriteriaT&& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = std::forward<SelectionCriteriaT>(value); }
100 template<typename SelectionCriteriaT = Aws::String>
101 TelemetryRule& WithSelectionCriteria(SelectionCriteriaT&& value) { SetSelectionCriteria(std::forward<SelectionCriteriaT>(value)); return *this;}
103 private:
104
105 ResourceType m_resourceType{ResourceType::NOT_SET};
106 bool m_resourceTypeHasBeenSet = false;
107
108 TelemetryType m_telemetryType{TelemetryType::NOT_SET};
109 bool m_telemetryTypeHasBeenSet = false;
110
111 TelemetryDestinationConfiguration m_destinationConfiguration;
112 bool m_destinationConfigurationHasBeenSet = false;
113
114 Aws::String m_scope;
115 bool m_scopeHasBeenSet = false;
116
117 Aws::String m_selectionCriteria;
118 bool m_selectionCriteriaHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ObservabilityAdmin
123} // namespace Aws
TelemetryRule & WithTelemetryType(TelemetryType value)
TelemetryRule & WithSelectionCriteria(SelectionCriteriaT &&value)
TelemetryRule & WithScope(ScopeT &&value)
const TelemetryDestinationConfiguration & GetDestinationConfiguration() const
const Aws::String & GetSelectionCriteria() const
TelemetryRule & WithResourceType(ResourceType value)
AWS_OBSERVABILITYADMIN_API TelemetryRule()=default
TelemetryRule & WithDestinationConfiguration(DestinationConfigurationT &&value)
void SetSelectionCriteria(SelectionCriteriaT &&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)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue