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/s3-crt/S3Crt_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Xml
14{
15 class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Crt
19{
20namespace Model
21{
22
34 {
35 public:
39
40 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
53 inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; }
54 inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; }
55 inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; }
56 inline PublicAccessBlockConfiguration& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;}
58
60
67 inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
68 inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
69 inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
70 inline PublicAccessBlockConfiguration& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
72
74
80 inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
81 inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
82 inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
85
87
96 inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
97 inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
98 inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
101 private:
102
103 bool m_blockPublicAcls;
104 bool m_blockPublicAclsHasBeenSet = false;
105
106 bool m_ignorePublicAcls;
107 bool m_ignorePublicAclsHasBeenSet = false;
108
109 bool m_blockPublicPolicy;
110 bool m_blockPublicPolicyHasBeenSet = false;
111
112 bool m_restrictPublicBuckets;
113 bool m_restrictPublicBucketsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace S3Crt
118} // namespace Aws
PublicAccessBlockConfiguration & WithBlockPublicPolicy(bool value)
PublicAccessBlockConfiguration & WithRestrictPublicBuckets(bool value)
AWS_S3CRT_API PublicAccessBlockConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API PublicAccessBlockConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
PublicAccessBlockConfiguration & WithIgnorePublicAcls(bool value)
PublicAccessBlockConfiguration & WithBlockPublicAcls(bool value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const