AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEndpointRequest.h
1
6#pragma once
7#include <aws/s3outposts/S3Outposts_EXPORTS.h>
8#include <aws/s3outposts/S3OutpostsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3outposts/model/EndpointAccessType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Outposts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3OUTPOSTS_API CreateEndpointRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateEndpoint"; }
32
33 AWS_S3OUTPOSTS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
41 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
42 template<typename OutpostIdT = Aws::String>
43 void SetOutpostId(OutpostIdT&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::forward<OutpostIdT>(value); }
44 template<typename OutpostIdT = Aws::String>
45 CreateEndpointRequest& WithOutpostId(OutpostIdT&& value) { SetOutpostId(std::forward<OutpostIdT>(value)); return *this;}
47
49
53 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
54 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
55 template<typename SubnetIdT = Aws::String>
56 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
57 template<typename SubnetIdT = Aws::String>
58 CreateEndpointRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
66 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
67 template<typename SecurityGroupIdT = Aws::String>
68 void SetSecurityGroupId(SecurityGroupIdT&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::forward<SecurityGroupIdT>(value); }
69 template<typename SecurityGroupIdT = Aws::String>
70 CreateEndpointRequest& WithSecurityGroupId(SecurityGroupIdT&& value) { SetSecurityGroupId(std::forward<SecurityGroupIdT>(value)); return *this;}
72
74
82 inline EndpointAccessType GetAccessType() const { return m_accessType; }
83 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
84 inline void SetAccessType(EndpointAccessType value) { m_accessTypeHasBeenSet = true; m_accessType = value; }
87
89
93 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
94 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
95 template<typename CustomerOwnedIpv4PoolT = Aws::String>
96 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value); }
97 template<typename CustomerOwnedIpv4PoolT = Aws::String>
98 CreateEndpointRequest& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value)); return *this;}
100 private:
101
102 Aws::String m_outpostId;
103 bool m_outpostIdHasBeenSet = false;
104
105 Aws::String m_subnetId;
106 bool m_subnetIdHasBeenSet = false;
107
108 Aws::String m_securityGroupId;
109 bool m_securityGroupIdHasBeenSet = false;
110
112 bool m_accessTypeHasBeenSet = false;
113
114 Aws::String m_customerOwnedIpv4Pool;
115 bool m_customerOwnedIpv4PoolHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace S3Outposts
120} // 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