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>
20namespace CloudWatchOmni {
32 AWS_CLOUDWATCHOMNI_API
NotificationRule(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename TriggerT = NotificationTrigger>
44 m_triggerHasBeenSet =
true;
45 m_trigger = std::forward<TriggerT>(value);
47 template <
typename TriggerT = NotificationTrigger>
60 template <
typename TargetT = NotificationTarget>
62 m_targetHasBeenSet =
true;
63 m_target = std::forward<TargetT>(value);
65 template <
typename TargetT = NotificationTarget>
75 bool m_triggerHasBeenSet =
false;
76 bool m_targetHasBeenSet =
false;
AWS_CLOUDWATCHOMNI_API NotificationRule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool TargetHasBeenSet() const
NotificationRule & WithTrigger(TriggerT &&value)
NotificationRule & WithTarget(TargetT &&value)
void SetTrigger(TriggerT &&value)
const NotificationTrigger & GetTrigger() const
bool TriggerHasBeenSet() const
AWS_CLOUDWATCHOMNI_API NotificationRule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetTarget(TargetT &&value)
AWS_CLOUDWATCHOMNI_API NotificationRule()=default
const NotificationTarget & GetTarget() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const