AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ChannelAlert.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/ChannelAlertState.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 ChannelAlert() = default;
32 AWS_MEDIALIVE_API ChannelAlert(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API ChannelAlert& 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 ChannelAlert& WithAlertType(AlertTypeT&& value) {
49 SetAlertType(std::forward<AlertTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetClearedTimestamp() const { return m_clearedTimestamp; }
59 inline bool ClearedTimestampHasBeenSet() const { return m_clearedTimestampHasBeenSet; }
60 template <typename ClearedTimestampT = Aws::Utils::DateTime>
61 void SetClearedTimestamp(ClearedTimestampT&& value) {
62 m_clearedTimestampHasBeenSet = true;
63 m_clearedTimestamp = std::forward<ClearedTimestampT>(value);
64 }
65 template <typename ClearedTimestampT = Aws::Utils::DateTime>
66 ChannelAlert& WithClearedTimestamp(ClearedTimestampT&& value) {
67 SetClearedTimestamp(std::forward<ClearedTimestampT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetId() const { return m_id; }
77 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
78 template <typename IdT = Aws::String>
79 void SetId(IdT&& value) {
80 m_idHasBeenSet = true;
81 m_id = std::forward<IdT>(value);
82 }
83 template <typename IdT = Aws::String>
84 ChannelAlert& WithId(IdT&& value) {
85 SetId(std::forward<IdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetMessage() const { return m_message; }
95 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
96 template <typename MessageT = Aws::String>
97 void SetMessage(MessageT&& value) {
98 m_messageHasBeenSet = true;
99 m_message = std::forward<MessageT>(value);
100 }
101 template <typename MessageT = Aws::String>
102 ChannelAlert& WithMessage(MessageT&& value) {
103 SetMessage(std::forward<MessageT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetPipelineId() const { return m_pipelineId; }
113 inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
114 template <typename PipelineIdT = Aws::String>
115 void SetPipelineId(PipelineIdT&& value) {
116 m_pipelineIdHasBeenSet = true;
117 m_pipelineId = std::forward<PipelineIdT>(value);
118 }
119 template <typename PipelineIdT = Aws::String>
120 ChannelAlert& WithPipelineId(PipelineIdT&& value) {
121 SetPipelineId(std::forward<PipelineIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetSetTimestamp() const { return m_setTimestamp; }
131 inline bool SetTimestampHasBeenSet() const { return m_setTimestampHasBeenSet; }
132 template <typename SetTimestampT = Aws::Utils::DateTime>
133 void SetSetTimestamp(SetTimestampT&& value) {
134 m_setTimestampHasBeenSet = true;
135 m_setTimestamp = std::forward<SetTimestampT>(value);
136 }
137 template <typename SetTimestampT = Aws::Utils::DateTime>
138 ChannelAlert& WithSetTimestamp(SetTimestampT&& value) {
139 SetSetTimestamp(std::forward<SetTimestampT>(value));
140 return *this;
141 }
143
145
148 inline ChannelAlertState GetState() const { return m_state; }
149 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
150 inline void SetState(ChannelAlertState value) {
151 m_stateHasBeenSet = true;
152 m_state = value;
153 }
155 SetState(value);
156 return *this;
157 }
159 private:
160 Aws::String m_alertType;
161
162 Aws::Utils::DateTime m_clearedTimestamp{};
163
164 Aws::String m_id;
165
166 Aws::String m_message;
167
168 Aws::String m_pipelineId;
169
170 Aws::Utils::DateTime m_setTimestamp{};
171
173 bool m_alertTypeHasBeenSet = false;
174 bool m_clearedTimestampHasBeenSet = false;
175 bool m_idHasBeenSet = false;
176 bool m_messageHasBeenSet = false;
177 bool m_pipelineIdHasBeenSet = false;
178 bool m_setTimestampHasBeenSet = false;
179 bool m_stateHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace MediaLive
184} // namespace Aws
void SetSetTimestamp(SetTimestampT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API ChannelAlert()=default
ChannelAlert & WithSetTimestamp(SetTimestampT &&value)
const Aws::String & GetId() const
ChannelAlert & WithState(ChannelAlertState value)
const Aws::String & GetPipelineId() const
AWS_MEDIALIVE_API ChannelAlert(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetSetTimestamp() const
ChannelAlert & WithMessage(MessageT &&value)
AWS_MEDIALIVE_API ChannelAlert & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelAlert & WithAlertType(AlertTypeT &&value)
const Aws::Utils::DateTime & GetClearedTimestamp() const
ChannelAlert & WithClearedTimestamp(ClearedTimestampT &&value)
void SetPipelineId(PipelineIdT &&value)
void SetMessage(MessageT &&value)
void SetAlertType(AlertTypeT &&value)
const Aws::String & GetMessage() const
void SetClearedTimestamp(ClearedTimestampT &&value)
const Aws::String & GetAlertType() const
ChannelAlert & WithPipelineId(PipelineIdT &&value)
ChannelAlert & WithId(IdT &&value)
ChannelAlertState GetState() const
void SetState(ChannelAlertState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue