AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
43 inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
44 inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
45 inline CreateEndpointRequest& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
46 inline CreateEndpointRequest& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
47 inline CreateEndpointRequest& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
49
51
55 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
56 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
57 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
58 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
59 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
60 inline CreateEndpointRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
61 inline CreateEndpointRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
62 inline CreateEndpointRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
64
66
69 inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; }
70 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
71 inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; }
72 inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); }
73 inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); }
74 inline CreateEndpointRequest& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;}
75 inline CreateEndpointRequest& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;}
76 inline CreateEndpointRequest& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;}
78
80
88 inline const EndpointAccessType& GetAccessType() const{ return m_accessType; }
89 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
90 inline void SetAccessType(const EndpointAccessType& value) { m_accessTypeHasBeenSet = true; m_accessType = value; }
91 inline void SetAccessType(EndpointAccessType&& value) { m_accessTypeHasBeenSet = true; m_accessType = std::move(value); }
92 inline CreateEndpointRequest& WithAccessType(const EndpointAccessType& value) { SetAccessType(value); return *this;}
93 inline CreateEndpointRequest& WithAccessType(EndpointAccessType&& value) { SetAccessType(std::move(value)); return *this;}
95
97
101 inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
102 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
103 inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
104 inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
105 inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
107 inline CreateEndpointRequest& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
108 inline CreateEndpointRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
110 private:
111
112 Aws::String m_outpostId;
113 bool m_outpostIdHasBeenSet = false;
114
115 Aws::String m_subnetId;
116 bool m_subnetIdHasBeenSet = false;
117
118 Aws::String m_securityGroupId;
119 bool m_securityGroupIdHasBeenSet = false;
120
121 EndpointAccessType m_accessType;
122 bool m_accessTypeHasBeenSet = false;
123
124 Aws::String m_customerOwnedIpv4Pool;
125 bool m_customerOwnedIpv4PoolHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace S3Outposts
130} // namespace Aws
CreateEndpointRequest & WithOutpostId(const char *value)
void SetAccessType(const EndpointAccessType &value)
CreateEndpointRequest & WithSecurityGroupId(Aws::String &&value)
CreateEndpointRequest & WithSubnetId(Aws::String &&value)
CreateEndpointRequest & WithSecurityGroupId(const Aws::String &value)
CreateEndpointRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
CreateEndpointRequest & WithCustomerOwnedIpv4Pool(const char *value)
const EndpointAccessType & GetAccessType() const
CreateEndpointRequest & WithOutpostId(const Aws::String &value)
CreateEndpointRequest & WithAccessType(const EndpointAccessType &value)
AWS_S3OUTPOSTS_API Aws::String SerializePayload() const override
CreateEndpointRequest & WithAccessType(EndpointAccessType &&value)
CreateEndpointRequest & WithOutpostId(Aws::String &&value)
CreateEndpointRequest & WithSubnetId(const char *value)
CreateEndpointRequest & WithSubnetId(const Aws::String &value)
CreateEndpointRequest & WithCustomerOwnedIpv4Pool(const Aws::String &value)
void SetCustomerOwnedIpv4Pool(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateEndpointRequest & WithSecurityGroupId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String