AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessPoint.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_S3CONTROL_API AccessPoint() = default;
36 AWS_S3CONTROL_API AccessPoint(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CONTROL_API AccessPoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 AccessPoint& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
63 inline NetworkOrigin GetNetworkOrigin() const { return m_networkOrigin; }
64 inline bool NetworkOriginHasBeenSet() const { return m_networkOriginHasBeenSet; }
65 inline void SetNetworkOrigin(NetworkOrigin value) { m_networkOriginHasBeenSet = true; m_networkOrigin = value; }
66 inline AccessPoint& WithNetworkOrigin(NetworkOrigin value) { SetNetworkOrigin(value); return *this;}
68
70
76 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
77 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
78 template<typename VpcConfigurationT = VpcConfiguration>
79 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
80 template<typename VpcConfigurationT = VpcConfiguration>
81 AccessPoint& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
83
85
88 inline const Aws::String& GetBucket() const { return m_bucket; }
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90 template<typename BucketT = Aws::String>
91 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
92 template<typename BucketT = Aws::String>
93 AccessPoint& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
95
97
100 inline const Aws::String& GetAccessPointArn() const { return m_accessPointArn; }
101 inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
102 template<typename AccessPointArnT = Aws::String>
103 void SetAccessPointArn(AccessPointArnT&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::forward<AccessPointArnT>(value); }
104 template<typename AccessPointArnT = Aws::String>
105 AccessPoint& WithAccessPointArn(AccessPointArnT&& value) { SetAccessPointArn(std::forward<AccessPointArnT>(value)); return *this;}
107
109
112 inline const Aws::String& GetAlias() const { return m_alias; }
113 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
114 template<typename AliasT = Aws::String>
115 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
116 template<typename AliasT = Aws::String>
117 AccessPoint& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
119
121
125 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
126 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
127 template<typename BucketAccountIdT = Aws::String>
128 void SetBucketAccountId(BucketAccountIdT&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::forward<BucketAccountIdT>(value); }
129 template<typename BucketAccountIdT = Aws::String>
130 AccessPoint& WithBucketAccountId(BucketAccountIdT&& value) { SetBucketAccountId(std::forward<BucketAccountIdT>(value)); return *this;}
132
134
137 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
138 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
139 template<typename DataSourceIdT = Aws::String>
140 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
141 template<typename DataSourceIdT = Aws::String>
142 AccessPoint& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
144
146
149 inline const Aws::String& GetDataSourceType() const { return m_dataSourceType; }
150 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
151 template<typename DataSourceTypeT = Aws::String>
152 void SetDataSourceType(DataSourceTypeT&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::forward<DataSourceTypeT>(value); }
153 template<typename DataSourceTypeT = Aws::String>
154 AccessPoint& WithDataSourceType(DataSourceTypeT&& value) { SetDataSourceType(std::forward<DataSourceTypeT>(value)); return *this;}
156 private:
157
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 NetworkOrigin m_networkOrigin{NetworkOrigin::NOT_SET};
162 bool m_networkOriginHasBeenSet = false;
163
164 VpcConfiguration m_vpcConfiguration;
165 bool m_vpcConfigurationHasBeenSet = false;
166
167 Aws::String m_bucket;
168 bool m_bucketHasBeenSet = false;
169
170 Aws::String m_accessPointArn;
171 bool m_accessPointArnHasBeenSet = false;
172
173 Aws::String m_alias;
174 bool m_aliasHasBeenSet = false;
175
176 Aws::String m_bucketAccountId;
177 bool m_bucketAccountIdHasBeenSet = false;
178
179 Aws::String m_dataSourceId;
180 bool m_dataSourceIdHasBeenSet = false;
181
182 Aws::String m_dataSourceType;
183 bool m_dataSourceTypeHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace S3Control
188} // 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:81
const Aws::String & GetName() const
Definition AccessPoint.h:46
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:76
void SetBucket(BucketT &&value)
Definition AccessPoint.h:91
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
Definition AccessPoint.h:88
const Aws::String & GetDataSourceId() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AccessPoint & WithBucket(BucketT &&value)
Definition AccessPoint.h:93
void SetVpcConfiguration(VpcConfigurationT &&value)
Definition AccessPoint.h:79
AccessPoint & WithNetworkOrigin(NetworkOrigin value)
Definition AccessPoint.h:66
const Aws::String & GetAccessPointArn() const
AccessPoint & WithDataSourceType(DataSourceTypeT &&value)
AccessPoint & WithName(NameT &&value)
Definition AccessPoint.h:51
void SetAccessPointArn(AccessPointArnT &&value)
NetworkOrigin GetNetworkOrigin() const
Definition AccessPoint.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String