AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
TelemetryRuleSummary.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/TelemetrySourceType.h>
12#include <aws/observabilityadmin/model/TelemetryType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ObservabilityAdmin {
24namespace Model {
25
33 public:
34 AWS_OBSERVABILITYADMIN_API TelemetryRuleSummary() = default;
35 AWS_OBSERVABILITYADMIN_API TelemetryRuleSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OBSERVABILITYADMIN_API TelemetryRuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleName() const { return m_ruleName; }
44 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
45 template <typename RuleNameT = Aws::String>
46 void SetRuleName(RuleNameT&& value) {
47 m_ruleNameHasBeenSet = true;
48 m_ruleName = std::forward<RuleNameT>(value);
49 }
50 template <typename RuleNameT = Aws::String>
51 TelemetryRuleSummary& WithRuleName(RuleNameT&& value) {
52 SetRuleName(std::forward<RuleNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
62 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
63 template <typename RuleArnT = Aws::String>
64 void SetRuleArn(RuleArnT&& value) {
65 m_ruleArnHasBeenSet = true;
66 m_ruleArn = std::forward<RuleArnT>(value);
67 }
68 template <typename RuleArnT = Aws::String>
69 TelemetryRuleSummary& WithRuleArn(RuleArnT&& value) {
70 SetRuleArn(std::forward<RuleArnT>(value));
71 return *this;
72 }
74
76
79 inline long long GetCreatedTimeStamp() const { return m_createdTimeStamp; }
80 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
81 inline void SetCreatedTimeStamp(long long value) {
82 m_createdTimeStampHasBeenSet = true;
83 m_createdTimeStamp = value;
84 }
85 inline TelemetryRuleSummary& WithCreatedTimeStamp(long long value) {
87 return *this;
88 }
90
92
95 inline long long GetLastUpdateTimeStamp() const { return m_lastUpdateTimeStamp; }
96 inline bool LastUpdateTimeStampHasBeenSet() const { return m_lastUpdateTimeStampHasBeenSet; }
97 inline void SetLastUpdateTimeStamp(long long value) {
98 m_lastUpdateTimeStampHasBeenSet = true;
99 m_lastUpdateTimeStamp = value;
100 }
103 return *this;
104 }
106
108
111 inline ResourceType GetResourceType() const { return m_resourceType; }
112 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
113 inline void SetResourceType(ResourceType value) {
114 m_resourceTypeHasBeenSet = true;
115 m_resourceType = value;
116 }
118 SetResourceType(value);
119 return *this;
120 }
122
124
127 inline TelemetryType GetTelemetryType() const { return m_telemetryType; }
128 inline bool TelemetryTypeHasBeenSet() const { return m_telemetryTypeHasBeenSet; }
129 inline void SetTelemetryType(TelemetryType value) {
130 m_telemetryTypeHasBeenSet = true;
131 m_telemetryType = value;
132 }
134 SetTelemetryType(value);
135 return *this;
136 }
138
140
145 inline const Aws::Vector<TelemetrySourceType>& GetTelemetrySourceTypes() const { return m_telemetrySourceTypes; }
146 inline bool TelemetrySourceTypesHasBeenSet() const { return m_telemetrySourceTypesHasBeenSet; }
147 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
148 void SetTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
149 m_telemetrySourceTypesHasBeenSet = true;
150 m_telemetrySourceTypes = std::forward<TelemetrySourceTypesT>(value);
151 }
152 template <typename TelemetrySourceTypesT = Aws::Vector<TelemetrySourceType>>
153 TelemetryRuleSummary& WithTelemetrySourceTypes(TelemetrySourceTypesT&& value) {
154 SetTelemetrySourceTypes(std::forward<TelemetrySourceTypesT>(value));
155 return *this;
156 }
158 m_telemetrySourceTypesHasBeenSet = true;
159 m_telemetrySourceTypes.push_back(value);
160 return *this;
161 }
163 private:
164 Aws::String m_ruleName;
165
166 Aws::String m_ruleArn;
167
168 long long m_createdTimeStamp{0};
169
170 long long m_lastUpdateTimeStamp{0};
171
172 ResourceType m_resourceType{ResourceType::NOT_SET};
173
174 TelemetryType m_telemetryType{TelemetryType::NOT_SET};
175
176 Aws::Vector<TelemetrySourceType> m_telemetrySourceTypes;
177 bool m_ruleNameHasBeenSet = false;
178 bool m_ruleArnHasBeenSet = false;
179 bool m_createdTimeStampHasBeenSet = false;
180 bool m_lastUpdateTimeStampHasBeenSet = false;
181 bool m_resourceTypeHasBeenSet = false;
182 bool m_telemetryTypeHasBeenSet = false;
183 bool m_telemetrySourceTypesHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace ObservabilityAdmin
188} // namespace Aws
TelemetryRuleSummary & WithTelemetryType(TelemetryType value)
TelemetryRuleSummary & WithRuleName(RuleNameT &&value)
void SetTelemetrySourceTypes(TelemetrySourceTypesT &&value)
TelemetryRuleSummary & WithResourceType(ResourceType value)
TelemetryRuleSummary & WithRuleArn(RuleArnT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryRuleSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TelemetrySourceType > & GetTelemetrySourceTypes() const
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
TelemetryRuleSummary & AddTelemetrySourceTypes(TelemetrySourceType value)
TelemetryRuleSummary & WithLastUpdateTimeStamp(long long value)
TelemetryRuleSummary & WithCreatedTimeStamp(long long value)
TelemetryRuleSummary & WithTelemetrySourceTypes(TelemetrySourceTypesT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryRuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API TelemetryRuleSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue