AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3outposts/S3OutpostsRequest.h>
9#include <aws/s3outposts/S3Outposts_EXPORTS.h>
10#include <aws/s3outposts/model/EndpointAccessType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Outposts {
16namespace Model {
17
21 public:
22 AWS_S3OUTPOSTS_API CreateEndpointRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateEndpoint"; }
29
30 AWS_S3OUTPOSTS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
37 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
38 template <typename OutpostIdT = Aws::String>
39 void SetOutpostId(OutpostIdT&& value) {
40 m_outpostIdHasBeenSet = true;
41 m_outpostId = std::forward<OutpostIdT>(value);
42 }
43 template <typename OutpostIdT = Aws::String>
44 CreateEndpointRequest& WithOutpostId(OutpostIdT&& value) {
45 SetOutpostId(std::forward<OutpostIdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
56 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
57 template <typename SubnetIdT = Aws::String>
58 void SetSubnetId(SubnetIdT&& value) {
59 m_subnetIdHasBeenSet = true;
60 m_subnetId = std::forward<SubnetIdT>(value);
61 }
62 template <typename SubnetIdT = Aws::String>
63 CreateEndpointRequest& WithSubnetId(SubnetIdT&& value) {
64 SetSubnetId(std::forward<SubnetIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
74 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
75 template <typename SecurityGroupIdT = Aws::String>
76 void SetSecurityGroupId(SecurityGroupIdT&& value) {
77 m_securityGroupIdHasBeenSet = true;
78 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
79 }
80 template <typename SecurityGroupIdT = Aws::String>
81 CreateEndpointRequest& WithSecurityGroupId(SecurityGroupIdT&& value) {
82 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
83 return *this;
84 }
86
88
96 inline EndpointAccessType GetAccessType() const { return m_accessType; }
97 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
98 inline void SetAccessType(EndpointAccessType value) {
99 m_accessTypeHasBeenSet = true;
100 m_accessType = value;
101 }
103 SetAccessType(value);
104 return *this;
105 }
107
109
113 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
114 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
115 template <typename CustomerOwnedIpv4PoolT = Aws::String>
116 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
117 m_customerOwnedIpv4PoolHasBeenSet = true;
118 m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value);
119 }
120 template <typename CustomerOwnedIpv4PoolT = Aws::String>
121 CreateEndpointRequest& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
122 SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_outpostId;
128
129 Aws::String m_subnetId;
130
131 Aws::String m_securityGroupId;
132
134
135 Aws::String m_customerOwnedIpv4Pool;
136 bool m_outpostIdHasBeenSet = false;
137 bool m_subnetIdHasBeenSet = false;
138 bool m_securityGroupIdHasBeenSet = false;
139 bool m_accessTypeHasBeenSet = false;
140 bool m_customerOwnedIpv4PoolHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace S3Outposts
145} // namespace Aws
CreateEndpointRequest & WithSecurityGroupId(SecurityGroupIdT &&value)
AWS_S3OUTPOSTS_API Aws::String SerializePayload() const override
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
CreateEndpointRequest & WithSubnetId(SubnetIdT &&value)
AWS_S3OUTPOSTS_API CreateEndpointRequest()=default
CreateEndpointRequest & WithOutpostId(OutpostIdT &&value)
CreateEndpointRequest & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
virtual const char * GetServiceRequestName() const override
CreateEndpointRequest & WithAccessType(EndpointAccessType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String