AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RemoveTargetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridgeRequest.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EventBridge {
16namespace Model {
17
21 public:
22 AWS_EVENTBRIDGE_API RemoveTargetsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "RemoveTargets"; }
29
30 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
31
32 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetRule() const { return m_rule; }
39 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
40 template <typename RuleT = Aws::String>
41 void SetRule(RuleT&& value) {
42 m_ruleHasBeenSet = true;
43 m_rule = std::forward<RuleT>(value);
44 }
45 template <typename RuleT = Aws::String>
47 SetRule(std::forward<RuleT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
58 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
59 template <typename EventBusNameT = Aws::String>
60 void SetEventBusName(EventBusNameT&& value) {
61 m_eventBusNameHasBeenSet = true;
62 m_eventBusName = std::forward<EventBusNameT>(value);
63 }
64 template <typename EventBusNameT = Aws::String>
65 RemoveTargetsRequest& WithEventBusName(EventBusNameT&& value) {
66 SetEventBusName(std::forward<EventBusNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
76 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
77 template <typename IdsT = Aws::Vector<Aws::String>>
78 void SetIds(IdsT&& value) {
79 m_idsHasBeenSet = true;
80 m_ids = std::forward<IdsT>(value);
81 }
82 template <typename IdsT = Aws::Vector<Aws::String>>
84 SetIds(std::forward<IdsT>(value));
85 return *this;
86 }
87 template <typename IdsT = Aws::String>
89 m_idsHasBeenSet = true;
90 m_ids.emplace_back(std::forward<IdsT>(value));
91 return *this;
92 }
94
96
104 inline bool GetForce() const { return m_force; }
105 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
106 inline void SetForce(bool value) {
107 m_forceHasBeenSet = true;
108 m_force = value;
109 }
110 inline RemoveTargetsRequest& WithForce(bool value) {
111 SetForce(value);
112 return *this;
113 }
115 private:
116 Aws::String m_rule;
117
118 Aws::String m_eventBusName;
119
121
122 bool m_force{false};
123 bool m_ruleHasBeenSet = false;
124 bool m_eventBusNameHasBeenSet = false;
125 bool m_idsHasBeenSet = false;
126 bool m_forceHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EventBridge
131} // namespace Aws
const Aws::Vector< Aws::String > & GetIds() const
virtual const char * GetServiceRequestName() const override
RemoveTargetsRequest & WithEventBusName(EventBusNameT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RemoveTargetsRequest & WithIds(IdsT &&value)
RemoveTargetsRequest & WithForce(bool value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
RemoveTargetsRequest & WithRule(RuleT &&value)
RemoveTargetsRequest & AddIds(IdsT &&value)
AWS_EVENTBRIDGE_API RemoveTargetsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector