AWS SDK for C++  1.9.21
AWS SDK for C++
BlockPublicAccess.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace GuardDuty
20 {
21 namespace Model
22 {
23 
33  {
34  public:
39 
40 
45  inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
46 
51  inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
52 
57  inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
58 
63  inline BlockPublicAccess& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
64 
65 
70  inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
71 
76  inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
77 
82  inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
83 
88  inline BlockPublicAccess& WithRestrictPublicBuckets(bool value) { SetRestrictPublicBuckets(value); return *this;}
89 
90 
95  inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; }
96 
101  inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; }
102 
107  inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; }
108 
113  inline BlockPublicAccess& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;}
114 
115 
120  inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
121 
126  inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
127 
132  inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
133 
138  inline BlockPublicAccess& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;}
139 
140  private:
141 
142  bool m_ignorePublicAcls;
143  bool m_ignorePublicAclsHasBeenSet;
144 
145  bool m_restrictPublicBuckets;
146  bool m_restrictPublicBucketsHasBeenSet;
147 
148  bool m_blockPublicAcls;
149  bool m_blockPublicAclsHasBeenSet;
150 
151  bool m_blockPublicPolicy;
152  bool m_blockPublicPolicyHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace GuardDuty
157 } // namespace Aws
Aws::GuardDuty::Model::BlockPublicAccess::IgnorePublicAclsHasBeenSet
bool IgnorePublicAclsHasBeenSet() const
Definition: BlockPublicAccess.h:51
Aws::GuardDuty::Model::BlockPublicAccess::RestrictPublicBucketsHasBeenSet
bool RestrictPublicBucketsHasBeenSet() const
Definition: BlockPublicAccess.h:76
Aws::GuardDuty::Model::BlockPublicAccess::BlockPublicAccess
BlockPublicAccess()
Aws::GuardDuty::Model::BlockPublicAccess::SetBlockPublicAcls
void SetBlockPublicAcls(bool value)
Definition: BlockPublicAccess.h:107
Aws::GuardDuty::Model::BlockPublicAccess::WithBlockPublicAcls
BlockPublicAccess & WithBlockPublicAcls(bool value)
Definition: BlockPublicAccess.h:113
Aws::GuardDuty::Model::BlockPublicAccess::GetIgnorePublicAcls
bool GetIgnorePublicAcls() const
Definition: BlockPublicAccess.h:45
Aws::GuardDuty::Model::BlockPublicAccess::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::BlockPublicAccess::BlockPublicPolicyHasBeenSet
bool BlockPublicPolicyHasBeenSet() const
Definition: BlockPublicAccess.h:126
Aws::GuardDuty::Model::BlockPublicAccess::SetRestrictPublicBuckets
void SetRestrictPublicBuckets(bool value)
Definition: BlockPublicAccess.h:82
Aws::GuardDuty::Model::BlockPublicAccess::BlockPublicAccess
BlockPublicAccess(Aws::Utils::Json::JsonView jsonValue)
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::BlockPublicAccess::WithRestrictPublicBuckets
BlockPublicAccess & WithRestrictPublicBuckets(bool value)
Definition: BlockPublicAccess.h:88
Aws::GuardDuty::Model::BlockPublicAccess::operator=
BlockPublicAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::BlockPublicAccess::BlockPublicAclsHasBeenSet
bool BlockPublicAclsHasBeenSet() const
Definition: BlockPublicAccess.h:101
Aws::GuardDuty::Model::BlockPublicAccess::WithIgnorePublicAcls
BlockPublicAccess & WithIgnorePublicAcls(bool value)
Definition: BlockPublicAccess.h:63
Aws::GuardDuty::Model::BlockPublicAccess::GetBlockPublicPolicy
bool GetBlockPublicPolicy() const
Definition: BlockPublicAccess.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::BlockPublicAccess::WithBlockPublicPolicy
BlockPublicAccess & WithBlockPublicPolicy(bool value)
Definition: BlockPublicAccess.h:138
Aws::GuardDuty::Model::BlockPublicAccess::GetRestrictPublicBuckets
bool GetRestrictPublicBuckets() const
Definition: BlockPublicAccess.h:70
Aws::GuardDuty::Model::BlockPublicAccess::SetIgnorePublicAcls
void SetIgnorePublicAcls(bool value)
Definition: BlockPublicAccess.h:57
Aws::GuardDuty::Model::BlockPublicAccess::GetBlockPublicAcls
bool GetBlockPublicAcls() const
Definition: BlockPublicAccess.h:95
Aws::GuardDuty::Model::BlockPublicAccess::SetBlockPublicPolicy
void SetBlockPublicPolicy(bool value)
Definition: BlockPublicAccess.h:132
Aws::GuardDuty::Model::BlockPublicAccess
Definition: BlockPublicAccess.h:33