AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RemoveTargetsRequest.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvents
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVENTS_API RemoveTargetsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RemoveTargets"; }
32
33 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetRule() const { return m_rule; }
43 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
44 template<typename RuleT = Aws::String>
45 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
46 template<typename RuleT = Aws::String>
47 RemoveTargetsRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
49
51
55 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
56 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
57 template<typename EventBusNameT = Aws::String>
58 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::forward<EventBusNameT>(value); }
59 template<typename EventBusNameT = Aws::String>
60 RemoveTargetsRequest& WithEventBusName(EventBusNameT&& value) { SetEventBusName(std::forward<EventBusNameT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
68 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
69 template<typename IdsT = Aws::Vector<Aws::String>>
70 void SetIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids = std::forward<IdsT>(value); }
71 template<typename IdsT = Aws::Vector<Aws::String>>
72 RemoveTargetsRequest& WithIds(IdsT&& value) { SetIds(std::forward<IdsT>(value)); return *this;}
73 template<typename IdsT = Aws::String>
74 RemoveTargetsRequest& AddIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids.emplace_back(std::forward<IdsT>(value)); return *this; }
76
78
86 inline bool GetForce() const { return m_force; }
87 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
88 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
89 inline RemoveTargetsRequest& WithForce(bool value) { SetForce(value); return *this;}
91 private:
92
93 Aws::String m_rule;
94 bool m_ruleHasBeenSet = false;
95
96 Aws::String m_eventBusName;
97 bool m_eventBusNameHasBeenSet = false;
98
100 bool m_idsHasBeenSet = false;
101
102 bool m_force{false};
103 bool m_forceHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CloudWatchEvents
108} // namespace Aws
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHEVENTS_API RemoveTargetsRequest()=default
RemoveTargetsRequest & WithRule(RuleT &&value)
const Aws::Vector< Aws::String > & GetIds() const
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
RemoveTargetsRequest & WithEventBusName(EventBusNameT &&value)
virtual const char * GetServiceRequestName() const override
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