AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEventBridgeRuleTemplateRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/medialive/model/EventBridgeRuleTemplateEventType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/medialive/model/EventBridgeRuleTemplateTarget.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaLive
19{
20namespace Model
21{
22
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateEventBridgeRuleTemplate"; }
39
40 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline CreateEventBridgeRuleTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline CreateEventBridgeRuleTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
59 inline const Aws::Vector<EventBridgeRuleTemplateTarget>& GetEventTargets() const{ return m_eventTargets; }
60 inline bool EventTargetsHasBeenSet() const { return m_eventTargetsHasBeenSet; }
61 inline void SetEventTargets(const Aws::Vector<EventBridgeRuleTemplateTarget>& value) { m_eventTargetsHasBeenSet = true; m_eventTargets = value; }
62 inline void SetEventTargets(Aws::Vector<EventBridgeRuleTemplateTarget>&& value) { m_eventTargetsHasBeenSet = true; m_eventTargets = std::move(value); }
65 inline CreateEventBridgeRuleTemplateRequest& AddEventTargets(const EventBridgeRuleTemplateTarget& value) { m_eventTargetsHasBeenSet = true; m_eventTargets.push_back(value); return *this; }
66 inline CreateEventBridgeRuleTemplateRequest& AddEventTargets(EventBridgeRuleTemplateTarget&& value) { m_eventTargetsHasBeenSet = true; m_eventTargets.push_back(std::move(value)); return *this; }
68
70
71 inline const EventBridgeRuleTemplateEventType& GetEventType() const{ return m_eventType; }
72 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
73 inline void SetEventType(const EventBridgeRuleTemplateEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
74 inline void SetEventType(EventBridgeRuleTemplateEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
78
80
84 inline const Aws::String& GetGroupIdentifier() const{ return m_groupIdentifier; }
85 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
86 inline void SetGroupIdentifier(const Aws::String& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = value; }
87 inline void SetGroupIdentifier(Aws::String&& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = std::move(value); }
88 inline void SetGroupIdentifier(const char* value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier.assign(value); }
91 inline CreateEventBridgeRuleTemplateRequest& WithGroupIdentifier(const char* value) { SetGroupIdentifier(value); return *this;}
93
95
99 inline const Aws::String& GetName() const{ return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 inline CreateEventBridgeRuleTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
105 inline CreateEventBridgeRuleTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
106 inline CreateEventBridgeRuleTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
108
110
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
114 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateEventBridgeRuleTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
118 inline CreateEventBridgeRuleTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
119 inline CreateEventBridgeRuleTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
120 inline CreateEventBridgeRuleTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
121 inline CreateEventBridgeRuleTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
122 inline CreateEventBridgeRuleTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
123 inline CreateEventBridgeRuleTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 private:
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
131 bool m_eventTargetsHasBeenSet = false;
132
134 bool m_eventTypeHasBeenSet = false;
135
136 Aws::String m_groupIdentifier;
137 bool m_groupIdentifierHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace MediaLive
148} // namespace Aws
CreateEventBridgeRuleTemplateRequest & AddTags(const char *key, const char *value)
CreateEventBridgeRuleTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateEventBridgeRuleTemplateRequest & WithName(Aws::String &&value)
CreateEventBridgeRuleTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetEventTargets(Aws::Vector< EventBridgeRuleTemplateTarget > &&value)
CreateEventBridgeRuleTemplateRequest & WithGroupIdentifier(const Aws::String &value)
CreateEventBridgeRuleTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateEventBridgeRuleTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateEventBridgeRuleTemplateRequest & WithGroupIdentifier(const char *value)
CreateEventBridgeRuleTemplateRequest & AddEventTargets(EventBridgeRuleTemplateTarget &&value)
CreateEventBridgeRuleTemplateRequest & WithDescription(Aws::String &&value)
CreateEventBridgeRuleTemplateRequest & WithName(const Aws::String &value)
CreateEventBridgeRuleTemplateRequest & AddEventTargets(const EventBridgeRuleTemplateTarget &value)
CreateEventBridgeRuleTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateEventBridgeRuleTemplateRequest & WithEventType(EventBridgeRuleTemplateEventType &&value)
CreateEventBridgeRuleTemplateRequest & WithEventTargets(const Aws::Vector< EventBridgeRuleTemplateTarget > &value)
CreateEventBridgeRuleTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateEventBridgeRuleTemplateRequest & WithDescription(const Aws::String &value)
const Aws::Vector< EventBridgeRuleTemplateTarget > & GetEventTargets() const
CreateEventBridgeRuleTemplateRequest & WithEventType(const EventBridgeRuleTemplateEventType &value)
CreateEventBridgeRuleTemplateRequest & AddTags(Aws::String &&key, const char *value)
CreateEventBridgeRuleTemplateRequest & WithDescription(const char *value)
CreateEventBridgeRuleTemplateRequest & WithGroupIdentifier(Aws::String &&value)
CreateEventBridgeRuleTemplateRequest & WithEventTargets(Aws::Vector< EventBridgeRuleTemplateTarget > &&value)
CreateEventBridgeRuleTemplateRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetEventTargets(const Aws::Vector< EventBridgeRuleTemplateTarget > &value)
CreateEventBridgeRuleTemplateRequest & WithName(const char *value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
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
std::vector< T, Aws::Allocator< T > > Vector