AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateEventBridgeRuleTemplateRequest.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/medialive/model/EventBridgeRuleTemplateTarget.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_MEDIALIVE_API UpdateEventBridgeRuleTemplateRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventBridgeRuleTemplate"; }
38
39 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template<typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
50 template<typename DescriptionT = Aws::String>
51 UpdateEventBridgeRuleTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
53
55
56 inline const Aws::Vector<EventBridgeRuleTemplateTarget>& GetEventTargets() const { return m_eventTargets; }
57 inline bool EventTargetsHasBeenSet() const { return m_eventTargetsHasBeenSet; }
58 template<typename EventTargetsT = Aws::Vector<EventBridgeRuleTemplateTarget>>
59 void SetEventTargets(EventTargetsT&& value) { m_eventTargetsHasBeenSet = true; m_eventTargets = std::forward<EventTargetsT>(value); }
60 template<typename EventTargetsT = Aws::Vector<EventBridgeRuleTemplateTarget>>
61 UpdateEventBridgeRuleTemplateRequest& WithEventTargets(EventTargetsT&& value) { SetEventTargets(std::forward<EventTargetsT>(value)); return *this;}
62 template<typename EventTargetsT = EventBridgeRuleTemplateTarget>
63 UpdateEventBridgeRuleTemplateRequest& AddEventTargets(EventTargetsT&& value) { m_eventTargetsHasBeenSet = true; m_eventTargets.emplace_back(std::forward<EventTargetsT>(value)); return *this; }
65
67
68 inline EventBridgeRuleTemplateEventType GetEventType() const { return m_eventType; }
69 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
70 inline void SetEventType(EventBridgeRuleTemplateEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
73
75
79 inline const Aws::String& GetGroupIdentifier() const { return m_groupIdentifier; }
80 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
81 template<typename GroupIdentifierT = Aws::String>
82 void SetGroupIdentifier(GroupIdentifierT&& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = std::forward<GroupIdentifierT>(value); }
83 template<typename GroupIdentifierT = Aws::String>
84 UpdateEventBridgeRuleTemplateRequest& WithGroupIdentifier(GroupIdentifierT&& value) { SetGroupIdentifier(std::forward<GroupIdentifierT>(value)); return *this;}
86
88
92 inline const Aws::String& GetIdentifier() const { return m_identifier; }
93 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
94 template<typename IdentifierT = Aws::String>
95 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
96 template<typename IdentifierT = Aws::String>
97 UpdateEventBridgeRuleTemplateRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
99
101
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template<typename NameT = Aws::String>
108 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
109 template<typename NameT = Aws::String>
110 UpdateEventBridgeRuleTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
112 private:
113
114 Aws::String m_description;
115 bool m_descriptionHasBeenSet = false;
116
118 bool m_eventTargetsHasBeenSet = false;
119
121 bool m_eventTypeHasBeenSet = false;
122
123 Aws::String m_groupIdentifier;
124 bool m_groupIdentifierHasBeenSet = false;
125
126 Aws::String m_identifier;
127 bool m_identifierHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace MediaLive
135} // namespace Aws
const Aws::Vector< EventBridgeRuleTemplateTarget > & GetEventTargets() const
UpdateEventBridgeRuleTemplateRequest & WithIdentifier(IdentifierT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
UpdateEventBridgeRuleTemplateRequest & WithEventType(EventBridgeRuleTemplateEventType value)
UpdateEventBridgeRuleTemplateRequest & WithGroupIdentifier(GroupIdentifierT &&value)
UpdateEventBridgeRuleTemplateRequest & WithDescription(DescriptionT &&value)
UpdateEventBridgeRuleTemplateRequest & WithEventTargets(EventTargetsT &&value)
UpdateEventBridgeRuleTemplateRequest & AddEventTargets(EventTargetsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector