AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
EndpointDetails.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Transfer {
21namespace Model {
22
47 public:
48 AWS_TRANSFER_API EndpointDetails() = default;
49 AWS_TRANSFER_API EndpointDetails(Aws::Utils::Json::JsonView jsonValue);
51 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
52
54
81 inline const Aws::Vector<Aws::String>& GetAddressAllocationIds() const { return m_addressAllocationIds; }
82 inline bool AddressAllocationIdsHasBeenSet() const { return m_addressAllocationIdsHasBeenSet; }
83 template <typename AddressAllocationIdsT = Aws::Vector<Aws::String>>
84 void SetAddressAllocationIds(AddressAllocationIdsT&& value) {
85 m_addressAllocationIdsHasBeenSet = true;
86 m_addressAllocationIds = std::forward<AddressAllocationIdsT>(value);
87 }
88 template <typename AddressAllocationIdsT = Aws::Vector<Aws::String>>
89 EndpointDetails& WithAddressAllocationIds(AddressAllocationIdsT&& value) {
90 SetAddressAllocationIds(std::forward<AddressAllocationIdsT>(value));
91 return *this;
92 }
93 template <typename AddressAllocationIdsT = Aws::String>
94 EndpointDetails& AddAddressAllocationIds(AddressAllocationIdsT&& value) {
95 m_addressAllocationIdsHasBeenSet = true;
96 m_addressAllocationIds.emplace_back(std::forward<AddressAllocationIdsT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
108 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
109 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
110 void SetSubnetIds(SubnetIdsT&& value) {
111 m_subnetIdsHasBeenSet = true;
112 m_subnetIds = std::forward<SubnetIdsT>(value);
113 }
114 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
115 EndpointDetails& WithSubnetIds(SubnetIdsT&& value) {
116 SetSubnetIds(std::forward<SubnetIdsT>(value));
117 return *this;
118 }
119 template <typename SubnetIdsT = Aws::String>
120 EndpointDetails& AddSubnetIds(SubnetIdsT&& value) {
121 m_subnetIdsHasBeenSet = true;
122 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
123 return *this;
124 }
126
128
135 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
136 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
137 template <typename VpcEndpointIdT = Aws::String>
138 void SetVpcEndpointId(VpcEndpointIdT&& value) {
139 m_vpcEndpointIdHasBeenSet = true;
140 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
141 }
142 template <typename VpcEndpointIdT = Aws::String>
143 EndpointDetails& WithVpcEndpointId(VpcEndpointIdT&& value) {
144 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetVpcId() const { return m_vpcId; }
156 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
157 template <typename VpcIdT = Aws::String>
158 void SetVpcId(VpcIdT&& value) {
159 m_vpcIdHasBeenSet = true;
160 m_vpcId = std::forward<VpcIdT>(value);
161 }
162 template <typename VpcIdT = Aws::String>
163 EndpointDetails& WithVpcId(VpcIdT&& value) {
164 SetVpcId(std::forward<VpcIdT>(value));
165 return *this;
166 }
168
170
190 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
191 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
192 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
193 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
194 m_securityGroupIdsHasBeenSet = true;
195 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
196 }
197 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
198 EndpointDetails& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
199 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
200 return *this;
201 }
202 template <typename SecurityGroupIdsT = Aws::String>
203 EndpointDetails& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
204 m_securityGroupIdsHasBeenSet = true;
205 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
206 return *this;
207 }
209 private:
210 Aws::Vector<Aws::String> m_addressAllocationIds;
211
212 Aws::Vector<Aws::String> m_subnetIds;
213
214 Aws::String m_vpcEndpointId;
215
216 Aws::String m_vpcId;
217
218 Aws::Vector<Aws::String> m_securityGroupIds;
219 bool m_addressAllocationIdsHasBeenSet = false;
220 bool m_subnetIdsHasBeenSet = false;
221 bool m_vpcEndpointIdHasBeenSet = false;
222 bool m_vpcIdHasBeenSet = false;
223 bool m_securityGroupIdsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace Transfer
228} // namespace Aws
AWS_TRANSFER_API EndpointDetails(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetAddressAllocationIds() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
EndpointDetails & AddSubnetIds(SubnetIdsT &&value)
EndpointDetails & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetVpcEndpointId(VpcEndpointIdT &&value)
EndpointDetails & WithVpcId(VpcIdT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSFER_API EndpointDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
const Aws::String & GetVpcId() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::String & GetVpcEndpointId() const
EndpointDetails & WithAddressAllocationIds(AddressAllocationIdsT &&value)
EndpointDetails & WithSubnetIds(SubnetIdsT &&value)
AWS_TRANSFER_API EndpointDetails()=default
EndpointDetails & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetAddressAllocationIds(AddressAllocationIdsT &&value)
EndpointDetails & AddAddressAllocationIds(AddressAllocationIdsT &&value)
EndpointDetails & WithVpcEndpointId(VpcEndpointIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue