AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutTargetsRequest.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 <aws/events/model/Target.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHEVENTS_API PutTargetsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutTargets"; }
33
34 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetRule() const{ return m_rule; }
44 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
45 inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; }
46 inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
47 inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); }
48 inline PutTargetsRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;}
49 inline PutTargetsRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;}
50 inline PutTargetsRequest& WithRule(const char* value) { SetRule(value); return *this;}
52
54
58 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
59 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
60 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
61 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
62 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
63 inline PutTargetsRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
64 inline PutTargetsRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
65 inline PutTargetsRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
67
69
72 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
73 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
74 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
75 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
76 inline PutTargetsRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
77 inline PutTargetsRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
78 inline PutTargetsRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
79 inline PutTargetsRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_rule;
84 bool m_ruleHasBeenSet = false;
85
86 Aws::String m_eventBusName;
87 bool m_eventBusNameHasBeenSet = false;
88
89 Aws::Vector<Target> m_targets;
90 bool m_targetsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudWatchEvents
95} // namespace Aws
PutTargetsRequest & WithRule(const Aws::String &value)
const Aws::Vector< Target > & GetTargets() const
PutTargetsRequest & WithEventBusName(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTargets(const Aws::Vector< Target > &value)
PutTargetsRequest & WithRule(const char *value)
void SetTargets(Aws::Vector< Target > &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
PutTargetsRequest & AddTargets(const Target &value)
PutTargetsRequest & WithEventBusName(const char *value)
PutTargetsRequest & AddTargets(Target &&value)
AWS_CLOUDWATCHEVENTS_API PutTargetsRequest()
PutTargetsRequest & WithTargets(const Aws::Vector< Target > &value)
virtual const char * GetServiceRequestName() const override
PutTargetsRequest & WithEventBusName(Aws::String &&value)
PutTargetsRequest & WithTargets(Aws::Vector< Target > &&value)
PutTargetsRequest & WithRule(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