AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventBusRequest.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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHEVENTS_API CreateEventBusRequest() = default;
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 "CreateEventBus"; }
33
34 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateEventBusRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetEventSourceName() const { return m_eventSourceName; }
61 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
62 template<typename EventSourceNameT = Aws::String>
63 void SetEventSourceName(EventSourceNameT&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::forward<EventSourceNameT>(value); }
64 template<typename EventSourceNameT = Aws::String>
65 CreateEventBusRequest& WithEventSourceName(EventSourceNameT&& value) { SetEventSourceName(std::forward<EventSourceNameT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template<typename TagsT = Aws::Vector<Tag>>
75 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
76 template<typename TagsT = Aws::Vector<Tag>>
77 CreateEventBusRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
78 template<typename TagsT = Tag>
79 CreateEventBusRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 Aws::String m_eventSourceName;
87 bool m_eventSourceNameHasBeenSet = false;
88
89 Aws::Vector<Tag> m_tags;
90 bool m_tagsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudWatchEvents
95} // 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