AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BucketPolicy.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_GUARDDUTY_API BucketPolicy();
34 AWS_GUARDDUTY_API BucketPolicy(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API BucketPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline bool GetAllowsPublicReadAccess() const{ return m_allowsPublicReadAccess; }
45 inline bool AllowsPublicReadAccessHasBeenSet() const { return m_allowsPublicReadAccessHasBeenSet; }
46 inline void SetAllowsPublicReadAccess(bool value) { m_allowsPublicReadAccessHasBeenSet = true; m_allowsPublicReadAccess = value; }
47 inline BucketPolicy& WithAllowsPublicReadAccess(bool value) { SetAllowsPublicReadAccess(value); return *this;}
49
51
55 inline bool GetAllowsPublicWriteAccess() const{ return m_allowsPublicWriteAccess; }
56 inline bool AllowsPublicWriteAccessHasBeenSet() const { return m_allowsPublicWriteAccessHasBeenSet; }
57 inline void SetAllowsPublicWriteAccess(bool value) { m_allowsPublicWriteAccessHasBeenSet = true; m_allowsPublicWriteAccess = value; }
58 inline BucketPolicy& WithAllowsPublicWriteAccess(bool value) { SetAllowsPublicWriteAccess(value); return *this;}
60 private:
61
62 bool m_allowsPublicReadAccess;
63 bool m_allowsPublicReadAccessHasBeenSet = false;
64
65 bool m_allowsPublicWriteAccess;
66 bool m_allowsPublicWriteAccessHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace GuardDuty
71} // namespace Aws
AWS_GUARDDUTY_API BucketPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API BucketPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetAllowsPublicWriteAccess(bool value)
void SetAllowsPublicReadAccess(bool value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
BucketPolicy & WithAllowsPublicWriteAccess(bool value)
BucketPolicy & WithAllowsPublicReadAccess(bool value)
Aws::Utils::Json::JsonValue JsonValue