AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAccessPointResult.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/model/NetworkOrigin.h>
10#include <aws/s3control/model/VpcConfiguration.h>
11#include <aws/s3control/model/PublicAccessBlockConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace S3Control
29{
30namespace Model
31{
33 {
34 public:
35 AWS_S3CONTROL_API GetAccessPointResult() = default;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 GetAccessPointResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetBucket() const { return m_bucket; }
56 template<typename BucketT = Aws::String>
57 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
58 template<typename BucketT = Aws::String>
59 GetAccessPointResult& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
61
63
72 inline NetworkOrigin GetNetworkOrigin() const { return m_networkOrigin; }
73 inline void SetNetworkOrigin(NetworkOrigin value) { m_networkOriginHasBeenSet = true; m_networkOrigin = value; }
76
78
84 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
85 template<typename VpcConfigurationT = VpcConfiguration>
86 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
87 template<typename VpcConfigurationT = VpcConfiguration>
88 GetAccessPointResult& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
90
92
93 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
94 template<typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
95 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value); }
96 template<typename PublicAccessBlockConfigurationT = PublicAccessBlockConfiguration>
97 GetAccessPointResult& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
105 template<typename CreationDateT = Aws::Utils::DateTime>
106 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
107 template<typename CreationDateT = Aws::Utils::DateTime>
108 GetAccessPointResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
110
112
115 inline const Aws::String& GetAlias() const { return m_alias; }
116 template<typename AliasT = Aws::String>
117 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
118 template<typename AliasT = Aws::String>
119 GetAccessPointResult& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
121
123
126 inline const Aws::String& GetAccessPointArn() const { return m_accessPointArn; }
127 template<typename AccessPointArnT = Aws::String>
128 void SetAccessPointArn(AccessPointArnT&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::forward<AccessPointArnT>(value); }
129 template<typename AccessPointArnT = Aws::String>
130 GetAccessPointResult& WithAccessPointArn(AccessPointArnT&& value) { SetAccessPointArn(std::forward<AccessPointArnT>(value)); return *this;}
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetEndpoints() const { return m_endpoints; }
138 template<typename EndpointsT = Aws::Map<Aws::String, Aws::String>>
139 void SetEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::forward<EndpointsT>(value); }
140 template<typename EndpointsT = Aws::Map<Aws::String, Aws::String>>
141 GetAccessPointResult& WithEndpoints(EndpointsT&& value) { SetEndpoints(std::forward<EndpointsT>(value)); return *this;}
142 template<typename EndpointsKeyT = Aws::String, typename EndpointsValueT = Aws::String>
143 GetAccessPointResult& AddEndpoints(EndpointsKeyT&& key, EndpointsValueT&& value) {
144 m_endpointsHasBeenSet = true; m_endpoints.emplace(std::forward<EndpointsKeyT>(key), std::forward<EndpointsValueT>(value)); return *this;
145 }
147
149
153 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
154 template<typename BucketAccountIdT = Aws::String>
155 void SetBucketAccountId(BucketAccountIdT&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::forward<BucketAccountIdT>(value); }
156 template<typename BucketAccountIdT = Aws::String>
157 GetAccessPointResult& WithBucketAccountId(BucketAccountIdT&& value) { SetBucketAccountId(std::forward<BucketAccountIdT>(value)); return *this;}
159
161
164 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
165 template<typename DataSourceIdT = Aws::String>
166 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
167 template<typename DataSourceIdT = Aws::String>
168 GetAccessPointResult& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
170
172
175 inline const Aws::String& GetDataSourceType() const { return m_dataSourceType; }
176 template<typename DataSourceTypeT = Aws::String>
177 void SetDataSourceType(DataSourceTypeT&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::forward<DataSourceTypeT>(value); }
178 template<typename DataSourceTypeT = Aws::String>
179 GetAccessPointResult& WithDataSourceType(DataSourceTypeT&& value) { SetDataSourceType(std::forward<DataSourceTypeT>(value)); return *this;}
181
183
186 inline const Aws::String& GetRequestId() const { return m_requestId; }
187 template<typename RequestIdT = Aws::String>
188 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
189 template<typename RequestIdT = Aws::String>
190 GetAccessPointResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
192
194
197 inline const Aws::String& GetHostId() const { return m_hostId; }
198 template<typename HostIdT = Aws::String>
199 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
200 template<typename HostIdT = Aws::String>
201 GetAccessPointResult& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
203 private:
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 Aws::String m_bucket;
209 bool m_bucketHasBeenSet = false;
210
211 NetworkOrigin m_networkOrigin{NetworkOrigin::NOT_SET};
212 bool m_networkOriginHasBeenSet = false;
213
214 VpcConfiguration m_vpcConfiguration;
215 bool m_vpcConfigurationHasBeenSet = false;
216
217 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
218 bool m_publicAccessBlockConfigurationHasBeenSet = false;
219
220 Aws::Utils::DateTime m_creationDate{};
221 bool m_creationDateHasBeenSet = false;
222
223 Aws::String m_alias;
224 bool m_aliasHasBeenSet = false;
225
226 Aws::String m_accessPointArn;
227 bool m_accessPointArnHasBeenSet = false;
228
230 bool m_endpointsHasBeenSet = false;
231
232 Aws::String m_bucketAccountId;
233 bool m_bucketAccountIdHasBeenSet = false;
234
235 Aws::String m_dataSourceId;
236 bool m_dataSourceIdHasBeenSet = false;
237
238 Aws::String m_dataSourceType;
239 bool m_dataSourceTypeHasBeenSet = false;
240
241 Aws::String m_requestId;
242 bool m_requestIdHasBeenSet = false;
243
244 Aws::String m_hostId;
245 bool m_hostIdHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace S3Control
250} // 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