AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
EventBridgeRuleTemplateSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/EventBridgeRuleTemplateEventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive {
23namespace Model {
24
32 public:
33 AWS_MEDIALIVE_API EventBridgeRuleTemplateSummary() = default;
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline int GetEventTargetCount() const { return m_eventTargetCount; }
95 inline bool EventTargetCountHasBeenSet() const { return m_eventTargetCountHasBeenSet; }
96 inline void SetEventTargetCount(int value) {
97 m_eventTargetCountHasBeenSet = true;
98 m_eventTargetCount = value;
99 }
101 SetEventTargetCount(value);
102 return *this;
103 }
105
107
108 inline EventBridgeRuleTemplateEventType GetEventType() const { return m_eventType; }
109 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
111 m_eventTypeHasBeenSet = true;
112 m_eventType = value;
113 }
115 SetEventType(value);
116 return *this;
117 }
119
121
125 inline const Aws::String& GetGroupId() const { return m_groupId; }
126 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
127 template <typename GroupIdT = Aws::String>
128 void SetGroupId(GroupIdT&& value) {
129 m_groupIdHasBeenSet = true;
130 m_groupId = std::forward<GroupIdT>(value);
131 }
132 template <typename GroupIdT = Aws::String>
134 SetGroupId(std::forward<GroupIdT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetId() const { return m_id; }
145 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
146 template <typename IdT = Aws::String>
147 void SetId(IdT&& value) {
148 m_idHasBeenSet = true;
149 m_id = std::forward<IdT>(value);
150 }
151 template <typename IdT = Aws::String>
153 SetId(std::forward<IdT>(value));
154 return *this;
155 }
157
159
160 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
161 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
162 template <typename ModifiedAtT = Aws::Utils::DateTime>
163 void SetModifiedAt(ModifiedAtT&& value) {
164 m_modifiedAtHasBeenSet = true;
165 m_modifiedAt = std::forward<ModifiedAtT>(value);
166 }
167 template <typename ModifiedAtT = Aws::Utils::DateTime>
169 SetModifiedAt(std::forward<ModifiedAtT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetName() const { return m_name; }
180 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
181 template <typename NameT = Aws::String>
182 void SetName(NameT&& value) {
183 m_nameHasBeenSet = true;
184 m_name = std::forward<NameT>(value);
185 }
186 template <typename NameT = Aws::String>
188 SetName(std::forward<NameT>(value));
189 return *this;
190 }
192
194
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 void SetTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags = std::forward<TagsT>(value);
201 }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 SetTags(std::forward<TagsT>(value));
205 return *this;
206 }
207 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
208 EventBridgeRuleTemplateSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_arn;
216
217 Aws::Utils::DateTime m_createdAt{};
218
219 Aws::String m_description;
220
221 int m_eventTargetCount{0};
222
224
225 Aws::String m_groupId;
226
227 Aws::String m_id;
228
229 Aws::Utils::DateTime m_modifiedAt{};
230
231 Aws::String m_name;
232
234 bool m_arnHasBeenSet = false;
235 bool m_createdAtHasBeenSet = false;
236 bool m_descriptionHasBeenSet = false;
237 bool m_eventTargetCountHasBeenSet = false;
238 bool m_eventTypeHasBeenSet = false;
239 bool m_groupIdHasBeenSet = false;
240 bool m_idHasBeenSet = false;
241 bool m_modifiedAtHasBeenSet = false;
242 bool m_nameHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace MediaLive
248} // namespace Aws
EventBridgeRuleTemplateSummary & WithGroupId(GroupIdT &&value)
AWS_MEDIALIVE_API EventBridgeRuleTemplateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API EventBridgeRuleTemplateSummary()=default
EventBridgeRuleTemplateSummary & WithName(NameT &&value)
EventBridgeRuleTemplateSummary & WithEventType(EventBridgeRuleTemplateEventType value)
EventBridgeRuleTemplateSummary & WithArn(ArnT &&value)
EventBridgeRuleTemplateSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
EventBridgeRuleTemplateSummary & WithEventTargetCount(int value)
EventBridgeRuleTemplateSummary & WithCreatedAt(CreatedAtT &&value)
AWS_MEDIALIVE_API EventBridgeRuleTemplateSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
EventBridgeRuleTemplateSummary & WithTags(TagsT &&value)
EventBridgeRuleTemplateSummary & WithModifiedAt(ModifiedAtT &&value)
EventBridgeRuleTemplateSummary & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue