AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetAccessPointResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/S3Control_EXPORTS.h>
11#include <aws/s3control/model/NetworkOrigin.h>
12#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
13#include <aws/s3control/model/VpcConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3Control {
27namespace Model {
29 public:
30 AWS_S3CONTROL_API GetAccessPointResult() = default;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetBucket() const { return m_bucket; }
56 template <typename BucketT = Aws::String>
57 void SetBucket(BucketT&& value) {
58 m_bucketHasBeenSet = true;
59 m_bucket = std::forward<BucketT>(value);
60 }
61 template <typename BucketT = Aws::String>
62 GetAccessPointResult& WithBucket(BucketT&& value) {
63 SetBucket(std::forward<BucketT>(value));
64 return *this;
65 }
67
69
78 inline NetworkOrigin GetNetworkOrigin() const { return m_networkOrigin; }
79 inline void SetNetworkOrigin(NetworkOrigin value) {
80 m_networkOriginHasBeenSet = true;
81 m_networkOrigin = value;
82 }
84 SetNetworkOrigin(value);
85 return *this;
86 }
88
90
96 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
97 template <typename VpcConfigurationT = VpcConfiguration>
98 void SetVpcConfiguration(VpcConfigurationT&& value) {
99 m_vpcConfigurationHasBeenSet = true;
100 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
101 }
102 template <typename VpcConfigurationT = VpcConfiguration>
103 GetAccessPointResult& WithVpcConfiguration(VpcConfigurationT&& value) {
104 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
105 return *this;
106 }
108
110
111 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
112 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
113 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
114 m_publicAccessBlockConfigurationHasBeenSet = true;
115 m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value);
116 }
117 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
118 GetAccessPointResult& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
119 SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
129 template <typename CreationDateT = Aws::Utils::DateTime>
130 void SetCreationDate(CreationDateT&& value) {
131 m_creationDateHasBeenSet = true;
132 m_creationDate = std::forward<CreationDateT>(value);
133 }
134 template <typename CreationDateT = Aws::Utils::DateTime>
135 GetAccessPointResult& WithCreationDate(CreationDateT&& value) {
136 SetCreationDate(std::forward<CreationDateT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetAlias() const { return m_alias; }
146 template <typename AliasT = Aws::String>
147 void SetAlias(AliasT&& value) {
148 m_aliasHasBeenSet = true;
149 m_alias = std::forward<AliasT>(value);
150 }
151 template <typename AliasT = Aws::String>
153 SetAlias(std::forward<AliasT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetAccessPointArn() const { return m_accessPointArn; }
163 template <typename AccessPointArnT = Aws::String>
164 void SetAccessPointArn(AccessPointArnT&& value) {
165 m_accessPointArnHasBeenSet = true;
166 m_accessPointArn = std::forward<AccessPointArnT>(value);
167 }
168 template <typename AccessPointArnT = Aws::String>
169 GetAccessPointResult& WithAccessPointArn(AccessPointArnT&& value) {
170 SetAccessPointArn(std::forward<AccessPointArnT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Map<Aws::String, Aws::String>& GetEndpoints() const { return m_endpoints; }
180 template <typename EndpointsT = Aws::Map<Aws::String, Aws::String>>
181 void SetEndpoints(EndpointsT&& value) {
182 m_endpointsHasBeenSet = true;
183 m_endpoints = std::forward<EndpointsT>(value);
184 }
185 template <typename EndpointsT = Aws::Map<Aws::String, Aws::String>>
186 GetAccessPointResult& WithEndpoints(EndpointsT&& value) {
187 SetEndpoints(std::forward<EndpointsT>(value));
188 return *this;
189 }
190 template <typename EndpointsKeyT = Aws::String, typename EndpointsValueT = Aws::String>
191 GetAccessPointResult& AddEndpoints(EndpointsKeyT&& key, EndpointsValueT&& value) {
192 m_endpointsHasBeenSet = true;
193 m_endpoints.emplace(std::forward<EndpointsKeyT>(key), std::forward<EndpointsValueT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
204 template <typename BucketAccountIdT = Aws::String>
205 void SetBucketAccountId(BucketAccountIdT&& value) {
206 m_bucketAccountIdHasBeenSet = true;
207 m_bucketAccountId = std::forward<BucketAccountIdT>(value);
208 }
209 template <typename BucketAccountIdT = Aws::String>
210 GetAccessPointResult& WithBucketAccountId(BucketAccountIdT&& value) {
211 SetBucketAccountId(std::forward<BucketAccountIdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
221 template <typename DataSourceIdT = Aws::String>
222 void SetDataSourceId(DataSourceIdT&& value) {
223 m_dataSourceIdHasBeenSet = true;
224 m_dataSourceId = std::forward<DataSourceIdT>(value);
225 }
226 template <typename DataSourceIdT = Aws::String>
227 GetAccessPointResult& WithDataSourceId(DataSourceIdT&& value) {
228 SetDataSourceId(std::forward<DataSourceIdT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetDataSourceType() const { return m_dataSourceType; }
238 template <typename DataSourceTypeT = Aws::String>
239 void SetDataSourceType(DataSourceTypeT&& value) {
240 m_dataSourceTypeHasBeenSet = true;
241 m_dataSourceType = std::forward<DataSourceTypeT>(value);
242 }
243 template <typename DataSourceTypeT = Aws::String>
244 GetAccessPointResult& WithDataSourceType(DataSourceTypeT&& value) {
245 SetDataSourceType(std::forward<DataSourceTypeT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::String& GetRequestId() const { return m_requestId; }
255 template <typename RequestIdT = Aws::String>
256 void SetRequestId(RequestIdT&& value) {
257 m_requestIdHasBeenSet = true;
258 m_requestId = std::forward<RequestIdT>(value);
259 }
260 template <typename RequestIdT = Aws::String>
261 GetAccessPointResult& WithRequestId(RequestIdT&& value) {
262 SetRequestId(std::forward<RequestIdT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::String& GetHostId() const { return m_hostId; }
272 template <typename HostIdT = Aws::String>
273 void SetHostId(HostIdT&& value) {
274 m_hostIdHasBeenSet = true;
275 m_hostId = std::forward<HostIdT>(value);
276 }
277 template <typename HostIdT = Aws::String>
279 SetHostId(std::forward<HostIdT>(value));
280 return *this;
281 }
283 private:
284 Aws::String m_name;
285
286 Aws::String m_bucket;
287
288 NetworkOrigin m_networkOrigin{NetworkOrigin::NOT_SET};
289
290 VpcConfiguration m_vpcConfiguration;
291
292 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
293
294 Aws::Utils::DateTime m_creationDate{};
295
296 Aws::String m_alias;
297
298 Aws::String m_accessPointArn;
299
301
302 Aws::String m_bucketAccountId;
303
304 Aws::String m_dataSourceId;
305
306 Aws::String m_dataSourceType;
307
308 Aws::String m_requestId;
309
310 Aws::String m_hostId;
311 bool m_nameHasBeenSet = false;
312 bool m_bucketHasBeenSet = false;
313 bool m_networkOriginHasBeenSet = false;
314 bool m_vpcConfigurationHasBeenSet = false;
315 bool m_publicAccessBlockConfigurationHasBeenSet = false;
316 bool m_creationDateHasBeenSet = false;
317 bool m_aliasHasBeenSet = false;
318 bool m_accessPointArnHasBeenSet = false;
319 bool m_endpointsHasBeenSet = false;
320 bool m_bucketAccountIdHasBeenSet = false;
321 bool m_dataSourceIdHasBeenSet = false;
322 bool m_dataSourceTypeHasBeenSet = false;
323 bool m_requestIdHasBeenSet = false;
324 bool m_hostIdHasBeenSet = false;
325};
326
327} // namespace Model
328} // namespace S3Control
329} // namespace Aws
GetAccessPointResult & WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
void SetBucketAccountId(BucketAccountIdT &&value)
GetAccessPointResult & WithHostId(HostIdT &&value)
GetAccessPointResult & WithAccessPointArn(AccessPointArnT &&value)
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
GetAccessPointResult & WithVpcConfiguration(VpcConfigurationT &&value)
AWS_S3CONTROL_API GetAccessPointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAccessPointResult & WithBucket(BucketT &&value)
GetAccessPointResult & WithAlias(AliasT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
GetAccessPointResult & WithRequestId(RequestIdT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
GetAccessPointResult & WithDataSourceId(DataSourceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEndpoints() const
const VpcConfiguration & GetVpcConfiguration() const
GetAccessPointResult & WithEndpoints(EndpointsT &&value)
AWS_S3CONTROL_API GetAccessPointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAccessPointResult & WithCreationDate(CreationDateT &&value)
AWS_S3CONTROL_API GetAccessPointResult()=default
GetAccessPointResult & AddEndpoints(EndpointsKeyT &&key, EndpointsValueT &&value)
GetAccessPointResult & WithDataSourceType(DataSourceTypeT &&value)
GetAccessPointResult & WithName(NameT &&value)
GetAccessPointResult & WithBucketAccountId(BucketAccountIdT &&value)
GetAccessPointResult & WithNetworkOrigin(NetworkOrigin value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument