AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ClusterAlert.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/ClusterAlertState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
30 public:
31 AWS_MEDIALIVE_API ClusterAlert() = default;
32 AWS_MEDIALIVE_API ClusterAlert(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API ClusterAlert& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAlertType() const { return m_alertType; }
41 inline bool AlertTypeHasBeenSet() const { return m_alertTypeHasBeenSet; }
42 template <typename AlertTypeT = Aws::String>
43 void SetAlertType(AlertTypeT&& value) {
44 m_alertTypeHasBeenSet = true;
45 m_alertType = std::forward<AlertTypeT>(value);
46 }
47 template <typename AlertTypeT = Aws::String>
48 ClusterAlert& WithAlertType(AlertTypeT&& value) {
49 SetAlertType(std::forward<AlertTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetChannelId() const { return m_channelId; }
59 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
60 template <typename ChannelIdT = Aws::String>
61 void SetChannelId(ChannelIdT&& value) {
62 m_channelIdHasBeenSet = true;
63 m_channelId = std::forward<ChannelIdT>(value);
64 }
65 template <typename ChannelIdT = Aws::String>
66 ClusterAlert& WithChannelId(ChannelIdT&& value) {
67 SetChannelId(std::forward<ChannelIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetClearedTimestamp() const { return m_clearedTimestamp; }
77 inline bool ClearedTimestampHasBeenSet() const { return m_clearedTimestampHasBeenSet; }
78 template <typename ClearedTimestampT = Aws::Utils::DateTime>
79 void SetClearedTimestamp(ClearedTimestampT&& value) {
80 m_clearedTimestampHasBeenSet = true;
81 m_clearedTimestamp = std::forward<ClearedTimestampT>(value);
82 }
83 template <typename ClearedTimestampT = Aws::Utils::DateTime>
84 ClusterAlert& WithClearedTimestamp(ClearedTimestampT&& value) {
85 SetClearedTimestamp(std::forward<ClearedTimestampT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetId() const { return m_id; }
95 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
96 template <typename IdT = Aws::String>
97 void SetId(IdT&& value) {
98 m_idHasBeenSet = true;
99 m_id = std::forward<IdT>(value);
100 }
101 template <typename IdT = Aws::String>
102 ClusterAlert& WithId(IdT&& value) {
103 SetId(std::forward<IdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetMessage() const { return m_message; }
113 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
114 template <typename MessageT = Aws::String>
115 void SetMessage(MessageT&& value) {
116 m_messageHasBeenSet = true;
117 m_message = std::forward<MessageT>(value);
118 }
119 template <typename MessageT = Aws::String>
120 ClusterAlert& WithMessage(MessageT&& value) {
121 SetMessage(std::forward<MessageT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetNodeId() const { return m_nodeId; }
131 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
132 template <typename NodeIdT = Aws::String>
133 void SetNodeId(NodeIdT&& value) {
134 m_nodeIdHasBeenSet = true;
135 m_nodeId = std::forward<NodeIdT>(value);
136 }
137 template <typename NodeIdT = Aws::String>
138 ClusterAlert& WithNodeId(NodeIdT&& value) {
139 SetNodeId(std::forward<NodeIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetSetTimestamp() const { return m_setTimestamp; }
149 inline bool SetTimestampHasBeenSet() const { return m_setTimestampHasBeenSet; }
150 template <typename SetTimestampT = Aws::Utils::DateTime>
151 void SetSetTimestamp(SetTimestampT&& value) {
152 m_setTimestampHasBeenSet = true;
153 m_setTimestamp = std::forward<SetTimestampT>(value);
154 }
155 template <typename SetTimestampT = Aws::Utils::DateTime>
156 ClusterAlert& WithSetTimestamp(SetTimestampT&& value) {
157 SetSetTimestamp(std::forward<SetTimestampT>(value));
158 return *this;
159 }
161
163
166 inline ClusterAlertState GetState() const { return m_state; }
167 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
168 inline void SetState(ClusterAlertState value) {
169 m_stateHasBeenSet = true;
170 m_state = value;
171 }
173 SetState(value);
174 return *this;
175 }
177 private:
178 Aws::String m_alertType;
179
180 Aws::String m_channelId;
181
182 Aws::Utils::DateTime m_clearedTimestamp{};
183
184 Aws::String m_id;
185
186 Aws::String m_message;
187
188 Aws::String m_nodeId;
189
190 Aws::Utils::DateTime m_setTimestamp{};
191
193 bool m_alertTypeHasBeenSet = false;
194 bool m_channelIdHasBeenSet = false;
195 bool m_clearedTimestampHasBeenSet = false;
196 bool m_idHasBeenSet = false;
197 bool m_messageHasBeenSet = false;
198 bool m_nodeIdHasBeenSet = false;
199 bool m_setTimestampHasBeenSet = false;
200 bool m_stateHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace MediaLive
205} // namespace Aws
void SetState(ClusterAlertState value)
void SetSetTimestamp(SetTimestampT &&value)
const Aws::String & GetNodeId() const
void SetClearedTimestamp(ClearedTimestampT &&value)
const Aws::String & GetMessage() const
const Aws::Utils::DateTime & GetClearedTimestamp() const
void SetAlertType(AlertTypeT &&value)
ClusterAlert & WithId(IdT &&value)
const Aws::String & GetChannelId() const
const Aws::String & GetId() const
ClusterAlert & WithNodeId(NodeIdT &&value)
const Aws::Utils::DateTime & GetSetTimestamp() const
void SetMessage(MessageT &&value)
AWS_MEDIALIVE_API ClusterAlert & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterAlertState GetState() const
AWS_MEDIALIVE_API ClusterAlert(Aws::Utils::Json::JsonView jsonValue)
ClusterAlert & WithChannelId(ChannelIdT &&value)
const Aws::String & GetAlertType() const
ClusterAlert & WithClearedTimestamp(ClearedTimestampT &&value)
ClusterAlert & WithAlertType(AlertTypeT &&value)
ClusterAlert & WithSetTimestamp(SetTimestampT &&value)
ClusterAlert & WithMessage(MessageT &&value)
ClusterAlert & WithState(ClusterAlertState value)
AWS_MEDIALIVE_API ClusterAlert()=default
void SetChannelId(ChannelIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue