AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsS3AccessPointDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/AwsS3AccessPointVpcConfigurationDetails.h>
10#include <aws/securityhub/model/AwsS3AccountPublicAccessBlockDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
32 public:
33 AWS_SECURITYHUB_API AwsS3AccessPointDetails() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAccessPointArn() const { return m_accessPointArn; }
43 inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
44 template <typename AccessPointArnT = Aws::String>
45 void SetAccessPointArn(AccessPointArnT&& value) {
46 m_accessPointArnHasBeenSet = true;
47 m_accessPointArn = std::forward<AccessPointArnT>(value);
48 }
49 template <typename AccessPointArnT = Aws::String>
50 AwsS3AccessPointDetails& WithAccessPointArn(AccessPointArnT&& value) {
51 SetAccessPointArn(std::forward<AccessPointArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAlias() const { return m_alias; }
61 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
62 template <typename AliasT = Aws::String>
63 void SetAlias(AliasT&& value) {
64 m_aliasHasBeenSet = true;
65 m_alias = std::forward<AliasT>(value);
66 }
67 template <typename AliasT = Aws::String>
69 SetAlias(std::forward<AliasT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetBucket() const { return m_bucket; }
79 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
80 template <typename BucketT = Aws::String>
81 void SetBucket(BucketT&& value) {
82 m_bucketHasBeenSet = true;
83 m_bucket = std::forward<BucketT>(value);
84 }
85 template <typename BucketT = Aws::String>
87 SetBucket(std::forward<BucketT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetBucketAccountId() const { return m_bucketAccountId; }
98 inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; }
99 template <typename BucketAccountIdT = Aws::String>
100 void SetBucketAccountId(BucketAccountIdT&& value) {
101 m_bucketAccountIdHasBeenSet = true;
102 m_bucketAccountId = std::forward<BucketAccountIdT>(value);
103 }
104 template <typename BucketAccountIdT = Aws::String>
105 AwsS3AccessPointDetails& WithBucketAccountId(BucketAccountIdT&& value) {
106 SetBucketAccountId(std::forward<BucketAccountIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template <typename NameT = Aws::String>
118 void SetName(NameT&& value) {
119 m_nameHasBeenSet = true;
120 m_name = std::forward<NameT>(value);
121 }
122 template <typename NameT = Aws::String>
124 SetName(std::forward<NameT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetNetworkOrigin() const { return m_networkOrigin; }
135 inline bool NetworkOriginHasBeenSet() const { return m_networkOriginHasBeenSet; }
136 template <typename NetworkOriginT = Aws::String>
137 void SetNetworkOrigin(NetworkOriginT&& value) {
138 m_networkOriginHasBeenSet = true;
139 m_networkOrigin = std::forward<NetworkOriginT>(value);
140 }
141 template <typename NetworkOriginT = Aws::String>
143 SetNetworkOrigin(std::forward<NetworkOriginT>(value));
144 return *this;
145 }
147
149
150 inline const AwsS3AccountPublicAccessBlockDetails& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
151 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
152 template <typename PublicAccessBlockConfigurationT = AwsS3AccountPublicAccessBlockDetails>
153 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
154 m_publicAccessBlockConfigurationHasBeenSet = true;
155 m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value);
156 }
157 template <typename PublicAccessBlockConfigurationT = AwsS3AccountPublicAccessBlockDetails>
158 AwsS3AccessPointDetails& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) {
159 SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value));
160 return *this;
161 }
163
165
169 inline const AwsS3AccessPointVpcConfigurationDetails& GetVpcConfiguration() const { return m_vpcConfiguration; }
170 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
171 template <typename VpcConfigurationT = AwsS3AccessPointVpcConfigurationDetails>
172 void SetVpcConfiguration(VpcConfigurationT&& value) {
173 m_vpcConfigurationHasBeenSet = true;
174 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
175 }
176 template <typename VpcConfigurationT = AwsS3AccessPointVpcConfigurationDetails>
177 AwsS3AccessPointDetails& WithVpcConfiguration(VpcConfigurationT&& value) {
178 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_accessPointArn;
184
185 Aws::String m_alias;
186
187 Aws::String m_bucket;
188
189 Aws::String m_bucketAccountId;
190
191 Aws::String m_name;
192
193 Aws::String m_networkOrigin;
194
195 AwsS3AccountPublicAccessBlockDetails m_publicAccessBlockConfiguration;
196
198 bool m_accessPointArnHasBeenSet = false;
199 bool m_aliasHasBeenSet = false;
200 bool m_bucketHasBeenSet = false;
201 bool m_bucketAccountIdHasBeenSet = false;
202 bool m_nameHasBeenSet = false;
203 bool m_networkOriginHasBeenSet = false;
204 bool m_publicAccessBlockConfigurationHasBeenSet = false;
205 bool m_vpcConfigurationHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace SecurityHub
210} // namespace Aws
AwsS3AccessPointDetails & WithBucket(BucketT &&value)
AWS_SECURITYHUB_API AwsS3AccessPointDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsS3AccountPublicAccessBlockDetails & GetPublicAccessBlockConfiguration() const
AwsS3AccessPointDetails & WithVpcConfiguration(VpcConfigurationT &&value)
const AwsS3AccessPointVpcConfigurationDetails & GetVpcConfiguration() const
AWS_SECURITYHUB_API AwsS3AccessPointDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
AwsS3AccessPointDetails & WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
AwsS3AccessPointDetails & WithNetworkOrigin(NetworkOriginT &&value)
AwsS3AccessPointDetails & WithName(NameT &&value)
AwsS3AccessPointDetails & WithBucketAccountId(BucketAccountIdT &&value)
AwsS3AccessPointDetails & WithAlias(AliasT &&value)
AwsS3AccessPointDetails & WithAccessPointArn(AccessPointArnT &&value)
AWS_SECURITYHUB_API AwsS3AccessPointDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue