AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
AlarmMuteRuleSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/AlarmMuteRuleStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CloudWatch {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCH_API AlarmMuteRuleSummary() = default;
33 AWS_CLOUDWATCH_API AlarmMuteRuleSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API AlarmMuteRuleSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetAlarmMuteRuleArn() const { return m_alarmMuteRuleArn; }
42 inline bool AlarmMuteRuleArnHasBeenSet() const { return m_alarmMuteRuleArnHasBeenSet; }
43 template <typename AlarmMuteRuleArnT = Aws::String>
44 void SetAlarmMuteRuleArn(AlarmMuteRuleArnT&& value) {
45 m_alarmMuteRuleArnHasBeenSet = true;
46 m_alarmMuteRuleArn = std::forward<AlarmMuteRuleArnT>(value);
47 }
48 template <typename AlarmMuteRuleArnT = Aws::String>
49 AlarmMuteRuleSummary& WithAlarmMuteRuleArn(AlarmMuteRuleArnT&& value) {
50 SetAlarmMuteRuleArn(std::forward<AlarmMuteRuleArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Utils::DateTime& GetExpireDate() const { return m_expireDate; }
61 inline bool ExpireDateHasBeenSet() const { return m_expireDateHasBeenSet; }
62 template <typename ExpireDateT = Aws::Utils::DateTime>
63 void SetExpireDate(ExpireDateT&& value) {
64 m_expireDateHasBeenSet = true;
65 m_expireDate = std::forward<ExpireDateT>(value);
66 }
67 template <typename ExpireDateT = Aws::Utils::DateTime>
68 AlarmMuteRuleSummary& WithExpireDate(ExpireDateT&& value) {
69 SetExpireDate(std::forward<ExpireDateT>(value));
70 return *this;
71 }
73
75
79 inline AlarmMuteRuleStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(AlarmMuteRuleStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetMuteType() const { return m_muteType; }
97 inline bool MuteTypeHasBeenSet() const { return m_muteTypeHasBeenSet; }
98 template <typename MuteTypeT = Aws::String>
99 void SetMuteType(MuteTypeT&& value) {
100 m_muteTypeHasBeenSet = true;
101 m_muteType = std::forward<MuteTypeT>(value);
102 }
103 template <typename MuteTypeT = Aws::String>
104 AlarmMuteRuleSummary& WithMuteType(MuteTypeT&& value) {
105 SetMuteType(std::forward<MuteTypeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
115 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
116 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
117 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
118 m_lastUpdatedTimestampHasBeenSet = true;
119 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
120 }
121 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
122 AlarmMuteRuleSummary& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
123 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_alarmMuteRuleArn;
129
130 Aws::Utils::DateTime m_expireDate{};
131
133
134 Aws::String m_muteType;
135
136 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
137 bool m_alarmMuteRuleArnHasBeenSet = false;
138 bool m_expireDateHasBeenSet = false;
139 bool m_statusHasBeenSet = false;
140 bool m_muteTypeHasBeenSet = false;
141 bool m_lastUpdatedTimestampHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CloudWatch
146} // namespace Aws
AWS_CLOUDWATCH_API AlarmMuteRuleSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AlarmMuteRuleSummary & WithAlarmMuteRuleArn(AlarmMuteRuleArnT &&value)
AWS_CLOUDWATCH_API AlarmMuteRuleSummary()=default
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AlarmMuteRuleSummary & WithExpireDate(ExpireDateT &&value)
AlarmMuteRuleSummary & WithMuteType(MuteTypeT &&value)
AlarmMuteRuleSummary & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
const Aws::Utils::DateTime & GetExpireDate() const
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetAlarmMuteRuleArn(AlarmMuteRuleArnT &&value)
AWS_CLOUDWATCH_API AlarmMuteRuleSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AlarmMuteRuleSummary & WithStatus(AlarmMuteRuleStatus value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String