AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
MuteTargets.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/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatch {
21namespace Model {
22
32 public:
33 AWS_CLOUDWATCH_API MuteTargets() = default;
34 AWS_CLOUDWATCH_API MuteTargets(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API MuteTargets& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
45 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
46 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
47 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
48 void SetAlarmNames(AlarmNamesT&& value) {
49 m_alarmNamesHasBeenSet = true;
50 m_alarmNames = std::forward<AlarmNamesT>(value);
51 }
52 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
53 MuteTargets& WithAlarmNames(AlarmNamesT&& value) {
54 SetAlarmNames(std::forward<AlarmNamesT>(value));
55 return *this;
56 }
57 template <typename AlarmNamesT = Aws::String>
58 MuteTargets& AddAlarmNames(AlarmNamesT&& value) {
59 m_alarmNamesHasBeenSet = true;
60 m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value));
61 return *this;
62 }
64 private:
65 Aws::Vector<Aws::String> m_alarmNames;
66 bool m_alarmNamesHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace CloudWatch
71} // namespace Aws
MuteTargets & AddAlarmNames(AlarmNamesT &&value)
Definition MuteTargets.h:58
const Aws::Vector< Aws::String > & GetAlarmNames() const
Definition MuteTargets.h:45
AWS_CLOUDWATCH_API MuteTargets & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API MuteTargets(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAlarmNames(AlarmNamesT &&value)
Definition MuteTargets.h:48
MuteTargets & WithAlarmNames(AlarmNamesT &&value)
Definition MuteTargets.h:53
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API MuteTargets()=default
std::vector< T, Aws::Allocator< T > > Vector