AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessRules.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/AccessType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_LIGHTSAIL_API AccessRules();
39 AWS_LIGHTSAIL_API AccessRules(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API AccessRules& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
60 inline const AccessType& GetGetObject() const{ return m_getObject; }
61 inline bool GetObjectHasBeenSet() const { return m_getObjectHasBeenSet; }
62 inline void SetGetObject(const AccessType& value) { m_getObjectHasBeenSet = true; m_getObject = value; }
63 inline void SetGetObject(AccessType&& value) { m_getObjectHasBeenSet = true; m_getObject = std::move(value); }
64 inline AccessRules& WithGetObject(const AccessType& value) { SetGetObject(value); return *this;}
65 inline AccessRules& WithGetObject(AccessType&& value) { SetGetObject(std::move(value)); return *this;}
67
69
79 inline bool GetAllowPublicOverrides() const{ return m_allowPublicOverrides; }
80 inline bool AllowPublicOverridesHasBeenSet() const { return m_allowPublicOverridesHasBeenSet; }
81 inline void SetAllowPublicOverrides(bool value) { m_allowPublicOverridesHasBeenSet = true; m_allowPublicOverrides = value; }
82 inline AccessRules& WithAllowPublicOverrides(bool value) { SetAllowPublicOverrides(value); return *this;}
84 private:
85
86 AccessType m_getObject;
87 bool m_getObjectHasBeenSet = false;
88
89 bool m_allowPublicOverrides;
90 bool m_allowPublicOverridesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Lightsail
95} // namespace Aws
AccessRules & WithGetObject(AccessType &&value)
Definition AccessRules.h:65
AccessRules & WithGetObject(const AccessType &value)
Definition AccessRules.h:64
AWS_LIGHTSAIL_API AccessRules & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGetObject(AccessType &&value)
Definition AccessRules.h:63
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AccessRules & WithAllowPublicOverrides(bool value)
Definition AccessRules.h:82
void SetAllowPublicOverrides(bool value)
Definition AccessRules.h:81
AWS_LIGHTSAIL_API AccessRules(Aws::Utils::Json::JsonView jsonValue)
void SetGetObject(const AccessType &value)
Definition AccessRules.h:62
const AccessType & GetGetObject() const
Definition AccessRules.h:60
Aws::Utils::Json::JsonValue JsonValue