AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateEndpointRequest.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/eventbridge/EventBridgeRequest.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/EndpointEventBus.h>
12#include <aws/eventbridge/model/ReplicationConfig.h>
13#include <aws/eventbridge/model/RoutingConfig.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EventBridge {
19namespace Model {
20
24 public:
25 AWS_EVENTBRIDGE_API CreateEndpointRequest() = 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 "CreateEndpoint"; }
32
33 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 CreateEndpointRequest& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
79 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
80 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
81 template <typename RoutingConfigT = RoutingConfig>
82 void SetRoutingConfig(RoutingConfigT&& value) {
83 m_routingConfigHasBeenSet = true;
84 m_routingConfig = std::forward<RoutingConfigT>(value);
85 }
86 template <typename RoutingConfigT = RoutingConfig>
87 CreateEndpointRequest& WithRoutingConfig(RoutingConfigT&& value) {
88 SetRoutingConfig(std::forward<RoutingConfigT>(value));
89 return *this;
90 }
92
94
100 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
101 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
102 template <typename ReplicationConfigT = ReplicationConfig>
103 void SetReplicationConfig(ReplicationConfigT&& value) {
104 m_replicationConfigHasBeenSet = true;
105 m_replicationConfig = std::forward<ReplicationConfigT>(value);
106 }
107 template <typename ReplicationConfigT = ReplicationConfig>
108 CreateEndpointRequest& WithReplicationConfig(ReplicationConfigT&& value) {
109 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
120 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
121 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
122 void SetEventBuses(EventBusesT&& value) {
123 m_eventBusesHasBeenSet = true;
124 m_eventBuses = std::forward<EventBusesT>(value);
125 }
126 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
127 CreateEndpointRequest& WithEventBuses(EventBusesT&& value) {
128 SetEventBuses(std::forward<EventBusesT>(value));
129 return *this;
130 }
131 template <typename EventBusesT = EndpointEventBus>
132 CreateEndpointRequest& AddEventBuses(EventBusesT&& value) {
133 m_eventBusesHasBeenSet = true;
134 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
144 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
145 template <typename RoleArnT = Aws::String>
146 void SetRoleArn(RoleArnT&& value) {
147 m_roleArnHasBeenSet = true;
148 m_roleArn = std::forward<RoleArnT>(value);
149 }
150 template <typename RoleArnT = Aws::String>
152 SetRoleArn(std::forward<RoleArnT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_name;
158
159 Aws::String m_description;
160
161 RoutingConfig m_routingConfig;
162
163 ReplicationConfig m_replicationConfig;
164
166
167 Aws::String m_roleArn;
168 bool m_nameHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_routingConfigHasBeenSet = false;
171 bool m_replicationConfigHasBeenSet = false;
172 bool m_eventBusesHasBeenSet = false;
173 bool m_roleArnHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace EventBridge
178} // namespace Aws
CreateEndpointRequest & WithEventBuses(EventBusesT &&value)
CreateEndpointRequest & WithName(NameT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ReplicationConfig & GetReplicationConfig() const
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
CreateEndpointRequest & WithRoutingConfig(RoutingConfigT &&value)
void SetReplicationConfig(ReplicationConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateEndpointRequest & WithRoleArn(RoleArnT &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
CreateEndpointRequest & WithDescription(DescriptionT &&value)
CreateEndpointRequest & AddEventBuses(EventBusesT &&value)
AWS_EVENTBRIDGE_API CreateEndpointRequest()=default
CreateEndpointRequest & WithReplicationConfig(ReplicationConfigT &&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