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/guardduty/GuardDuty_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 GuardDuty
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_GUARDDUTY_API BlockPublicAccess();
36 AWS_GUARDDUTY_API BlockPublicAccess(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
47 inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
48 inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
49 inline BlockPublicAccess& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
51
53
57 inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
58 inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
59 inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
60 inline BlockPublicAccess& WithRestrictPublicBuckets(bool value) { SetRestrictPublicBuckets(value); return *this;}
62
64
68 inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; }
69 inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; }
70 inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; }
71 inline BlockPublicAccess& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;}
73
75
79 inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
80 inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
81 inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
82 inline BlockPublicAccess& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;}
84 private:
85
86 bool m_ignorePublicAcls;
87 bool m_ignorePublicAclsHasBeenSet = false;
88
89 bool m_restrictPublicBuckets;
90 bool m_restrictPublicBucketsHasBeenSet = false;
91
92 bool m_blockPublicAcls;
93 bool m_blockPublicAclsHasBeenSet = false;
94
95 bool m_blockPublicPolicy;
96 bool m_blockPublicPolicyHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GuardDuty
101} // namespace Aws
AWS_GUARDDUTY_API BlockPublicAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockPublicAccess & WithBlockPublicPolicy(bool value)
AWS_GUARDDUTY_API BlockPublicAccess(Aws::Utils::Json::JsonView jsonValue)
BlockPublicAccess & WithIgnorePublicAcls(bool value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
BlockPublicAccess & WithBlockPublicAcls(bool value)
BlockPublicAccess & WithRestrictPublicBuckets(bool value)
Aws::Utils::Json::JsonValue JsonValue