AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
NotificationRule.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/NotificationTarget.h>
9#include <aws/cloudwatchomni/model/NotificationTrigger.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHOMNI_API NotificationRule() = default;
32 AWS_CLOUDWATCHOMNI_API NotificationRule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API NotificationRule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const NotificationTrigger& GetTrigger() const { return m_trigger; }
41 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
42 template <typename TriggerT = NotificationTrigger>
43 void SetTrigger(TriggerT&& value) {
44 m_triggerHasBeenSet = true;
45 m_trigger = std::forward<TriggerT>(value);
46 }
47 template <typename TriggerT = NotificationTrigger>
48 NotificationRule& WithTrigger(TriggerT&& value) {
49 SetTrigger(std::forward<TriggerT>(value));
50 return *this;
51 }
53
55
58 inline const NotificationTarget& GetTarget() const { return m_target; }
59 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
60 template <typename TargetT = NotificationTarget>
61 void SetTarget(TargetT&& value) {
62 m_targetHasBeenSet = true;
63 m_target = std::forward<TargetT>(value);
64 }
65 template <typename TargetT = NotificationTarget>
66 NotificationRule& WithTarget(TargetT&& value) {
67 SetTarget(std::forward<TargetT>(value));
68 return *this;
69 }
71 private:
72 NotificationTrigger m_trigger;
73
74 NotificationTarget m_target;
75 bool m_triggerHasBeenSet = false;
76 bool m_targetHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudWatchOmni
81} // namespace Aws
AWS_CLOUDWATCHOMNI_API NotificationRule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
NotificationRule & WithTrigger(TriggerT &&value)
NotificationRule & WithTarget(TargetT &&value)
const NotificationTrigger & GetTrigger() const
AWS_CLOUDWATCHOMNI_API NotificationRule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API NotificationRule()=default
const NotificationTarget & GetTarget() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const