AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublicAccessBlockConfiguration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Xml
14{
15 class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Control
19{
20namespace Model
21{
22
35 {
36 public:
37 AWS_S3CONTROL_API PublicAccessBlockConfiguration();
40
41 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
55 inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; }
56 inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; }
57 inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; }
58 inline PublicAccessBlockConfiguration& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;}
60
62
70 inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
71 inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
72 inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
73 inline PublicAccessBlockConfiguration& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
75
77
84 inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
85 inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
86 inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
89
91
101 inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
102 inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
103 inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
106 private:
107
108 bool m_blockPublicAcls;
109 bool m_blockPublicAclsHasBeenSet = false;
110
111 bool m_ignorePublicAcls;
112 bool m_ignorePublicAclsHasBeenSet = false;
113
114 bool m_blockPublicPolicy;
115 bool m_blockPublicPolicyHasBeenSet = false;
116
117 bool m_restrictPublicBuckets;
118 bool m_restrictPublicBucketsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace S3Control
123} // namespace Aws
AWS_S3CONTROL_API PublicAccessBlockConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PublicAccessBlockConfiguration & WithBlockPublicPolicy(bool value)
PublicAccessBlockConfiguration & WithBlockPublicAcls(bool value)
PublicAccessBlockConfiguration & WithIgnorePublicAcls(bool value)
PublicAccessBlockConfiguration & WithRestrictPublicBuckets(bool value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API PublicAccessBlockConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)