AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BucketPublicAccess.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/EffectivePermission.h>
9#include <aws/macie2/model/BucketPermissionConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MACIE2_API BucketPublicAccess();
39 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline const EffectivePermission& GetEffectivePermission() const{ return m_effectivePermission; }
52 inline bool EffectivePermissionHasBeenSet() const { return m_effectivePermissionHasBeenSet; }
53 inline void SetEffectivePermission(const EffectivePermission& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = value; }
54 inline void SetEffectivePermission(EffectivePermission&& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = std::move(value); }
56 inline BucketPublicAccess& WithEffectivePermission(EffectivePermission&& value) { SetEffectivePermission(std::move(value)); return *this;}
58
60
63 inline const BucketPermissionConfiguration& GetPermissionConfiguration() const{ return m_permissionConfiguration; }
64 inline bool PermissionConfigurationHasBeenSet() const { return m_permissionConfigurationHasBeenSet; }
65 inline void SetPermissionConfiguration(const BucketPermissionConfiguration& value) { m_permissionConfigurationHasBeenSet = true; m_permissionConfiguration = value; }
66 inline void SetPermissionConfiguration(BucketPermissionConfiguration&& value) { m_permissionConfigurationHasBeenSet = true; m_permissionConfiguration = std::move(value); }
70 private:
71
72 EffectivePermission m_effectivePermission;
73 bool m_effectivePermissionHasBeenSet = false;
74
75 BucketPermissionConfiguration m_permissionConfiguration;
76 bool m_permissionConfigurationHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Macie2
81} // namespace Aws
BucketPublicAccess & WithPermissionConfiguration(const BucketPermissionConfiguration &value)
const BucketPermissionConfiguration & GetPermissionConfiguration() const
void SetPermissionConfiguration(BucketPermissionConfiguration &&value)
const EffectivePermission & GetEffectivePermission() const
void SetEffectivePermission(EffectivePermission &&value)
AWS_MACIE2_API BucketPublicAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
BucketPublicAccess & WithEffectivePermission(EffectivePermission &&value)
AWS_MACIE2_API BucketPublicAccess(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEffectivePermission(const EffectivePermission &value)
BucketPublicAccess & WithPermissionConfiguration(BucketPermissionConfiguration &&value)
BucketPublicAccess & WithEffectivePermission(const EffectivePermission &value)
void SetPermissionConfiguration(const BucketPermissionConfiguration &value)
Aws::Utils::Json::JsonValue JsonValue