AWS SDK for C++  1.9.104
AWS SDK for C++
AccessControlList.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 AccessControlList& 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 AccessControlList& 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::AccessControlList::WithAllowsPublicWriteAccess
AccessControlList & WithAllowsPublicWriteAccess(bool value)
Definition: AccessControlList.h:86
Aws::GuardDuty::Model::AccessControlList::WithAllowsPublicReadAccess
AccessControlList & WithAllowsPublicReadAccess(bool value)
Definition: AccessControlList.h:61
Aws::GuardDuty::Model::AccessControlList::SetAllowsPublicWriteAccess
void SetAllowsPublicWriteAccess(bool value)
Definition: AccessControlList.h:80
Aws::GuardDuty::Model::AccessControlList::GetAllowsPublicWriteAccess
bool GetAllowsPublicWriteAccess() const
Definition: AccessControlList.h:68
Aws::GuardDuty::Model::AccessControlList
Definition: AccessControlList.h:31
Aws::GuardDuty::Model::AccessControlList::AccessControlList
AccessControlList(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AccessControlList::AllowsPublicWriteAccessHasBeenSet
bool AllowsPublicWriteAccessHasBeenSet() const
Definition: AccessControlList.h:74
Aws::GuardDuty::Model::AccessControlList::GetAllowsPublicReadAccess
bool GetAllowsPublicReadAccess() const
Definition: AccessControlList.h:43
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::AccessControlList::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::AccessControlList::SetAllowsPublicReadAccess
void SetAllowsPublicReadAccess(bool value)
Definition: AccessControlList.h:55
Aws::GuardDuty::Model::AccessControlList::operator=
AccessControlList & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::AccessControlList::AccessControlList
AccessControlList()
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::AccessControlList::AllowsPublicReadAccessHasBeenSet
bool AllowsPublicReadAccessHasBeenSet() const
Definition: AccessControlList.h:49