AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline AccessPoint& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline AccessPoint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline AccessPoint& WithName(const char* value) { SetName(value); return *this;}
55
57
65 inline const NetworkOrigin& GetNetworkOrigin() const{ return m_networkOrigin; }
66 inline bool NetworkOriginHasBeenSet() const { return m_networkOriginHasBeenSet; }
67 inline void SetNetworkOrigin(const NetworkOrigin& value) { m_networkOriginHasBeenSet = true; m_networkOrigin = value; }
68 inline void SetNetworkOrigin(NetworkOrigin&& value) { m_networkOriginHasBeenSet = true; m_networkOrigin = std::move(value); }
69 inline AccessPoint& WithNetworkOrigin(const NetworkOrigin& value) { SetNetworkOrigin(value); return *this;}
70 inline AccessPoint& WithNetworkOrigin(NetworkOrigin&& value) { SetNetworkOrigin(std::move(value)); return *this;}
72
74
80 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
81 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
82 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
83 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
84 inline AccessPoint& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;}
85 inline AccessPoint& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
87
89
92 inline const Aws::String& GetBucket() const{ return m_bucket; }
93 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
94 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
95 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
96 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
97 inline AccessPoint& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
98 inline AccessPoint& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
99 inline AccessPoint& WithBucket(const char* value) { SetBucket(value); return *this;}
101
103
106 inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; }
107 inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
108 inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; }
109 inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); }
110 inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); }
111 inline AccessPoint& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;}
112 inline AccessPoint& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;}
113 inline AccessPoint& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;}
115
117
120 inline const Aws::String& GetAlias() const{ return m_alias; }
121 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
122 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
123 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
124 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
125 inline AccessPoint& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
126 inline AccessPoint& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
127 inline AccessPoint& WithAlias(const char* value) { SetAlias(value); return *this;}
129
131
135 inline const Aws::String& GetBucketAccountId() const{ return m_bucketAccountId; }
136 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
137 inline void SetBucketAccountId(const Aws::String& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = value; }
138 inline void SetBucketAccountId(Aws::String&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::move(value); }
139 inline void SetBucketAccountId(const char* value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId.assign(value); }
140 inline AccessPoint& WithBucketAccountId(const Aws::String& value) { SetBucketAccountId(value); return *this;}
141 inline AccessPoint& WithBucketAccountId(Aws::String&& value) { SetBucketAccountId(std::move(value)); return *this;}
142 inline AccessPoint& WithBucketAccountId(const char* value) { SetBucketAccountId(value); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 NetworkOrigin m_networkOrigin;
150 bool m_networkOriginHasBeenSet = false;
151
152 VpcConfiguration m_vpcConfiguration;
153 bool m_vpcConfigurationHasBeenSet = false;
154
155 Aws::String m_bucket;
156 bool m_bucketHasBeenSet = false;
157
158 Aws::String m_accessPointArn;
159 bool m_accessPointArnHasBeenSet = false;
160
161 Aws::String m_alias;
162 bool m_aliasHasBeenSet = false;
163
164 Aws::String m_bucketAccountId;
165 bool m_bucketAccountIdHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace S3Control
170} // namespace Aws
void SetAlias(Aws::String &&value)
AccessPoint & WithBucket(const Aws::String &value)
Definition AccessPoint.h:97
AccessPoint & WithBucketAccountId(Aws::String &&value)
void SetAccessPointArn(const Aws::String &value)
AccessPoint & WithBucketAccountId(const Aws::String &value)
const Aws::String & GetBucketAccountId() const
AccessPoint & WithBucketAccountId(const char *value)
AccessPoint & WithNetworkOrigin(NetworkOrigin &&value)
Definition AccessPoint.h:70
void SetName(const char *value)
Definition AccessPoint.h:50
AWS_S3CONTROL_API AccessPoint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetBucket(const Aws::String &value)
Definition AccessPoint.h:94
AccessPoint & WithBucket(Aws::String &&value)
Definition AccessPoint.h:98
const Aws::String & GetName() const
Definition AccessPoint.h:46
void SetBucketAccountId(const Aws::String &value)
AccessPoint & WithAlias(const char *value)
void SetAccessPointArn(const char *value)
const VpcConfiguration & GetVpcConfiguration() const
Definition AccessPoint.h:80
const Aws::String & GetAlias() const
AccessPoint & WithName(const char *value)
Definition AccessPoint.h:53
void SetAlias(const char *value)
AccessPoint & WithAccessPointArn(const char *value)
AccessPoint & WithAlias(const Aws::String &value)
AccessPoint & WithVpcConfiguration(VpcConfiguration &&value)
Definition AccessPoint.h:85
AWS_S3CONTROL_API AccessPoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcConfiguration(const VpcConfiguration &value)
Definition AccessPoint.h:82
void SetName(const Aws::String &value)
Definition AccessPoint.h:48
AccessPoint & WithName(Aws::String &&value)
Definition AccessPoint.h:52
const Aws::String & GetBucket() const
Definition AccessPoint.h:92
AccessPoint & WithAlias(Aws::String &&value)
void SetVpcConfiguration(VpcConfiguration &&value)
Definition AccessPoint.h:83
void SetName(Aws::String &&value)
Definition AccessPoint.h:49
void SetBucket(Aws::String &&value)
Definition AccessPoint.h:95
void SetBucketAccountId(Aws::String &&value)
AccessPoint & WithAccessPointArn(const Aws::String &value)
void SetBucket(const char *value)
Definition AccessPoint.h:96
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const NetworkOrigin & GetNetworkOrigin() const
Definition AccessPoint.h:65
void SetAlias(const Aws::String &value)
void SetBucketAccountId(const char *value)
const Aws::String & GetAccessPointArn() const
void SetNetworkOrigin(const NetworkOrigin &value)
Definition AccessPoint.h:67
void SetAccessPointArn(Aws::String &&value)
AccessPoint & WithAccessPointArn(Aws::String &&value)
AccessPoint & WithNetworkOrigin(const NetworkOrigin &value)
Definition AccessPoint.h:69
AccessPoint & WithName(const Aws::String &value)
Definition AccessPoint.h:51
AccessPoint & WithBucket(const char *value)
Definition AccessPoint.h:99
void SetNetworkOrigin(NetworkOrigin &&value)
Definition AccessPoint.h:68
AccessPoint & WithVpcConfiguration(const VpcConfiguration &value)
Definition AccessPoint.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String