AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
EventBridgeRuleTemplateSummary.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/medialive/model/EventBridgeRuleTemplateEventType.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 MediaLive
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MEDIALIVE_API EventBridgeRuleTemplateSummary() = default;
41 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 EventBridgeRuleTemplateSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
62 template<typename CreatedAtT = Aws::Utils::DateTime>
63 EventBridgeRuleTemplateSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 EventBridgeRuleTemplateSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline int GetEventTargetCount() const { return m_eventTargetCount; }
83 inline bool EventTargetCountHasBeenSet() const { return m_eventTargetCountHasBeenSet; }
84 inline void SetEventTargetCount(int value) { m_eventTargetCountHasBeenSet = true; m_eventTargetCount = value; }
87
89
90 inline EventBridgeRuleTemplateEventType GetEventType() const { return m_eventType; }
91 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
92 inline void SetEventType(EventBridgeRuleTemplateEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
95
97
101 inline const Aws::String& GetGroupId() const { return m_groupId; }
102 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
103 template<typename GroupIdT = Aws::String>
104 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
105 template<typename GroupIdT = Aws::String>
106 EventBridgeRuleTemplateSummary& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
108
110
114 inline const Aws::String& GetId() const { return m_id; }
115 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
116 template<typename IdT = Aws::String>
117 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
118 template<typename IdT = Aws::String>
119 EventBridgeRuleTemplateSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
121
123
124 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
125 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
126 template<typename ModifiedAtT = Aws::Utils::DateTime>
127 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
128 template<typename ModifiedAtT = Aws::Utils::DateTime>
129 EventBridgeRuleTemplateSummary& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
131
133
137 inline const Aws::String& GetName() const { return m_name; }
138 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
139 template<typename NameT = Aws::String>
140 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
141 template<typename NameT = Aws::String>
142 EventBridgeRuleTemplateSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
144
146
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 EventBridgeRuleTemplateSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 EventBridgeRuleTemplateSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
156 }
158 private:
159
160 Aws::String m_arn;
161 bool m_arnHasBeenSet = false;
162
163 Aws::Utils::DateTime m_createdAt{};
164 bool m_createdAtHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 int m_eventTargetCount{0};
170 bool m_eventTargetCountHasBeenSet = false;
171
173 bool m_eventTypeHasBeenSet = false;
174
175 Aws::String m_groupId;
176 bool m_groupIdHasBeenSet = false;
177
178 Aws::String m_id;
179 bool m_idHasBeenSet = false;
180
181 Aws::Utils::DateTime m_modifiedAt{};
182 bool m_modifiedAtHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
188 bool m_tagsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace MediaLive
193} // 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)
void SetEventType(EventBridgeRuleTemplateEventType 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