AWS SDK for C++  1.9.157
AWS SDK for C++
S3PublicAccessBlockConfiguration.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 AccessAnalyzer
20 {
21 namespace Model
22 {
23 
39  {
40  public:
45 
46 
51  inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; }
52 
57  inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; }
58 
63  inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; }
64 
69  inline S3PublicAccessBlockConfiguration& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;}
70 
71 
76  inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; }
77 
82  inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; }
83 
88  inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; }
89 
94  inline S3PublicAccessBlockConfiguration& WithRestrictPublicBuckets(bool value) { SetRestrictPublicBuckets(value); return *this;}
95 
96  private:
97 
98  bool m_ignorePublicAcls;
99  bool m_ignorePublicAclsHasBeenSet;
100 
101  bool m_restrictPublicBuckets;
102  bool m_restrictPublicBucketsHasBeenSet;
103  };
104 
105 } // namespace Model
106 } // namespace AccessAnalyzer
107 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::WithRestrictPublicBuckets
S3PublicAccessBlockConfiguration & WithRestrictPublicBuckets(bool value)
Definition: S3PublicAccessBlockConfiguration.h:94
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::S3PublicAccessBlockConfiguration
S3PublicAccessBlockConfiguration()
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::SetIgnorePublicAcls
void SetIgnorePublicAcls(bool value)
Definition: S3PublicAccessBlockConfiguration.h:63
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::GetRestrictPublicBuckets
bool GetRestrictPublicBuckets() const
Definition: S3PublicAccessBlockConfiguration.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::operator=
S3PublicAccessBlockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::S3PublicAccessBlockConfiguration
S3PublicAccessBlockConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::IgnorePublicAclsHasBeenSet
bool IgnorePublicAclsHasBeenSet() const
Definition: S3PublicAccessBlockConfiguration.h:57
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::GetIgnorePublicAcls
bool GetIgnorePublicAcls() const
Definition: S3PublicAccessBlockConfiguration.h:51
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::SetRestrictPublicBuckets
void SetRestrictPublicBuckets(bool value)
Definition: S3PublicAccessBlockConfiguration.h:88
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration
Definition: S3PublicAccessBlockConfiguration.h:39
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::RestrictPublicBucketsHasBeenSet
bool RestrictPublicBucketsHasBeenSet() const
Definition: S3PublicAccessBlockConfiguration.h:82
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration::WithIgnorePublicAcls
S3PublicAccessBlockConfiguration & WithIgnorePublicAcls(bool value)
Definition: S3PublicAccessBlockConfiguration.h:69