AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CreateEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CreateEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CreateEndpointRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline CreateEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
75 inline const RoutingConfig& GetRoutingConfig() const{ return m_routingConfig; }
76 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
77 inline void SetRoutingConfig(const RoutingConfig& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
78 inline void SetRoutingConfig(RoutingConfig&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
79 inline CreateEndpointRequest& WithRoutingConfig(const RoutingConfig& value) { SetRoutingConfig(value); return *this;}
80 inline CreateEndpointRequest& WithRoutingConfig(RoutingConfig&& value) { SetRoutingConfig(std::move(value)); return *this;}
82
84
90 inline const ReplicationConfig& GetReplicationConfig() const{ return m_replicationConfig; }
91 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
92 inline void SetReplicationConfig(const ReplicationConfig& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = value; }
93 inline void SetReplicationConfig(ReplicationConfig&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::move(value); }
95 inline CreateEndpointRequest& WithReplicationConfig(ReplicationConfig&& value) { SetReplicationConfig(std::move(value)); return *this;}
97
99
103 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const{ return m_eventBuses; }
104 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
105 inline void SetEventBuses(const Aws::Vector<EndpointEventBus>& value) { m_eventBusesHasBeenSet = true; m_eventBuses = value; }
106 inline void SetEventBuses(Aws::Vector<EndpointEventBus>&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::move(value); }
108 inline CreateEndpointRequest& WithEventBuses(Aws::Vector<EndpointEventBus>&& value) { SetEventBuses(std::move(value)); return *this;}
109 inline CreateEndpointRequest& AddEventBuses(const EndpointEventBus& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(value); return *this; }
110 inline CreateEndpointRequest& AddEventBuses(EndpointEventBus&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(std::move(value)); return *this; }
112
114
117 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
118 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
119 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
120 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
121 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
122 inline CreateEndpointRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
123 inline CreateEndpointRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
124 inline CreateEndpointRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 RoutingConfig m_routingConfig;
135 bool m_routingConfigHasBeenSet = false;
136
137 ReplicationConfig m_replicationConfig;
138 bool m_replicationConfigHasBeenSet = false;
139
141 bool m_eventBusesHasBeenSet = false;
142
143 Aws::String m_roleArn;
144 bool m_roleArnHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EventBridge
149} // namespace Aws
CreateEndpointRequest & WithRoleArn(const char *value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEndpointRequest & WithRoleArn(Aws::String &&value)
CreateEndpointRequest & WithReplicationConfig(const ReplicationConfig &value)
const ReplicationConfig & GetReplicationConfig() const
void SetReplicationConfig(const ReplicationConfig &value)
void SetEventBuses(Aws::Vector< EndpointEventBus > &&value)
void SetRoutingConfig(const RoutingConfig &value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
void SetEventBuses(const Aws::Vector< EndpointEventBus > &value)
CreateEndpointRequest & WithReplicationConfig(ReplicationConfig &&value)
virtual const char * GetServiceRequestName() const override
CreateEndpointRequest & WithEventBuses(Aws::Vector< EndpointEventBus > &&value)
CreateEndpointRequest & WithDescription(const char *value)
CreateEndpointRequest & WithRoutingConfig(RoutingConfig &&value)
CreateEndpointRequest & WithName(const char *value)
CreateEndpointRequest & WithDescription(Aws::String &&value)
CreateEndpointRequest & WithName(Aws::String &&value)
CreateEndpointRequest & WithDescription(const Aws::String &value)
CreateEndpointRequest & AddEventBuses(EndpointEventBus &&value)
void SetReplicationConfig(ReplicationConfig &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
CreateEndpointRequest & WithRoleArn(const Aws::String &value)
CreateEndpointRequest & WithRoutingConfig(const RoutingConfig &value)
CreateEndpointRequest & WithEventBuses(const Aws::Vector< EndpointEventBus > &value)
CreateEndpointRequest & AddEventBuses(const EndpointEventBus &value)
CreateEndpointRequest & WithName(const Aws::String &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