AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3BucketAclGrantConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/AclPermission.h>
9#include <aws/accessanalyzer/model/AclGrantee.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_ACCESSANALYZER_API S3BucketAclGrantConfiguration();
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const AclPermission& GetPermission() const{ return m_permission; }
49 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
50 inline void SetPermission(const AclPermission& value) { m_permissionHasBeenSet = true; m_permission = value; }
51 inline void SetPermission(AclPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
52 inline S3BucketAclGrantConfiguration& WithPermission(const AclPermission& value) { SetPermission(value); return *this;}
53 inline S3BucketAclGrantConfiguration& WithPermission(AclPermission&& value) { SetPermission(std::move(value)); return *this;}
55
57
60 inline const AclGrantee& GetGrantee() const{ return m_grantee; }
61 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
62 inline void SetGrantee(const AclGrantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
63 inline void SetGrantee(AclGrantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
64 inline S3BucketAclGrantConfiguration& WithGrantee(const AclGrantee& value) { SetGrantee(value); return *this;}
65 inline S3BucketAclGrantConfiguration& WithGrantee(AclGrantee&& value) { SetGrantee(std::move(value)); return *this;}
67 private:
68
69 AclPermission m_permission;
70 bool m_permissionHasBeenSet = false;
71
72 AclGrantee m_grantee;
73 bool m_granteeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AccessAnalyzer
78} // namespace Aws
S3BucketAclGrantConfiguration & WithPermission(AclPermission &&value)
AWS_ACCESSANALYZER_API S3BucketAclGrantConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
S3BucketAclGrantConfiguration & WithGrantee(const AclGrantee &value)
S3BucketAclGrantConfiguration & WithGrantee(AclGrantee &&value)
S3BucketAclGrantConfiguration & WithPermission(const AclPermission &value)
AWS_ACCESSANALYZER_API S3BucketAclGrantConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue