AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BlockPublicAccess.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2
20{
21namespace Model
22{
23
35 {
36 public:
37 AWS_MACIE2_API BlockPublicAccess();
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; }
49 inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; }
50 inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; }
51 inline BlockPublicAccess& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;}
53
55
58 inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
59 inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
60 inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
61 inline BlockPublicAccess& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;}
63
65
69 inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
70 inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
71 inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
72 inline BlockPublicAccess& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
74
76
80 inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
81 inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
82 inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
83 inline BlockPublicAccess& WithRestrictPublicBuckets(bool value) { SetRestrictPublicBuckets(value); return *this;}
85 private:
86
87 bool m_blockPublicAcls;
88 bool m_blockPublicAclsHasBeenSet = false;
89
90 bool m_blockPublicPolicy;
91 bool m_blockPublicPolicyHasBeenSet = false;
92
93 bool m_ignorePublicAcls;
94 bool m_ignorePublicAclsHasBeenSet = false;
95
96 bool m_restrictPublicBuckets;
97 bool m_restrictPublicBucketsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Macie2
102} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
BlockPublicAccess & WithBlockPublicAcls(bool value)
BlockPublicAccess & WithBlockPublicPolicy(bool value)
AWS_MACIE2_API BlockPublicAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockPublicAccess & WithIgnorePublicAcls(bool value)
BlockPublicAccess & WithRestrictPublicBuckets(bool value)
AWS_MACIE2_API BlockPublicAccess(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue