AWS SDK for C++  1.8.154
AWS SDK for C++
PublicAccessBlockConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Xml
14 {
15  class XmlNode;
16 } // namespace Xml
17 } // namespace Utils
18 namespace S3Control
19 {
20 namespace Model
21 {
22 
36  {
37  public:
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
55  inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; }
56 
67  inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; }
68 
79  inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; }
80 
91  inline PublicAccessBlockConfiguration& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;}
92 
93 
102  inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
103 
112  inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
113 
122  inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
123 
132  inline PublicAccessBlockConfiguration& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
133 
134 
142  inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
143 
151  inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
152 
160  inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
161 
169  inline PublicAccessBlockConfiguration& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;}
170 
171 
182  inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
183 
194  inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
195 
206  inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
207 
218  inline PublicAccessBlockConfiguration& WithRestrictPublicBuckets(bool value) { SetRestrictPublicBuckets(value); return *this;}
219 
220  private:
221 
222  bool m_blockPublicAcls;
223  bool m_blockPublicAclsHasBeenSet;
224 
225  bool m_ignorePublicAcls;
226  bool m_ignorePublicAclsHasBeenSet;
227 
228  bool m_blockPublicPolicy;
229  bool m_blockPublicPolicyHasBeenSet;
230 
231  bool m_restrictPublicBuckets;
232  bool m_restrictPublicBucketsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace S3Control
237 } // namespace Aws
Aws::S3Control::Model::PublicAccessBlockConfiguration::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::PublicAccessBlockConfiguration::PublicAccessBlockConfiguration
PublicAccessBlockConfiguration()
Aws::S3Control::Model::PublicAccessBlockConfiguration::WithIgnorePublicAcls
PublicAccessBlockConfiguration & WithIgnorePublicAcls(bool value)
Definition: PublicAccessBlockConfiguration.h:132
Aws::S3Control::Model::PublicAccessBlockConfiguration::SetBlockPublicAcls
void SetBlockPublicAcls(bool value)
Definition: PublicAccessBlockConfiguration.h:79
Aws::S3Control::Model::PublicAccessBlockConfiguration::GetRestrictPublicBuckets
bool GetRestrictPublicBuckets() const
Definition: PublicAccessBlockConfiguration.h:182
Aws::S3Control::Model::PublicAccessBlockConfiguration::WithRestrictPublicBuckets
PublicAccessBlockConfiguration & WithRestrictPublicBuckets(bool value)
Definition: PublicAccessBlockConfiguration.h:218
S3Control_EXPORTS.h
Aws::S3Control::Model::PublicAccessBlockConfiguration::GetBlockPublicAcls
bool GetBlockPublicAcls() const
Definition: PublicAccessBlockConfiguration.h:55
Aws::S3Control::Model::PublicAccessBlockConfiguration::IgnorePublicAclsHasBeenSet
bool IgnorePublicAclsHasBeenSet() const
Definition: PublicAccessBlockConfiguration.h:112
Aws::S3Control::Model::PublicAccessBlockConfiguration::BlockPublicAclsHasBeenSet
bool BlockPublicAclsHasBeenSet() const
Definition: PublicAccessBlockConfiguration.h:67
Aws::S3Control::Model::PublicAccessBlockConfiguration::GetIgnorePublicAcls
bool GetIgnorePublicAcls() const
Definition: PublicAccessBlockConfiguration.h:102
Aws::S3Control::Model::PublicAccessBlockConfiguration::PublicAccessBlockConfiguration
PublicAccessBlockConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::PublicAccessBlockConfiguration::WithBlockPublicAcls
PublicAccessBlockConfiguration & WithBlockPublicAcls(bool value)
Definition: PublicAccessBlockConfiguration.h:91
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PublicAccessBlockConfiguration
Definition: PublicAccessBlockConfiguration.h:36
Aws::S3Control::Model::PublicAccessBlockConfiguration::operator=
PublicAccessBlockConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::PublicAccessBlockConfiguration::SetIgnorePublicAcls
void SetIgnorePublicAcls(bool value)
Definition: PublicAccessBlockConfiguration.h:122
Aws::S3Control::Model::PublicAccessBlockConfiguration::SetBlockPublicPolicy
void SetBlockPublicPolicy(bool value)
Definition: PublicAccessBlockConfiguration.h:160
Aws::S3Control::Model::PublicAccessBlockConfiguration::WithBlockPublicPolicy
PublicAccessBlockConfiguration & WithBlockPublicPolicy(bool value)
Definition: PublicAccessBlockConfiguration.h:169
Aws::S3Control::Model::PublicAccessBlockConfiguration::GetBlockPublicPolicy
bool GetBlockPublicPolicy() const
Definition: PublicAccessBlockConfiguration.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::PublicAccessBlockConfiguration::RestrictPublicBucketsHasBeenSet
bool RestrictPublicBucketsHasBeenSet() const
Definition: PublicAccessBlockConfiguration.h:194
Aws::S3Control::Model::PublicAccessBlockConfiguration::BlockPublicPolicyHasBeenSet
bool BlockPublicPolicyHasBeenSet() const
Definition: PublicAccessBlockConfiguration.h:151
Aws::S3Control::Model::PublicAccessBlockConfiguration::SetRestrictPublicBuckets
void SetRestrictPublicBuckets(bool value)
Definition: PublicAccessBlockConfiguration.h:206