AWS SDK for C++  1.9.103
AWS SDK for C++
BucketPolicy.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 GuardDuty
20 {
21 namespace Model
22 {
23 
31  {
32  public:
37 
38 
43  inline bool GetAllowsPublicReadAccess() const{ return m_allowsPublicReadAccess; }
44 
49  inline bool AllowsPublicReadAccessHasBeenSet() const { return m_allowsPublicReadAccessHasBeenSet; }
50 
55  inline void SetAllowsPublicReadAccess(bool value) { m_allowsPublicReadAccessHasBeenSet = true; m_allowsPublicReadAccess = value; }
56 
61  inline BucketPolicy& WithAllowsPublicReadAccess(bool value) { SetAllowsPublicReadAccess(value); return *this;}
62 
63 
68  inline bool GetAllowsPublicWriteAccess() const{ return m_allowsPublicWriteAccess; }
69 
74  inline bool AllowsPublicWriteAccessHasBeenSet() const { return m_allowsPublicWriteAccessHasBeenSet; }
75 
80  inline void SetAllowsPublicWriteAccess(bool value) { m_allowsPublicWriteAccessHasBeenSet = true; m_allowsPublicWriteAccess = value; }
81 
86  inline BucketPolicy& WithAllowsPublicWriteAccess(bool value) { SetAllowsPublicWriteAccess(value); return *this;}
87 
88  private:
89 
90  bool m_allowsPublicReadAccess;
91  bool m_allowsPublicReadAccessHasBeenSet;
92 
93  bool m_allowsPublicWriteAccess;
94  bool m_allowsPublicWriteAccessHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace GuardDuty
99 } // namespace Aws
Aws::GuardDuty::Model::BucketPolicy::BucketPolicy
BucketPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::BucketPolicy::WithAllowsPublicWriteAccess
BucketPolicy & WithAllowsPublicWriteAccess(bool value)
Definition: BucketPolicy.h:86
Aws::GuardDuty::Model::BucketPolicy::GetAllowsPublicWriteAccess
bool GetAllowsPublicWriteAccess() const
Definition: BucketPolicy.h:68
Aws::GuardDuty::Model::BucketPolicy::BucketPolicy
BucketPolicy()
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::BucketPolicy::WithAllowsPublicReadAccess
BucketPolicy & WithAllowsPublicReadAccess(bool value)
Definition: BucketPolicy.h:61
Aws::GuardDuty::Model::BucketPolicy::GetAllowsPublicReadAccess
bool GetAllowsPublicReadAccess() const
Definition: BucketPolicy.h:43
Aws::GuardDuty::Model::BucketPolicy
Definition: BucketPolicy.h:31
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::BucketPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::BucketPolicy::AllowsPublicReadAccessHasBeenSet
bool AllowsPublicReadAccessHasBeenSet() const
Definition: BucketPolicy.h:49
Aws::GuardDuty::Model::BucketPolicy::AllowsPublicWriteAccessHasBeenSet
bool AllowsPublicWriteAccessHasBeenSet() const
Definition: BucketPolicy.h:74
Aws::GuardDuty::Model::BucketPolicy::SetAllowsPublicReadAccess
void SetAllowsPublicReadAccess(bool value)
Definition: BucketPolicy.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::BucketPolicy::operator=
BucketPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::BucketPolicy::SetAllowsPublicWriteAccess
void SetAllowsPublicWriteAccess(bool value)
Definition: BucketPolicy.h:80