AWS SDK for C++  1.9.20
AWS SDK for C++
BucketLevelPermissions.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GuardDuty
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const AccessControlList& GetAccessControlList() const{ return m_accessControlList; }
48 
53  inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
54 
59  inline void SetAccessControlList(const AccessControlList& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
60 
65  inline void SetAccessControlList(AccessControlList&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
66 
71  inline BucketLevelPermissions& WithAccessControlList(const AccessControlList& value) { SetAccessControlList(value); return *this;}
72 
77  inline BucketLevelPermissions& WithAccessControlList(AccessControlList&& value) { SetAccessControlList(std::move(value)); return *this;}
78 
79 
83  inline const BucketPolicy& GetBucketPolicy() const{ return m_bucketPolicy; }
84 
88  inline bool BucketPolicyHasBeenSet() const { return m_bucketPolicyHasBeenSet; }
89 
93  inline void SetBucketPolicy(const BucketPolicy& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = value; }
94 
98  inline void SetBucketPolicy(BucketPolicy&& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = std::move(value); }
99 
103  inline BucketLevelPermissions& WithBucketPolicy(const BucketPolicy& value) { SetBucketPolicy(value); return *this;}
104 
108  inline BucketLevelPermissions& WithBucketPolicy(BucketPolicy&& value) { SetBucketPolicy(std::move(value)); return *this;}
109 
110 
115  inline const BlockPublicAccess& GetBlockPublicAccess() const{ return m_blockPublicAccess; }
116 
121  inline bool BlockPublicAccessHasBeenSet() const { return m_blockPublicAccessHasBeenSet; }
122 
127  inline void SetBlockPublicAccess(const BlockPublicAccess& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = value; }
128 
133  inline void SetBlockPublicAccess(BlockPublicAccess&& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = std::move(value); }
134 
139  inline BucketLevelPermissions& WithBlockPublicAccess(const BlockPublicAccess& value) { SetBlockPublicAccess(value); return *this;}
140 
145  inline BucketLevelPermissions& WithBlockPublicAccess(BlockPublicAccess&& value) { SetBlockPublicAccess(std::move(value)); return *this;}
146 
147  private:
148 
149  AccessControlList m_accessControlList;
150  bool m_accessControlListHasBeenSet;
151 
152  BucketPolicy m_bucketPolicy;
153  bool m_bucketPolicyHasBeenSet;
154 
155  BlockPublicAccess m_blockPublicAccess;
156  bool m_blockPublicAccessHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace GuardDuty
161 } // namespace Aws
Aws::GuardDuty::Model::BucketLevelPermissions::SetBucketPolicy
void SetBucketPolicy(BucketPolicy &&value)
Definition: BucketLevelPermissions.h:98
Aws::GuardDuty::Model::BucketLevelPermissions
Definition: BucketLevelPermissions.h:35
Aws::GuardDuty::Model::BucketLevelPermissions::BucketPolicyHasBeenSet
bool BucketPolicyHasBeenSet() const
Definition: BucketLevelPermissions.h:88
Aws::GuardDuty::Model::BucketLevelPermissions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::BucketLevelPermissions::BucketLevelPermissions
BucketLevelPermissions(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::BucketLevelPermissions::SetBlockPublicAccess
void SetBlockPublicAccess(const BlockPublicAccess &value)
Definition: BucketLevelPermissions.h:127
Aws::GuardDuty::Model::BucketLevelPermissions::WithBucketPolicy
BucketLevelPermissions & WithBucketPolicy(const BucketPolicy &value)
Definition: BucketLevelPermissions.h:103
Aws::GuardDuty::Model::BucketLevelPermissions::WithBucketPolicy
BucketLevelPermissions & WithBucketPolicy(BucketPolicy &&value)
Definition: BucketLevelPermissions.h:108
Aws::GuardDuty::Model::BucketLevelPermissions::GetAccessControlList
const AccessControlList & GetAccessControlList() const
Definition: BucketLevelPermissions.h:47
Aws::GuardDuty::Model::BucketLevelPermissions::GetBlockPublicAccess
const BlockPublicAccess & GetBlockPublicAccess() const
Definition: BucketLevelPermissions.h:115
Aws::GuardDuty::Model::BucketLevelPermissions::WithBlockPublicAccess
BucketLevelPermissions & WithBlockPublicAccess(BlockPublicAccess &&value)
Definition: BucketLevelPermissions.h:145
Aws::GuardDuty::Model::AccessControlList
Definition: AccessControlList.h:31
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::BucketLevelPermissions::SetAccessControlList
void SetAccessControlList(const AccessControlList &value)
Definition: BucketLevelPermissions.h:59
Aws::GuardDuty::Model::BucketLevelPermissions::AccessControlListHasBeenSet
bool AccessControlListHasBeenSet() const
Definition: BucketLevelPermissions.h:53
Aws::GuardDuty::Model::BucketLevelPermissions::WithAccessControlList
BucketLevelPermissions & WithAccessControlList(const AccessControlList &value)
Definition: BucketLevelPermissions.h:71
Aws::GuardDuty::Model::BucketPolicy
Definition: BucketPolicy.h:31
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::BucketLevelPermissions::BlockPublicAccessHasBeenSet
bool BlockPublicAccessHasBeenSet() const
Definition: BucketLevelPermissions.h:121
Aws::GuardDuty::Model::BucketLevelPermissions::GetBucketPolicy
const BucketPolicy & GetBucketPolicy() const
Definition: BucketLevelPermissions.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::BucketLevelPermissions::SetAccessControlList
void SetAccessControlList(AccessControlList &&value)
Definition: BucketLevelPermissions.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::BucketLevelPermissions::operator=
BucketLevelPermissions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::BucketLevelPermissions::SetBucketPolicy
void SetBucketPolicy(const BucketPolicy &value)
Definition: BucketLevelPermissions.h:93
Aws::GuardDuty::Model::BucketLevelPermissions::WithAccessControlList
BucketLevelPermissions & WithAccessControlList(AccessControlList &&value)
Definition: BucketLevelPermissions.h:77
Aws::GuardDuty::Model::BucketLevelPermissions::SetBlockPublicAccess
void SetBlockPublicAccess(BlockPublicAccess &&value)
Definition: BucketLevelPermissions.h:133
BucketPolicy.h
BlockPublicAccess.h
AccessControlList.h
Aws::GuardDuty::Model::BucketLevelPermissions::BucketLevelPermissions
BucketLevelPermissions()
Aws::GuardDuty::Model::BucketLevelPermissions::WithBlockPublicAccess
BucketLevelPermissions & WithBlockPublicAccess(const BlockPublicAccess &value)
Definition: BucketLevelPermissions.h:139
Aws::GuardDuty::Model::BlockPublicAccess
Definition: BlockPublicAccess.h:33