AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateEndpointRequest.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 UpdateEndpointRequest() = 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 "UpdateEndpoint"; }
32
33 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 UpdateEndpointRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
79 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
80 template <typename RoutingConfigT = RoutingConfig>
81 void SetRoutingConfig(RoutingConfigT&& value) {
82 m_routingConfigHasBeenSet = true;
83 m_routingConfig = std::forward<RoutingConfigT>(value);
84 }
85 template <typename RoutingConfigT = RoutingConfig>
86 UpdateEndpointRequest& WithRoutingConfig(RoutingConfigT&& value) {
87 SetRoutingConfig(std::forward<RoutingConfigT>(value));
88 return *this;
89 }
91
93
96 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
97 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
98 template <typename ReplicationConfigT = ReplicationConfig>
99 void SetReplicationConfig(ReplicationConfigT&& value) {
100 m_replicationConfigHasBeenSet = true;
101 m_replicationConfig = std::forward<ReplicationConfigT>(value);
102 }
103 template <typename ReplicationConfigT = ReplicationConfig>
104 UpdateEndpointRequest& WithReplicationConfig(ReplicationConfigT&& value) {
105 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
115 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
116 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
117 void SetEventBuses(EventBusesT&& value) {
118 m_eventBusesHasBeenSet = true;
119 m_eventBuses = std::forward<EventBusesT>(value);
120 }
121 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
122 UpdateEndpointRequest& WithEventBuses(EventBusesT&& value) {
123 SetEventBuses(std::forward<EventBusesT>(value));
124 return *this;
125 }
126 template <typename EventBusesT = EndpointEventBus>
127 UpdateEndpointRequest& AddEventBuses(EventBusesT&& value) {
128 m_eventBusesHasBeenSet = true;
129 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
139 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
140 template <typename RoleArnT = Aws::String>
141 void SetRoleArn(RoleArnT&& value) {
142 m_roleArnHasBeenSet = true;
143 m_roleArn = std::forward<RoleArnT>(value);
144 }
145 template <typename RoleArnT = Aws::String>
147 SetRoleArn(std::forward<RoleArnT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_name;
153
154 Aws::String m_description;
155
156 RoutingConfig m_routingConfig;
157
158 ReplicationConfig m_replicationConfig;
159
161
162 Aws::String m_roleArn;
163 bool m_nameHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_routingConfigHasBeenSet = false;
166 bool m_replicationConfigHasBeenSet = false;
167 bool m_eventBusesHasBeenSet = false;
168 bool m_roleArnHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace EventBridge
173} // namespace Aws
UpdateEndpointRequest & WithRoleArn(RoleArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateEndpointRequest & WithName(NameT &&value)
UpdateEndpointRequest & AddEventBuses(EventBusesT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
UpdateEndpointRequest & WithRoutingConfig(RoutingConfigT &&value)
UpdateEndpointRequest & WithEventBuses(EventBusesT &&value)
void SetReplicationConfig(ReplicationConfigT &&value)
AWS_EVENTBRIDGE_API UpdateEndpointRequest()=default
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEndpointRequest & WithReplicationConfig(ReplicationConfigT &&value)
UpdateEndpointRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
const ReplicationConfig & GetReplicationConfig() const
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