AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateEndpointRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/model/RoutingConfig.h>
11#include <aws/eventbridge/model/ReplicationConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/eventbridge/model/EndpointEventBus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EventBridge
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EVENTBRIDGE_API UpdateEndpointRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpoint"; }
35
36 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
37
38 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 UpdateEndpointRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 UpdateEndpointRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
70 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
71 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
72 template<typename RoutingConfigT = RoutingConfig>
73 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
74 template<typename RoutingConfigT = RoutingConfig>
75 UpdateEndpointRequest& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
77
79
82 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
83 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
84 template<typename ReplicationConfigT = ReplicationConfig>
85 void SetReplicationConfig(ReplicationConfigT&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::forward<ReplicationConfigT>(value); }
86 template<typename ReplicationConfigT = ReplicationConfig>
87 UpdateEndpointRequest& WithReplicationConfig(ReplicationConfigT&& value) { SetReplicationConfig(std::forward<ReplicationConfigT>(value)); return *this;}
89
91
94 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
95 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
96 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
97 void SetEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::forward<EventBusesT>(value); }
98 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
99 UpdateEndpointRequest& WithEventBuses(EventBusesT&& value) { SetEventBuses(std::forward<EventBusesT>(value)); return *this;}
100 template<typename EventBusesT = EndpointEventBus>
101 UpdateEndpointRequest& AddEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.emplace_back(std::forward<EventBusesT>(value)); return *this; }
103
105
108 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
109 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
110 template<typename RoleArnT = Aws::String>
111 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
112 template<typename RoleArnT = Aws::String>
113 UpdateEndpointRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 RoutingConfig m_routingConfig;
124 bool m_routingConfigHasBeenSet = false;
125
126 ReplicationConfig m_replicationConfig;
127 bool m_replicationConfigHasBeenSet = false;
128
130 bool m_eventBusesHasBeenSet = false;
131
132 Aws::String m_roleArn;
133 bool m_roleArnHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace EventBridge
138} // 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