AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AccessPoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/NetworkOrigin.h>
10#include <aws/s3control/model/VpcConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Control {
21namespace Model {
22
29 public:
30 AWS_S3CONTROL_API AccessPoint() = default;
31 AWS_S3CONTROL_API AccessPoint(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_S3CONTROL_API AccessPoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 AccessPoint& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
63 inline NetworkOrigin GetNetworkOrigin() const { return m_networkOrigin; }
64 inline bool NetworkOriginHasBeenSet() const { return m_networkOriginHasBeenSet; }
65 inline void SetNetworkOrigin(NetworkOrigin value) {
66 m_networkOriginHasBeenSet = true;
67 m_networkOrigin = value;
68 }
70 SetNetworkOrigin(value);
71 return *this;
72 }
74
76
82 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
83 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
84 template <typename VpcConfigurationT = VpcConfiguration>
85 void SetVpcConfiguration(VpcConfigurationT&& value) {
86 m_vpcConfigurationHasBeenSet = true;
87 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
88 }
89 template <typename VpcConfigurationT = VpcConfiguration>
90 AccessPoint& WithVpcConfiguration(VpcConfigurationT&& value) {
91 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetBucket() const { return m_bucket; }
101 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
102 template <typename BucketT = Aws::String>
103 void SetBucket(BucketT&& value) {
104 m_bucketHasBeenSet = true;
105 m_bucket = std::forward<BucketT>(value);
106 }
107 template <typename BucketT = Aws::String>
108 AccessPoint& WithBucket(BucketT&& value) {
109 SetBucket(std::forward<BucketT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetAccessPointArn() const { return m_accessPointArn; }
119 inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
120 template <typename AccessPointArnT = Aws::String>
121 void SetAccessPointArn(AccessPointArnT&& value) {
122 m_accessPointArnHasBeenSet = true;
123 m_accessPointArn = std::forward<AccessPointArnT>(value);
124 }
125 template <typename AccessPointArnT = Aws::String>
126 AccessPoint& WithAccessPointArn(AccessPointArnT&& value) {
127 SetAccessPointArn(std::forward<AccessPointArnT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetAlias() const { return m_alias; }
137 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
138 template <typename AliasT = Aws::String>
139 void SetAlias(AliasT&& value) {
140 m_aliasHasBeenSet = true;
141 m_alias = std::forward<AliasT>(value);
142 }
143 template <typename AliasT = Aws::String>
144 AccessPoint& WithAlias(AliasT&& value) {
145 SetAlias(std::forward<AliasT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
156 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
157 template <typename BucketAccountIdT = Aws::String>
158 void SetBucketAccountId(BucketAccountIdT&& value) {
159 m_bucketAccountIdHasBeenSet = true;
160 m_bucketAccountId = std::forward<BucketAccountIdT>(value);
161 }
162 template <typename BucketAccountIdT = Aws::String>
163 AccessPoint& WithBucketAccountId(BucketAccountIdT&& value) {
164 SetBucketAccountId(std::forward<BucketAccountIdT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
174 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
175 template <typename DataSourceIdT = Aws::String>
176 void SetDataSourceId(DataSourceIdT&& value) {
177 m_dataSourceIdHasBeenSet = true;
178 m_dataSourceId = std::forward<DataSourceIdT>(value);
179 }
180 template <typename DataSourceIdT = Aws::String>
181 AccessPoint& WithDataSourceId(DataSourceIdT&& value) {
182 SetDataSourceId(std::forward<DataSourceIdT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetDataSourceType() const { return m_dataSourceType; }
192 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
193 template <typename DataSourceTypeT = Aws::String>
194 void SetDataSourceType(DataSourceTypeT&& value) {
195 m_dataSourceTypeHasBeenSet = true;
196 m_dataSourceType = std::forward<DataSourceTypeT>(value);
197 }
198 template <typename DataSourceTypeT = Aws::String>
199 AccessPoint& WithDataSourceType(DataSourceTypeT&& value) {
200 SetDataSourceType(std::forward<DataSourceTypeT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_name;
206
207 NetworkOrigin m_networkOrigin{NetworkOrigin::NOT_SET};
208
209 VpcConfiguration m_vpcConfiguration;
210
211 Aws::String m_bucket;
212
213 Aws::String m_accessPointArn;
214
215 Aws::String m_alias;
216
217 Aws::String m_bucketAccountId;
218
219 Aws::String m_dataSourceId;
220
221 Aws::String m_dataSourceType;
222 bool m_nameHasBeenSet = false;
223 bool m_networkOriginHasBeenSet = false;
224 bool m_vpcConfigurationHasBeenSet = false;
225 bool m_bucketHasBeenSet = false;
226 bool m_accessPointArnHasBeenSet = false;
227 bool m_aliasHasBeenSet = false;
228 bool m_bucketAccountIdHasBeenSet = false;
229 bool m_dataSourceIdHasBeenSet = false;
230 bool m_dataSourceTypeHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace S3Control
235} // namespace Aws
const Aws::String & GetBucketAccountId() const
void SetNetworkOrigin(NetworkOrigin value)
Definition AccessPoint.h:65
AWS_S3CONTROL_API AccessPoint(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessPoint & WithBucketAccountId(BucketAccountIdT &&value)
AccessPoint & WithVpcConfiguration(VpcConfigurationT &&value)
Definition AccessPoint.h:90
const Aws::String & GetName() const
Definition AccessPoint.h:40
const Aws::String & GetDataSourceType() const
AccessPoint & WithAlias(AliasT &&value)
AWS_S3CONTROL_API AccessPoint()=default
AccessPoint & WithDataSourceId(DataSourceIdT &&value)
void SetDataSourceType(DataSourceTypeT &&value)
AccessPoint & WithAccessPointArn(AccessPointArnT &&value)
const VpcConfiguration & GetVpcConfiguration() const
Definition AccessPoint.h:82
void SetBucket(BucketT &&value)
const Aws::String & GetAlias() const
void SetBucketAccountId(BucketAccountIdT &&value)
void SetDataSourceId(DataSourceIdT &&value)
AWS_S3CONTROL_API AccessPoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetBucket() const
const Aws::String & GetDataSourceId() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AccessPoint & WithBucket(BucketT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
Definition AccessPoint.h:85
AccessPoint & WithNetworkOrigin(NetworkOrigin value)
Definition AccessPoint.h:69
const Aws::String & GetAccessPointArn() const
AccessPoint & WithDataSourceType(DataSourceTypeT &&value)
AccessPoint & WithName(NameT &&value)
Definition AccessPoint.h:48
void SetAccessPointArn(AccessPointArnT &&value)
NetworkOrigin GetNetworkOrigin() const
Definition AccessPoint.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String