AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/TelemetryRule.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatchOmni {
20namespace Model {
21
30class Rule {
31 public:
32 AWS_CLOUDWATCHOMNI_API Rule() = default;
33 AWS_CLOUDWATCHOMNI_API Rule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API Rule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const TelemetryRule& GetTelemetryRule() const { return m_telemetryRule; }
42 inline bool TelemetryRuleHasBeenSet() const { return m_telemetryRuleHasBeenSet; }
43 template <typename TelemetryRuleT = TelemetryRule>
44 void SetTelemetryRule(TelemetryRuleT&& value) {
45 m_telemetryRuleHasBeenSet = true;
46 m_telemetryRule = std::forward<TelemetryRuleT>(value);
47 }
48 template <typename TelemetryRuleT = TelemetryRule>
49 Rule& WithTelemetryRule(TelemetryRuleT&& value) {
50 SetTelemetryRule(std::forward<TelemetryRuleT>(value));
51 return *this;
52 }
54 private:
55 TelemetryRule m_telemetryRule;
56 bool m_telemetryRuleHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace CloudWatchOmni
61} // namespace Aws
AWS_CLOUDWATCHOMNI_API Rule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API Rule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Rule & WithTelemetryRule(TelemetryRuleT &&value)
Definition Rule.h:49
bool TelemetryRuleHasBeenSet() const
Definition Rule.h:42
AWS_CLOUDWATCHOMNI_API Rule()=default
const TelemetryRule & GetTelemetryRule() const
Definition Rule.h:41
void SetTelemetryRule(TelemetryRuleT &&value)
Definition Rule.h:44