AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NotificationConfigurationStructure.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10#include <aws/notifications/model/AggregationDuration.h>
11#include <aws/notifications/model/NotificationConfigurationStatus.h>
12#include <aws/notifications/model/NotificationConfigurationSubtype.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Notifications {
24namespace Model {
25
33 public:
34 AWS_NOTIFICATIONS_API NotificationConfigurationStructure() = default;
37 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
99 inline NotificationConfigurationStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
116 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
117 template <typename CreationTimeT = Aws::Utils::DateTime>
118 void SetCreationTime(CreationTimeT&& value) {
119 m_creationTimeHasBeenSet = true;
120 m_creationTime = std::forward<CreationTimeT>(value);
121 }
122 template <typename CreationTimeT = Aws::Utils::DateTime>
124 SetCreationTime(std::forward<CreationTimeT>(value));
125 return *this;
126 }
128
130
139 inline AggregationDuration GetAggregationDuration() const { return m_aggregationDuration; }
140 inline bool AggregationDurationHasBeenSet() const { return m_aggregationDurationHasBeenSet; }
142 m_aggregationDurationHasBeenSet = true;
143 m_aggregationDuration = value;
144 }
147 return *this;
148 }
150
152
155 inline NotificationConfigurationSubtype GetSubtype() const { return m_subtype; }
156 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
158 m_subtypeHasBeenSet = true;
159 m_subtype = value;
160 }
162 SetSubtype(value);
163 return *this;
164 }
166 private:
167 Aws::String m_arn;
168
169 Aws::String m_name;
170
171 Aws::String m_description;
172
174
175 Aws::Utils::DateTime m_creationTime{};
176
178
180 bool m_arnHasBeenSet = false;
181 bool m_nameHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_statusHasBeenSet = false;
184 bool m_creationTimeHasBeenSet = false;
185 bool m_aggregationDurationHasBeenSet = false;
186 bool m_subtypeHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Notifications
191} // namespace Aws
NotificationConfigurationStructure & WithStatus(NotificationConfigurationStatus value)
AWS_NOTIFICATIONS_API NotificationConfigurationStructure(Aws::Utils::Json::JsonView jsonValue)
NotificationConfigurationStructure & WithCreationTime(CreationTimeT &&value)
NotificationConfigurationStructure & WithDescription(DescriptionT &&value)
AWS_NOTIFICATIONS_API NotificationConfigurationStructure & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NOTIFICATIONS_API NotificationConfigurationStructure()=default
NotificationConfigurationStructure & WithSubtype(NotificationConfigurationSubtype value)
NotificationConfigurationStructure & WithAggregationDuration(AggregationDuration value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue