AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediatailor/model/AlertCategory.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() = default;
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 template<typename AlertCodeT = Aws::String>
50 void SetAlertCode(AlertCodeT&& value) { m_alertCodeHasBeenSet = true; m_alertCode = std::forward<AlertCodeT>(value); }
51 template<typename AlertCodeT = Aws::String>
52 Alert& WithAlertCode(AlertCodeT&& value) { SetAlertCode(std::forward<AlertCodeT>(value)); return *this;}
54
56
60 inline const Aws::String& GetAlertMessage() const { return m_alertMessage; }
61 inline bool AlertMessageHasBeenSet() const { return m_alertMessageHasBeenSet; }
62 template<typename AlertMessageT = Aws::String>
63 void SetAlertMessage(AlertMessageT&& value) { m_alertMessageHasBeenSet = true; m_alertMessage = std::forward<AlertMessageT>(value); }
64 template<typename AlertMessageT = Aws::String>
65 Alert& WithAlertMessage(AlertMessageT&& value) { SetAlertMessage(std::forward<AlertMessageT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
73 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
74 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
75 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
76 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
77 Alert& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetRelatedResourceArns() const { return m_relatedResourceArns; }
85 inline bool RelatedResourceArnsHasBeenSet() const { return m_relatedResourceArnsHasBeenSet; }
86 template<typename RelatedResourceArnsT = Aws::Vector<Aws::String>>
87 void SetRelatedResourceArns(RelatedResourceArnsT&& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns = std::forward<RelatedResourceArnsT>(value); }
88 template<typename RelatedResourceArnsT = Aws::Vector<Aws::String>>
89 Alert& WithRelatedResourceArns(RelatedResourceArnsT&& value) { SetRelatedResourceArns(std::forward<RelatedResourceArnsT>(value)); return *this;}
90 template<typename RelatedResourceArnsT = Aws::String>
91 Alert& AddRelatedResourceArns(RelatedResourceArnsT&& value) { m_relatedResourceArnsHasBeenSet = true; m_relatedResourceArns.emplace_back(std::forward<RelatedResourceArnsT>(value)); return *this; }
93
95
98 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
99 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
100 template<typename ResourceArnT = Aws::String>
101 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
102 template<typename ResourceArnT = Aws::String>
103 Alert& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
105
107
110 inline AlertCategory GetCategory() const { return m_category; }
111 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
112 inline void SetCategory(AlertCategory value) { m_categoryHasBeenSet = true; m_category = value; }
113 inline Alert& WithCategory(AlertCategory value) { SetCategory(value); return *this;}
115 private:
116
117 Aws::String m_alertCode;
118 bool m_alertCodeHasBeenSet = false;
119
120 Aws::String m_alertMessage;
121 bool m_alertMessageHasBeenSet = false;
122
123 Aws::Utils::DateTime m_lastModifiedTime{};
124 bool m_lastModifiedTimeHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_relatedResourceArns;
127 bool m_relatedResourceArnsHasBeenSet = false;
128
129 Aws::String m_resourceArn;
130 bool m_resourceArnHasBeenSet = false;
131
133 bool m_categoryHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace MediaTailor
138} // namespace Aws
void SetCategory(AlertCategory value)
Definition Alert.h:112
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Alert.h:72
AWS_MEDIATAILOR_API Alert(Aws::Utils::Json::JsonView jsonValue)
bool AlertMessageHasBeenSet() const
Definition Alert.h:61
bool CategoryHasBeenSet() const
Definition Alert.h:111
bool RelatedResourceArnsHasBeenSet() const
Definition Alert.h:85
void SetRelatedResourceArns(RelatedResourceArnsT &&value)
Definition Alert.h:87
bool AlertCodeHasBeenSet() const
Definition Alert.h:48
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Alert.h:75
Alert & WithResourceArn(ResourceArnT &&value)
Definition Alert.h:103
void SetAlertMessage(AlertMessageT &&value)
Definition Alert.h:63
Alert & WithRelatedResourceArns(RelatedResourceArnsT &&value)
Definition Alert.h:89
Alert & WithCategory(AlertCategory value)
Definition Alert.h:113
AWS_MEDIATAILOR_API Alert()=default
const Aws::String & GetAlertCode() const
Definition Alert.h:47
const Aws::Vector< Aws::String > & GetRelatedResourceArns() const
Definition Alert.h:84
bool ResourceArnHasBeenSet() const
Definition Alert.h:99
Alert & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Alert.h:77
void SetResourceArn(ResourceArnT &&value)
Definition Alert.h:101
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
AlertCategory GetCategory() const
Definition Alert.h:110
Alert & WithAlertCode(AlertCodeT &&value)
Definition Alert.h:52
void SetAlertCode(AlertCodeT &&value)
Definition Alert.h:50
bool LastModifiedTimeHasBeenSet() const
Definition Alert.h:73
Alert & AddRelatedResourceArns(RelatedResourceArnsT &&value)
Definition Alert.h:91
AWS_MEDIATAILOR_API Alert & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAlertMessage() const
Definition Alert.h:60
const Aws::String & GetResourceArn() const
Definition Alert.h:98
Alert & WithAlertMessage(AlertMessageT &&value)
Definition Alert.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue