AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRouteServerEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateRouteServerEndpointRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRouteServerEndpoint"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetRouteServerId() const { return m_routeServerId; }
43 inline bool RouteServerIdHasBeenSet() const { return m_routeServerIdHasBeenSet; }
44 template <typename RouteServerIdT = Aws::String>
45 void SetRouteServerId(RouteServerIdT&& value) {
46 m_routeServerIdHasBeenSet = true;
47 m_routeServerId = std::forward<RouteServerIdT>(value);
48 }
49 template <typename RouteServerIdT = Aws::String>
51 SetRouteServerId(std::forward<RouteServerIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
61 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
62 template <typename SubnetIdT = Aws::String>
63 void SetSubnetId(SubnetIdT&& value) {
64 m_subnetIdHasBeenSet = true;
65 m_subnetId = std::forward<SubnetIdT>(value);
66 }
67 template <typename SubnetIdT = Aws::String>
69 SetSubnetId(std::forward<SubnetIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template <typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) {
82 m_clientTokenHasBeenSet = true;
83 m_clientToken = std::forward<ClientTokenT>(value);
84 }
85 template <typename ClientTokenT = Aws::String>
87 SetClientToken(std::forward<ClientTokenT>(value));
88 return *this;
89 }
91
93
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) {
102 m_dryRunHasBeenSet = true;
103 m_dryRun = value;
104 }
106 SetDryRun(value);
107 return *this;
108 }
110
112
115 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
116 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
117 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
118 void SetTagSpecifications(TagSpecificationsT&& value) {
119 m_tagSpecificationsHasBeenSet = true;
120 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
121 }
122 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
124 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
125 return *this;
126 }
127 template <typename TagSpecificationsT = TagSpecification>
129 m_tagSpecificationsHasBeenSet = true;
130 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_routeServerId;
136
137 Aws::String m_subnetId;
138
140
141 bool m_dryRun{false};
142
143 Aws::Vector<TagSpecification> m_tagSpecifications;
144 bool m_routeServerIdHasBeenSet = false;
145 bool m_subnetIdHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147 bool m_dryRunHasBeenSet = false;
148 bool m_tagSpecificationsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateRouteServerEndpointRequest & WithRouteServerId(RouteServerIdT &&value)
CreateRouteServerEndpointRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateRouteServerEndpointRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateRouteServerEndpointRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateRouteServerEndpointRequest & WithSubnetId(SubnetIdT &&value)
CreateRouteServerEndpointRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector