AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetAccessPointResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3control/S3Control_EXPORTS.h>
12#include <aws/s3control/model/NetworkOrigin.h>
13#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
14#include <aws/s3control/model/VpcConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace S3Control {
28namespace Model {
30 public:
31 AWS_S3CONTROL_API GetAccessPointResult() = default;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBucket() const { return m_bucket; }
57 template <typename BucketT = Aws::String>
58 void SetBucket(BucketT&& value) {
59 m_bucketHasBeenSet = true;
60 m_bucket = std::forward<BucketT>(value);
61 }
62 template <typename BucketT = Aws::String>
63 GetAccessPointResult& WithBucket(BucketT&& value) {
64 SetBucket(std::forward<BucketT>(value));
65 return *this;
66 }
68
70
79 inline NetworkOrigin GetNetworkOrigin() const { return m_networkOrigin; }
80 inline void SetNetworkOrigin(NetworkOrigin value) {
81 m_networkOriginHasBeenSet = true;
82 m_networkOrigin = value;
83 }
85 SetNetworkOrigin(value);
86 return *this;
87 }
89
91
97 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
98 template <typename VpcConfigurationT = VpcConfiguration>
99 void SetVpcConfiguration(VpcConfigurationT&& value) {
100 m_vpcConfigurationHasBeenSet = true;
101 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
102 }
103 template <typename VpcConfigurationT = VpcConfiguration>
104 GetAccessPointResult& WithVpcConfiguration(VpcConfigurationT&& value) {
105 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
106 return *this;
107 }
109
111
112 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
113 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
114 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
115 m_publicAccessBlockConfigurationHasBeenSet = true;
116 m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value);
117 }
118 template <typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
119 GetAccessPointResult& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
120 SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
130 template <typename CreationDateT = Aws::Utils::DateTime>
131 void SetCreationDate(CreationDateT&& value) {
132 m_creationDateHasBeenSet = true;
133 m_creationDate = std::forward<CreationDateT>(value);
134 }
135 template <typename CreationDateT = Aws::Utils::DateTime>
136 GetAccessPointResult& WithCreationDate(CreationDateT&& value) {
137 SetCreationDate(std::forward<CreationDateT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetAlias() const { return m_alias; }
147 template <typename AliasT = Aws::String>
148 void SetAlias(AliasT&& value) {
149 m_aliasHasBeenSet = true;
150 m_alias = std::forward<AliasT>(value);
151 }
152 template <typename AliasT = Aws::String>
154 SetAlias(std::forward<AliasT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetAccessPointArn() const { return m_accessPointArn; }
164 template <typename AccessPointArnT = Aws::String>
165 void SetAccessPointArn(AccessPointArnT&& value) {
166 m_accessPointArnHasBeenSet = true;
167 m_accessPointArn = std::forward<AccessPointArnT>(value);
168 }
169 template <typename AccessPointArnT = Aws::String>
170 GetAccessPointResult& WithAccessPointArn(AccessPointArnT&& value) {
171 SetAccessPointArn(std::forward<AccessPointArnT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Map<Aws::String, Aws::String>& GetEndpoints() const { return m_endpoints; }
181 template <typename EndpointsT = Aws::Map<Aws::String, Aws::String>>
182 void SetEndpoints(EndpointsT&& value) {
183 m_endpointsHasBeenSet = true;
184 m_endpoints = std::forward<EndpointsT>(value);
185 }
186 template <typename EndpointsT = Aws::Map<Aws::String, Aws::String>>
187 GetAccessPointResult& WithEndpoints(EndpointsT&& value) {
188 SetEndpoints(std::forward<EndpointsT>(value));
189 return *this;
190 }
191 template <typename EndpointsKeyT = Aws::String, typename EndpointsValueT = Aws::String>
192 GetAccessPointResult& AddEndpoints(EndpointsKeyT&& key, EndpointsValueT&& value) {
193 m_endpointsHasBeenSet = true;
194 m_endpoints.emplace(std::forward<EndpointsKeyT>(key), std::forward<EndpointsValueT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
205 template <typename BucketAccountIdT = Aws::String>
206 void SetBucketAccountId(BucketAccountIdT&& value) {
207 m_bucketAccountIdHasBeenSet = true;
208 m_bucketAccountId = std::forward<BucketAccountIdT>(value);
209 }
210 template <typename BucketAccountIdT = Aws::String>
211 GetAccessPointResult& WithBucketAccountId(BucketAccountIdT&& value) {
212 SetBucketAccountId(std::forward<BucketAccountIdT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
222 template <typename DataSourceIdT = Aws::String>
223 void SetDataSourceId(DataSourceIdT&& value) {
224 m_dataSourceIdHasBeenSet = true;
225 m_dataSourceId = std::forward<DataSourceIdT>(value);
226 }
227 template <typename DataSourceIdT = Aws::String>
228 GetAccessPointResult& WithDataSourceId(DataSourceIdT&& value) {
229 SetDataSourceId(std::forward<DataSourceIdT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetDataSourceType() const { return m_dataSourceType; }
239 template <typename DataSourceTypeT = Aws::String>
240 void SetDataSourceType(DataSourceTypeT&& value) {
241 m_dataSourceTypeHasBeenSet = true;
242 m_dataSourceType = std::forward<DataSourceTypeT>(value);
243 }
244 template <typename DataSourceTypeT = Aws::String>
245 GetAccessPointResult& WithDataSourceType(DataSourceTypeT&& value) {
246 SetDataSourceType(std::forward<DataSourceTypeT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetRequestId() const { return m_requestId; }
256 template <typename RequestIdT = Aws::String>
257 void SetRequestId(RequestIdT&& value) {
258 m_requestIdHasBeenSet = true;
259 m_requestId = std::forward<RequestIdT>(value);
260 }
261 template <typename RequestIdT = Aws::String>
262 GetAccessPointResult& WithRequestId(RequestIdT&& value) {
263 SetRequestId(std::forward<RequestIdT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetHostId() const { return m_hostId; }
273 template <typename HostIdT = Aws::String>
274 void SetHostId(HostIdT&& value) {
275 m_hostIdHasBeenSet = true;
276 m_hostId = std::forward<HostIdT>(value);
277 }
278 template <typename HostIdT = Aws::String>
280 SetHostId(std::forward<HostIdT>(value));
281 return *this;
282 }
284 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
285
286 private:
287 Aws::String m_name;
288
289 Aws::String m_bucket;
290
291 NetworkOrigin m_networkOrigin{NetworkOrigin::NOT_SET};
292
293 VpcConfiguration m_vpcConfiguration;
294
295 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
296
297 Aws::Utils::DateTime m_creationDate{};
298
299 Aws::String m_alias;
300
301 Aws::String m_accessPointArn;
302
304
305 Aws::String m_bucketAccountId;
306
307 Aws::String m_dataSourceId;
308
309 Aws::String m_dataSourceType;
310
311 Aws::String m_requestId;
312
313 Aws::String m_hostId;
314 Aws::Http::HttpResponseCode m_HttpResponseCode;
315 bool m_nameHasBeenSet = false;
316 bool m_bucketHasBeenSet = false;
317 bool m_networkOriginHasBeenSet = false;
318 bool m_vpcConfigurationHasBeenSet = false;
319 bool m_publicAccessBlockConfigurationHasBeenSet = false;
320 bool m_creationDateHasBeenSet = false;
321 bool m_aliasHasBeenSet = false;
322 bool m_accessPointArnHasBeenSet = false;
323 bool m_endpointsHasBeenSet = false;
324 bool m_bucketAccountIdHasBeenSet = false;
325 bool m_dataSourceIdHasBeenSet = false;
326 bool m_dataSourceTypeHasBeenSet = false;
327 bool m_requestIdHasBeenSet = false;
328 bool m_hostIdHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace S3Control
333} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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