AWS SDK for C++  1.9.104
AWS SDK for C++
AccessRules.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
59  inline const AccessType& GetGetObject() const{ return m_getObject; }
60 
76  inline bool GetObjectHasBeenSet() const { return m_getObjectHasBeenSet; }
77 
93  inline void SetGetObject(const AccessType& value) { m_getObjectHasBeenSet = true; m_getObject = value; }
94 
110  inline void SetGetObject(AccessType&& value) { m_getObjectHasBeenSet = true; m_getObject = std::move(value); }
111 
127  inline AccessRules& WithGetObject(const AccessType& value) { SetGetObject(value); return *this;}
128 
144  inline AccessRules& WithGetObject(AccessType&& value) { SetGetObject(std::move(value)); return *this;}
145 
146 
157  inline bool GetAllowPublicOverrides() const{ return m_allowPublicOverrides; }
158 
169  inline bool AllowPublicOverridesHasBeenSet() const { return m_allowPublicOverridesHasBeenSet; }
170 
181  inline void SetAllowPublicOverrides(bool value) { m_allowPublicOverridesHasBeenSet = true; m_allowPublicOverrides = value; }
182 
193  inline AccessRules& WithAllowPublicOverrides(bool value) { SetAllowPublicOverrides(value); return *this;}
194 
195  private:
196 
197  AccessType m_getObject;
198  bool m_getObjectHasBeenSet;
199 
200  bool m_allowPublicOverrides;
201  bool m_allowPublicOverridesHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace Lightsail
206 } // namespace Aws
Aws::Lightsail::Model::AccessRules::SetGetObject
void SetGetObject(const AccessType &value)
Definition: AccessRules.h:93
Aws::Lightsail::Model::AccessRules::GetGetObject
const AccessType & GetGetObject() const
Definition: AccessRules.h:59
Aws::Lightsail::Model::AccessRules::operator=
AccessRules & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessType.h
Aws::Lightsail::Model::AccessRules::AllowPublicOverridesHasBeenSet
bool AllowPublicOverridesHasBeenSet() const
Definition: AccessRules.h:169
Aws::Lightsail::Model::AccessRules::SetGetObject
void SetGetObject(AccessType &&value)
Definition: AccessRules.h:110
Aws::Lightsail::Model::AccessRules::WithAllowPublicOverrides
AccessRules & WithAllowPublicOverrides(bool value)
Definition: AccessRules.h:193
Aws::Lightsail::Model::AccessRules::WithGetObject
AccessRules & WithGetObject(const AccessType &value)
Definition: AccessRules.h:127
Aws::Lightsail::Model::AccessType
AccessType
Definition: AccessType.h:17
Aws::Lightsail::Model::AccessRules::WithGetObject
AccessRules & WithGetObject(AccessType &&value)
Definition: AccessRules.h:144
Aws::Lightsail::Model::AccessRules::AccessRules
AccessRules()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AccessRules::GetObjectHasBeenSet
bool GetObjectHasBeenSet() const
Definition: AccessRules.h:76
Aws::Lightsail::Model::AccessRules
Definition: AccessRules.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AccessRules::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AccessRules::AccessRules
AccessRules(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AccessRules::SetAllowPublicOverrides
void SetAllowPublicOverrides(bool value)
Definition: AccessRules.h:181
Aws::Lightsail::Model::AccessRules::GetAllowPublicOverrides
bool GetAllowPublicOverrides() const
Definition: AccessRules.h:157