AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
NotificationTrigger.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AlertState.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
31 public:
32 AWS_CLOUDWATCHOMNI_API NotificationTrigger() = default;
33 AWS_CLOUDWATCHOMNI_API NotificationTrigger(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API NotificationTrigger& 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 Aws::Vector<AlertState>& GetStateValues() const { return m_stateValues; }
42 inline bool StateValuesHasBeenSet() const { return m_stateValuesHasBeenSet; }
43 template <typename StateValuesT = Aws::Vector<AlertState>>
44 void SetStateValues(StateValuesT&& value) {
45 m_stateValuesHasBeenSet = true;
46 m_stateValues = std::forward<StateValuesT>(value);
47 }
48 template <typename StateValuesT = Aws::Vector<AlertState>>
49 NotificationTrigger& WithStateValues(StateValuesT&& value) {
50 SetStateValues(std::forward<StateValuesT>(value));
51 return *this;
52 }
54 m_stateValuesHasBeenSet = true;
55 m_stateValues.push_back(value);
56 return *this;
57 }
59 private:
60 Aws::Vector<AlertState> m_stateValues;
61 bool m_stateValuesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace CloudWatchOmni
66} // namespace Aws
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API NotificationTrigger & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API NotificationTrigger(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
NotificationTrigger & AddStateValues(AlertState value)
NotificationTrigger & WithStateValues(StateValuesT &&value)
const Aws::Vector< AlertState > & GetStateValues() const
AWS_CLOUDWATCHOMNI_API NotificationTrigger()=default
std::vector< T, Aws::Allocator< T > > Vector