AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
S3PublicAccessBlockConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AccessAnalyzer {
17namespace Model {
18
34 public:
35 AWS_ACCESSANALYZER_API S3PublicAccessBlockConfiguration() = default;
38 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline bool GetIgnorePublicAcls() const { return m_ignorePublicAcls; }
46 inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
47 inline void SetIgnorePublicAcls(bool value) {
48 m_ignorePublicAclsHasBeenSet = true;
49 m_ignorePublicAcls = value;
50 }
53 return *this;
54 }
56
58
62 inline bool GetRestrictPublicBuckets() const { return m_restrictPublicBuckets; }
63 inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
64 inline void SetRestrictPublicBuckets(bool value) {
65 m_restrictPublicBucketsHasBeenSet = true;
66 m_restrictPublicBuckets = value;
67 }
70 return *this;
71 }
73 private:
74 bool m_ignorePublicAcls{false};
75
76 bool m_restrictPublicBuckets{false};
77 bool m_ignorePublicAclsHasBeenSet = false;
78 bool m_restrictPublicBucketsHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace AccessAnalyzer
83} // namespace Aws
AWS_ACCESSANALYZER_API S3PublicAccessBlockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API S3PublicAccessBlockConfiguration()=default
AWS_ACCESSANALYZER_API S3PublicAccessBlockConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
S3PublicAccessBlockConfiguration & WithRestrictPublicBuckets(bool value)
Aws::Utils::Json::JsonValue JsonValue