AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline UpdateEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline UpdateEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline UpdateEndpointRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline UpdateEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline UpdateEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline UpdateEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
74 inline const RoutingConfig& GetRoutingConfig() const{ return m_routingConfig; }
75 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
76 inline void SetRoutingConfig(const RoutingConfig& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
77 inline void SetRoutingConfig(RoutingConfig&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
78 inline UpdateEndpointRequest& WithRoutingConfig(const RoutingConfig& value) { SetRoutingConfig(value); return *this;}
79 inline UpdateEndpointRequest& WithRoutingConfig(RoutingConfig&& value) { SetRoutingConfig(std::move(value)); return *this;}
81
83
86 inline const ReplicationConfig& GetReplicationConfig() const{ return m_replicationConfig; }
87 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
88 inline void SetReplicationConfig(const ReplicationConfig& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = value; }
89 inline void SetReplicationConfig(ReplicationConfig&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::move(value); }
91 inline UpdateEndpointRequest& WithReplicationConfig(ReplicationConfig&& value) { SetReplicationConfig(std::move(value)); return *this;}
93
95
98 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const{ return m_eventBuses; }
99 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
100 inline void SetEventBuses(const Aws::Vector<EndpointEventBus>& value) { m_eventBusesHasBeenSet = true; m_eventBuses = value; }
101 inline void SetEventBuses(Aws::Vector<EndpointEventBus>&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::move(value); }
103 inline UpdateEndpointRequest& WithEventBuses(Aws::Vector<EndpointEventBus>&& value) { SetEventBuses(std::move(value)); return *this;}
104 inline UpdateEndpointRequest& AddEventBuses(const EndpointEventBus& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(value); return *this; }
105 inline UpdateEndpointRequest& AddEventBuses(EndpointEventBus&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(std::move(value)); return *this; }
107
109
112 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
113 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
114 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
115 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
116 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
117 inline UpdateEndpointRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
118 inline UpdateEndpointRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
119 inline UpdateEndpointRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 RoutingConfig m_routingConfig;
130 bool m_routingConfigHasBeenSet = false;
131
132 ReplicationConfig m_replicationConfig;
133 bool m_replicationConfigHasBeenSet = false;
134
136 bool m_eventBusesHasBeenSet = false;
137
138 Aws::String m_roleArn;
139 bool m_roleArnHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace EventBridge
144} // namespace Aws
UpdateEndpointRequest & WithReplicationConfig(const ReplicationConfig &value)
void SetEventBuses(const Aws::Vector< EndpointEventBus > &value)
UpdateEndpointRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateEndpointRequest & AddEventBuses(const EndpointEventBus &value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
void SetReplicationConfig(ReplicationConfig &&value)
UpdateEndpointRequest & WithName(Aws::String &&value)
UpdateEndpointRequest & WithEventBuses(const Aws::Vector< EndpointEventBus > &value)
UpdateEndpointRequest & WithRoleArn(Aws::String &&value)
UpdateEndpointRequest & WithName(const char *value)
UpdateEndpointRequest & WithReplicationConfig(ReplicationConfig &&value)
UpdateEndpointRequest & WithDescription(Aws::String &&value)
UpdateEndpointRequest & WithRoleArn(const Aws::String &value)
void SetReplicationConfig(const ReplicationConfig &value)
UpdateEndpointRequest & WithRoleArn(const char *value)
UpdateEndpointRequest & WithRoutingConfig(RoutingConfig &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEndpointRequest & AddEventBuses(EndpointEventBus &&value)
void SetEventBuses(Aws::Vector< EndpointEventBus > &&value)
UpdateEndpointRequest & WithDescription(const char *value)
UpdateEndpointRequest & WithEventBuses(Aws::Vector< EndpointEventBus > &&value)
UpdateEndpointRequest & WithName(const Aws::String &value)
UpdateEndpointRequest & WithRoutingConfig(const RoutingConfig &value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
const ReplicationConfig & GetReplicationConfig() const
void SetRoutingConfig(const RoutingConfig &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