AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alert.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediatailor/model/AlertCategory.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaTailor
25{
26namespace Model
27{
28
34 class Alert
35 {
36 public:
37 AWS_MEDIATAILOR_API Alert();
38 AWS_MEDIATAILOR_API Alert(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIATAILOR_API Alert& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAlertCode() const{ return m_alertCode; }
48 inline bool AlertCodeHasBeenSet() const { return m_alertCodeHasBeenSet; }
49 inline void SetAlertCode(const Aws::String& value) { m_alertCodeHasBeenSet = true; m_alertCode = value; }
50 inline void SetAlertCode(Aws::String&& value) { m_alertCodeHasBeenSet = true; m_alertCode = std::move(value); }
51 inline void SetAlertCode(const char* value) { m_alertCodeHasBeenSet = true; m_alertCode.assign(value); }
52 inline Alert& WithAlertCode(const Aws::String& value) { SetAlertCode(value); return *this;}
53 inline Alert& WithAlertCode(Aws::String&& value) { SetAlertCode(std::move(value)); return *this;}
54 inline Alert& WithAlertCode(const char* value) { SetAlertCode(value); return *this;}
56
58
62 inline const Aws::String& GetAlertMessage() const{ return m_alertMessage; }
63 inline bool AlertMessageHasBeenSet() const { return m_alertMessageHasBeenSet; }
64 inline void SetAlertMessage(const Aws::String& value) { m_alertMessageHasBeenSet = true; m_alertMessage = value; }
65 inline void SetAlertMessage(Aws::String&& value) { m_alertMessageHasBeenSet = true; m_alertMessage = std::move(value); }
66 inline void SetAlertMessage(const char* value) { m_alertMessageHasBeenSet = true; m_alertMessage.assign(value); }
67 inline Alert& WithAlertMessage(const Aws::String& value) { SetAlertMessage(value); return *this;}
68 inline Alert& WithAlertMessage(Aws::String&& value) { SetAlertMessage(std::move(value)); return *this;}
69 inline Alert& WithAlertMessage(const char* value) { SetAlertMessage(value); return *this;}
71
73
76 inline const AlertCategory& GetCategory() const{ return m_category; }
77 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
78 inline void SetCategory(const AlertCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
79 inline void SetCategory(AlertCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
80 inline Alert& WithCategory(const AlertCategory& value) { SetCategory(value); return *this;}
81 inline Alert& WithCategory(AlertCategory&& value) { SetCategory(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
89 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
90 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
91 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
92 inline Alert& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
93 inline Alert& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
95
97
100 inline const Aws::Vector<Aws::String>& GetRelatedResourceArns() const{ return m_relatedResourceArns; }
101 inline bool RelatedResourceArnsHasBeenSet() const { return m_relatedResourceArnsHasBeenSet; }
102 inline void SetRelatedResourceArns(const Aws::Vector<Aws::String>& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns = value; }
103 inline void SetRelatedResourceArns(Aws::Vector<Aws::String>&& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns = std::move(value); }
105 inline Alert& WithRelatedResourceArns(Aws::Vector<Aws::String>&& value) { SetRelatedResourceArns(std::move(value)); return *this;}
106 inline Alert& AddRelatedResourceArns(const Aws::String& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.push_back(value); return *this; }
107 inline Alert& AddRelatedResourceArns(Aws::String&& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.push_back(std::move(value)); return *this; }
108 inline Alert& AddRelatedResourceArns(const char* value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.push_back(value); return *this; }
110
112
115 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
116 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
117 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
118 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
119 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
120 inline Alert& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
121 inline Alert& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
122 inline Alert& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
124 private:
125
126 Aws::String m_alertCode;
127 bool m_alertCodeHasBeenSet = false;
128
129 Aws::String m_alertMessage;
130 bool m_alertMessageHasBeenSet = false;
131
132 AlertCategory m_category;
133 bool m_categoryHasBeenSet = false;
134
135 Aws::Utils::DateTime m_lastModifiedTime;
136 bool m_lastModifiedTimeHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_relatedResourceArns;
139 bool m_relatedResourceArnsHasBeenSet = false;
140
141 Aws::String m_resourceArn;
142 bool m_resourceArnHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace MediaTailor
147} // namespace Aws
Alert & WithAlertCode(const Aws::String &value)
Definition Alert.h:52
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Alert.h:88
Alert & AddRelatedResourceArns(const char *value)
Definition Alert.h:108
Alert & AddRelatedResourceArns(const Aws::String &value)
Definition Alert.h:106
Alert & WithResourceArn(const char *value)
Definition Alert.h:122
void SetResourceArn(const char *value)
Definition Alert.h:119
void SetAlertMessage(const char *value)
Definition Alert.h:66
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Alert.h:90
void SetRelatedResourceArns(const Aws::Vector< Aws::String > &value)
Definition Alert.h:102
AWS_MEDIATAILOR_API Alert(Aws::Utils::Json::JsonView jsonValue)
bool AlertMessageHasBeenSet() const
Definition Alert.h:63
Alert & WithResourceArn(const Aws::String &value)
Definition Alert.h:120
void SetCategory(const AlertCategory &value)
Definition Alert.h:78
Alert & AddRelatedResourceArns(Aws::String &&value)
Definition Alert.h:107
const AlertCategory & GetCategory() const
Definition Alert.h:76
bool CategoryHasBeenSet() const
Definition Alert.h:77
void SetRelatedResourceArns(Aws::Vector< Aws::String > &&value)
Definition Alert.h:103
bool RelatedResourceArnsHasBeenSet() const
Definition Alert.h:101
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Alert.h:91
void SetAlertCode(const Aws::String &value)
Definition Alert.h:49
bool AlertCodeHasBeenSet() const
Definition Alert.h:48
Alert & WithAlertCode(Aws::String &&value)
Definition Alert.h:53
Alert & WithAlertCode(const char *value)
Definition Alert.h:54
Alert & WithRelatedResourceArns(const Aws::Vector< Aws::String > &value)
Definition Alert.h:104
const Aws::String & GetAlertCode() const
Definition Alert.h:47
void SetAlertMessage(const Aws::String &value)
Definition Alert.h:64
const Aws::Vector< Aws::String > & GetRelatedResourceArns() const
Definition Alert.h:100
bool ResourceArnHasBeenSet() const
Definition Alert.h:116
void SetAlertCode(Aws::String &&value)
Definition Alert.h:50
Alert & WithAlertMessage(const Aws::String &value)
Definition Alert.h:67
Alert & WithRelatedResourceArns(Aws::Vector< Aws::String > &&value)
Definition Alert.h:105
Alert & WithResourceArn(Aws::String &&value)
Definition Alert.h:121
Alert & WithAlertMessage(const char *value)
Definition Alert.h:69
AWS_MEDIATAILOR_API Alert()
void SetAlertMessage(Aws::String &&value)
Definition Alert.h:65
void SetResourceArn(Aws::String &&value)
Definition Alert.h:118
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
Alert & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Alert.h:92
void SetAlertCode(const char *value)
Definition Alert.h:51
void SetCategory(AlertCategory &&value)
Definition Alert.h:79
void SetResourceArn(const Aws::String &value)
Definition Alert.h:117
Alert & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Alert.h:93
Alert & WithCategory(AlertCategory &&value)
Definition Alert.h:81
bool LastModifiedTimeHasBeenSet() const
Definition Alert.h:89
Alert & WithAlertMessage(Aws::String &&value)
Definition Alert.h:68
AWS_MEDIATAILOR_API Alert & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAlertMessage() const
Definition Alert.h:62
Alert & WithCategory(const AlertCategory &value)
Definition Alert.h:80
const Aws::String & GetResourceArn() const
Definition Alert.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue