AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRouteServerEndpointRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API CreateRouteServerEndpointRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRouteServerEndpoint"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetRouteServerId() const { return m_routeServerId; }
47 inline bool RouteServerIdHasBeenSet() const { return m_routeServerIdHasBeenSet; }
48 template<typename RouteServerIdT = Aws::String>
49 void SetRouteServerId(RouteServerIdT&& value) { m_routeServerIdHasBeenSet = true; m_routeServerId = std::forward<RouteServerIdT>(value); }
50 template<typename RouteServerIdT = Aws::String>
51 CreateRouteServerEndpointRequest& WithRouteServerId(RouteServerIdT&& value) { SetRouteServerId(std::forward<RouteServerIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
59 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
60 template<typename SubnetIdT = Aws::String>
61 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
62 template<typename SubnetIdT = Aws::String>
63 CreateRouteServerEndpointRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetClientToken() const { return m_clientToken; }
71 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
72 template<typename ClientTokenT = Aws::String>
73 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
74 template<typename ClientTokenT = Aws::String>
75 CreateRouteServerEndpointRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
77
79
85 inline bool GetDryRun() const { return m_dryRun; }
86 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
87 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
88 inline CreateRouteServerEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
90
92
95 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
96 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
97 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
98 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
99 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
100 CreateRouteServerEndpointRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
101 template<typename TagSpecificationsT = TagSpecification>
102 CreateRouteServerEndpointRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
104 private:
105
106 Aws::String m_routeServerId;
107 bool m_routeServerIdHasBeenSet = false;
108
109 Aws::String m_subnetId;
110 bool m_subnetIdHasBeenSet = false;
111
113 bool m_clientTokenHasBeenSet = true;
114
115 bool m_dryRun{false};
116 bool m_dryRunHasBeenSet = false;
117
118 Aws::Vector<TagSpecification> m_tagSpecifications;
119 bool m_tagSpecificationsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace EC2
124} // 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