AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; }
45 inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
46 inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); }
47 inline RemoveTargetsRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;}
48 inline RemoveTargetsRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;}
49 inline RemoveTargetsRequest& WithRule(const char* value) { SetRule(value); return *this;}
51
53
57 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
58 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
59 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
60 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
61 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
62 inline RemoveTargetsRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
63 inline RemoveTargetsRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
64 inline RemoveTargetsRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
72 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
73 inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
74 inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
75 inline RemoveTargetsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
76 inline RemoveTargetsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
77 inline RemoveTargetsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
78 inline RemoveTargetsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
79 inline RemoveTargetsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
81
83
91 inline bool GetForce() const{ return m_force; }
92 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
93 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
94 inline RemoveTargetsRequest& WithForce(bool value) { SetForce(value); return *this;}
96 private:
97
98 Aws::String m_rule;
99 bool m_ruleHasBeenSet = false;
100
101 Aws::String m_eventBusName;
102 bool m_eventBusNameHasBeenSet = false;
103
105 bool m_idsHasBeenSet = false;
106
107 bool m_force;
108 bool m_forceHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CloudWatchEvents
113} // namespace Aws
RemoveTargetsRequest & WithRule(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RemoveTargetsRequest & AddIds(Aws::String &&value)
RemoveTargetsRequest & WithIds(const Aws::Vector< Aws::String > &value)
void SetIds(Aws::Vector< Aws::String > &&value)
RemoveTargetsRequest & AddIds(const Aws::String &value)
RemoveTargetsRequest & WithRule(Aws::String &&value)
RemoveTargetsRequest & WithEventBusName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIds() const
RemoveTargetsRequest & WithEventBusName(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
RemoveTargetsRequest & WithEventBusName(const Aws::String &value)
void SetIds(const Aws::Vector< Aws::String > &value)
RemoveTargetsRequest & AddIds(const char *value)
virtual const char * GetServiceRequestName() const override
RemoveTargetsRequest & WithIds(Aws::Vector< Aws::String > &&value)
RemoveTargetsRequest & WithRule(const Aws::String &value)
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