AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEndpointRequest.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 CreateEndpointRequest() = 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 "CreateEndpoint"; }
35
36 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
37
38 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateEndpointRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 CreateEndpointRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
71 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
72 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
73 template<typename RoutingConfigT = RoutingConfig>
74 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
75 template<typename RoutingConfigT = RoutingConfig>
76 CreateEndpointRequest& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
78
80
86 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
87 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
88 template<typename ReplicationConfigT = ReplicationConfig>
89 void SetReplicationConfig(ReplicationConfigT&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::forward<ReplicationConfigT>(value); }
90 template<typename ReplicationConfigT = ReplicationConfig>
91 CreateEndpointRequest& WithReplicationConfig(ReplicationConfigT&& value) { SetReplicationConfig(std::forward<ReplicationConfigT>(value)); return *this;}
93
95
99 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
100 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
101 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
102 void SetEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::forward<EventBusesT>(value); }
103 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
104 CreateEndpointRequest& WithEventBuses(EventBusesT&& value) { SetEventBuses(std::forward<EventBusesT>(value)); return *this;}
105 template<typename EventBusesT = EndpointEventBus>
106 CreateEndpointRequest& AddEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.emplace_back(std::forward<EventBusesT>(value)); return *this; }
108
110
113 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
114 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
115 template<typename RoleArnT = Aws::String>
116 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
117 template<typename RoleArnT = Aws::String>
118 CreateEndpointRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 RoutingConfig m_routingConfig;
129 bool m_routingConfigHasBeenSet = false;
130
131 ReplicationConfig m_replicationConfig;
132 bool m_replicationConfigHasBeenSet = false;
133
135 bool m_eventBusesHasBeenSet = false;
136
137 Aws::String m_roleArn;
138 bool m_roleArnHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EventBridge
143} // 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