AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline AclPermission GetPermission() const { return m_permission; }
49 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
50 inline void SetPermission(AclPermission value) { m_permissionHasBeenSet = true; m_permission = value; }
53
55
58 inline const AclGrantee& GetGrantee() const { return m_grantee; }
59 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
60 template<typename GranteeT = AclGrantee>
61 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
62 template<typename GranteeT = AclGrantee>
63 S3BucketAclGrantConfiguration& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
65 private:
66
68 bool m_permissionHasBeenSet = false;
69
70 AclGrantee m_grantee;
71 bool m_granteeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace AccessAnalyzer
76} // namespace Aws
AWS_ACCESSANALYZER_API S3BucketAclGrantConfiguration()=default
AWS_ACCESSANALYZER_API S3BucketAclGrantConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API S3BucketAclGrantConfiguration(Aws::Utils::Json::JsonView jsonValue)
S3BucketAclGrantConfiguration & WithGrantee(GranteeT &&value)
S3BucketAclGrantConfiguration & WithPermission(AclPermission value)
Aws::Utils::Json::JsonValue JsonValue