AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateEventBusRequest.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/events/CloudWatchEventsRequest.h>
10#include <aws/events/CloudWatchEvents_EXPORTS.h>
11#include <aws/events/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchEvents {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHEVENTS_API CreateEventBusRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateEventBus"; }
30
31 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetEventSourceName() const { return m_eventSourceName; }
63 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
64 template <typename EventSourceNameT = Aws::String>
65 void SetEventSourceName(EventSourceNameT&& value) {
66 m_eventSourceNameHasBeenSet = true;
67 m_eventSourceName = std::forward<EventSourceNameT>(value);
68 }
69 template <typename EventSourceNameT = Aws::String>
70 CreateEventBusRequest& WithEventSourceName(EventSourceNameT&& value) {
71 SetEventSourceName(std::forward<EventSourceNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template <typename TagsT = Aws::Vector<Tag>>
83 void SetTags(TagsT&& value) {
84 m_tagsHasBeenSet = true;
85 m_tags = std::forward<TagsT>(value);
86 }
87 template <typename TagsT = Aws::Vector<Tag>>
89 SetTags(std::forward<TagsT>(value));
90 return *this;
91 }
92 template <typename TagsT = Tag>
94 m_tagsHasBeenSet = true;
95 m_tags.emplace_back(std::forward<TagsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_name;
101
102 Aws::String m_eventSourceName;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_nameHasBeenSet = false;
106 bool m_eventSourceNameHasBeenSet = false;
107 bool m_tagsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CloudWatchEvents
112} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHEVENTS_API CreateEventBusRequest()=default
CreateEventBusRequest & WithTags(TagsT &&value)
CreateEventBusRequest & WithName(NameT &&value)
CreateEventBusRequest & WithEventSourceName(EventSourceNameT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() 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