AWS SDK for C++  1.9.104
AWS SDK for C++
Alert.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MediaTailor
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  Alert();
40 
41 
45  inline const Aws::String& GetAlertCode() const{ return m_alertCode; }
46 
50  inline bool AlertCodeHasBeenSet() const { return m_alertCodeHasBeenSet; }
51 
55  inline void SetAlertCode(const Aws::String& value) { m_alertCodeHasBeenSet = true; m_alertCode = value; }
56 
60  inline void SetAlertCode(Aws::String&& value) { m_alertCodeHasBeenSet = true; m_alertCode = std::move(value); }
61 
65  inline void SetAlertCode(const char* value) { m_alertCodeHasBeenSet = true; m_alertCode.assign(value); }
66 
70  inline Alert& WithAlertCode(const Aws::String& value) { SetAlertCode(value); return *this;}
71 
75  inline Alert& WithAlertCode(Aws::String&& value) { SetAlertCode(std::move(value)); return *this;}
76 
80  inline Alert& WithAlertCode(const char* value) { SetAlertCode(value); return *this;}
81 
82 
87  inline const Aws::String& GetAlertMessage() const{ return m_alertMessage; }
88 
93  inline bool AlertMessageHasBeenSet() const { return m_alertMessageHasBeenSet; }
94 
99  inline void SetAlertMessage(const Aws::String& value) { m_alertMessageHasBeenSet = true; m_alertMessage = value; }
100 
105  inline void SetAlertMessage(Aws::String&& value) { m_alertMessageHasBeenSet = true; m_alertMessage = std::move(value); }
106 
111  inline void SetAlertMessage(const char* value) { m_alertMessageHasBeenSet = true; m_alertMessage.assign(value); }
112 
117  inline Alert& WithAlertMessage(const Aws::String& value) { SetAlertMessage(value); return *this;}
118 
123  inline Alert& WithAlertMessage(Aws::String&& value) { SetAlertMessage(std::move(value)); return *this;}
124 
129  inline Alert& WithAlertMessage(const char* value) { SetAlertMessage(value); return *this;}
130 
131 
135  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
136 
140  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
141 
145  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
146 
150  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
151 
155  inline Alert& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
156 
160  inline Alert& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
161 
162 
166  inline const Aws::Vector<Aws::String>& GetRelatedResourceArns() const{ return m_relatedResourceArns; }
167 
171  inline bool RelatedResourceArnsHasBeenSet() const { return m_relatedResourceArnsHasBeenSet; }
172 
176  inline void SetRelatedResourceArns(const Aws::Vector<Aws::String>& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns = value; }
177 
181  inline void SetRelatedResourceArns(Aws::Vector<Aws::String>&& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns = std::move(value); }
182 
186  inline Alert& WithRelatedResourceArns(const Aws::Vector<Aws::String>& value) { SetRelatedResourceArns(value); return *this;}
187 
191  inline Alert& WithRelatedResourceArns(Aws::Vector<Aws::String>&& value) { SetRelatedResourceArns(std::move(value)); return *this;}
192 
196  inline Alert& AddRelatedResourceArns(const Aws::String& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.push_back(value); return *this; }
197 
201  inline Alert& AddRelatedResourceArns(Aws::String&& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.push_back(std::move(value)); return *this; }
202 
206  inline Alert& AddRelatedResourceArns(const char* value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.push_back(value); return *this; }
207 
208 
212  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
213 
217  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
218 
222  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
223 
227  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
228 
232  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
233 
237  inline Alert& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
238 
242  inline Alert& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
243 
247  inline Alert& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
248 
249  private:
250 
251  Aws::String m_alertCode;
252  bool m_alertCodeHasBeenSet;
253 
254  Aws::String m_alertMessage;
255  bool m_alertMessageHasBeenSet;
256 
257  Aws::Utils::DateTime m_lastModifiedTime;
258  bool m_lastModifiedTimeHasBeenSet;
259 
260  Aws::Vector<Aws::String> m_relatedResourceArns;
261  bool m_relatedResourceArnsHasBeenSet;
262 
263  Aws::String m_resourceArn;
264  bool m_resourceArnHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace MediaTailor
269 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MediaTailor::Model::Alert::SetLastModifiedTime
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: Alert.h:145
Aws::MediaTailor::Model::Alert::SetRelatedResourceArns
void SetRelatedResourceArns(Aws::Vector< Aws::String > &&value)
Definition: Alert.h:181
Aws::MediaTailor::Model::Alert::WithRelatedResourceArns
Alert & WithRelatedResourceArns(const Aws::Vector< Aws::String > &value)
Definition: Alert.h:186
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::Alert::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MediaTailor::Model::Alert::WithResourceArn
Alert & WithResourceArn(const Aws::String &value)
Definition: Alert.h:237
Aws::MediaTailor::Model::Alert::AlertCodeHasBeenSet
bool AlertCodeHasBeenSet() const
Definition: Alert.h:50
DateTime.h
Aws::MediaTailor::Model::Alert::WithAlertMessage
Alert & WithAlertMessage(const char *value)
Definition: Alert.h:129
Aws::MediaTailor::Model::Alert::SetAlertCode
void SetAlertCode(const Aws::String &value)
Definition: Alert.h:55
Aws::MediaTailor::Model::Alert::SetRelatedResourceArns
void SetRelatedResourceArns(const Aws::Vector< Aws::String > &value)
Definition: Alert.h:176
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MediaTailor::Model::Alert::WithAlertCode
Alert & WithAlertCode(Aws::String &&value)
Definition: Alert.h:75
Aws::MediaTailor::Model::Alert::GetAlertCode
const Aws::String & GetAlertCode() const
Definition: Alert.h:45
AWSVector.h
Aws::MediaTailor::Model::Alert::GetAlertMessage
const Aws::String & GetAlertMessage() const
Definition: Alert.h:87
Aws::MediaTailor::Model::Alert::operator=
Alert & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaTailor::Model::Alert::SetAlertCode
void SetAlertCode(Aws::String &&value)
Definition: Alert.h:60
Aws::MediaTailor::Model::Alert::WithRelatedResourceArns
Alert & WithRelatedResourceArns(Aws::Vector< Aws::String > &&value)
Definition: Alert.h:191
Aws::MediaTailor::Model::Alert::LastModifiedTimeHasBeenSet
bool LastModifiedTimeHasBeenSet() const
Definition: Alert.h:140
Aws::MediaTailor::Model::Alert::GetRelatedResourceArns
const Aws::Vector< Aws::String > & GetRelatedResourceArns() const
Definition: Alert.h:166
Aws::MediaTailor::Model::Alert::WithAlertCode
Alert & WithAlertCode(const Aws::String &value)
Definition: Alert.h:70
Aws::MediaTailor::Model::Alert::Alert
Alert(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaTailor::Model::Alert::SetResourceArn
void SetResourceArn(const char *value)
Definition: Alert.h:232
Aws::MediaTailor::Model::Alert::WithAlertMessage
Alert & WithAlertMessage(const Aws::String &value)
Definition: Alert.h:117
Aws::MediaTailor::Model::Alert::AddRelatedResourceArns
Alert & AddRelatedResourceArns(const Aws::String &value)
Definition: Alert.h:196
Aws::MediaTailor::Model::Alert::WithAlertCode
Alert & WithAlertCode(const char *value)
Definition: Alert.h:80
Aws::MediaTailor::Model::Alert::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: Alert.h:227
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MediaTailor::Model::Alert
Definition: Alert.h:34
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MediaTailor::Model::Alert::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: Alert.h:212
Aws::MediaTailor::Model::Alert::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: Alert.h:222
Aws::MediaTailor::Model::Alert::WithResourceArn
Alert & WithResourceArn(Aws::String &&value)
Definition: Alert.h:242
Aws::MediaTailor::Model::Alert::SetAlertMessage
void SetAlertMessage(Aws::String &&value)
Definition: Alert.h:105
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::Alert::WithAlertMessage
Alert & WithAlertMessage(Aws::String &&value)
Definition: Alert.h:123
Aws::MediaTailor::Model::Alert::SetLastModifiedTime
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: Alert.h:150
Aws::MediaTailor::Model::Alert::AlertMessageHasBeenSet
bool AlertMessageHasBeenSet() const
Definition: Alert.h:93
Aws::MediaTailor::Model::Alert::WithLastModifiedTime
Alert & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: Alert.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::Alert::SetAlertMessage
void SetAlertMessage(const char *value)
Definition: Alert.h:111
Aws::MediaTailor::Model::Alert::WithResourceArn
Alert & WithResourceArn(const char *value)
Definition: Alert.h:247
Aws::MediaTailor::Model::Alert::SetAlertCode
void SetAlertCode(const char *value)
Definition: Alert.h:65
Aws::MediaTailor::Model::Alert::GetLastModifiedTime
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: Alert.h:135
Aws::MediaTailor::Model::Alert::AddRelatedResourceArns
Alert & AddRelatedResourceArns(const char *value)
Definition: Alert.h:206
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::Alert::RelatedResourceArnsHasBeenSet
bool RelatedResourceArnsHasBeenSet() const
Definition: Alert.h:171
Aws::MediaTailor::Model::Alert::AddRelatedResourceArns
Alert & AddRelatedResourceArns(Aws::String &&value)
Definition: Alert.h:201
Aws::MediaTailor::Model::Alert::SetAlertMessage
void SetAlertMessage(const Aws::String &value)
Definition: Alert.h:99
Aws::MediaTailor::Model::Alert::WithLastModifiedTime
Alert & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: Alert.h:160
Aws::MediaTailor::Model::Alert::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: Alert.h:217
Aws::MediaTailor::Model::Alert::Alert
Alert()