AWS SDK for C++  1.9.159
AWS SDK for C++
S3BucketAclGrantConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AccessAnalyzer
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const AclGrantee& GetGrantee() const{ return m_grantee; }
48 
52  inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
53 
57  inline void SetGrantee(const AclGrantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
58 
62  inline void SetGrantee(AclGrantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
63 
67  inline S3BucketAclGrantConfiguration& WithGrantee(const AclGrantee& value) { SetGrantee(value); return *this;}
68 
72  inline S3BucketAclGrantConfiguration& WithGrantee(AclGrantee&& value) { SetGrantee(std::move(value)); return *this;}
73 
74 
78  inline const AclPermission& GetPermission() const{ return m_permission; }
79 
83  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
84 
88  inline void SetPermission(const AclPermission& value) { m_permissionHasBeenSet = true; m_permission = value; }
89 
93  inline void SetPermission(AclPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
94 
98  inline S3BucketAclGrantConfiguration& WithPermission(const AclPermission& value) { SetPermission(value); return *this;}
99 
103  inline S3BucketAclGrantConfiguration& WithPermission(AclPermission&& value) { SetPermission(std::move(value)); return *this;}
104 
105  private:
106 
107  AclGrantee m_grantee;
108  bool m_granteeHasBeenSet;
109 
110  AclPermission m_permission;
111  bool m_permissionHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace AccessAnalyzer
116 } // namespace Aws
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::S3BucketAclGrantConfiguration
S3BucketAclGrantConfiguration(Aws::Utils::Json::JsonView jsonValue)
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration
Definition: S3BucketAclGrantConfiguration.h:36
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::S3BucketAclGrantConfiguration
S3BucketAclGrantConfiguration()
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::WithGrantee
S3BucketAclGrantConfiguration & WithGrantee(AclGrantee &&value)
Definition: S3BucketAclGrantConfiguration.h:72
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::GetGrantee
const AclGrantee & GetGrantee() const
Definition: S3BucketAclGrantConfiguration.h:47
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::SetPermission
void SetPermission(AclPermission &&value)
Definition: S3BucketAclGrantConfiguration.h:93
AclPermission.h
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::WithPermission
S3BucketAclGrantConfiguration & WithPermission(AclPermission &&value)
Definition: S3BucketAclGrantConfiguration.h:103
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::operator=
S3BucketAclGrantConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::SetPermission
void SetPermission(const AclPermission &value)
Definition: S3BucketAclGrantConfiguration.h:88
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::SetGrantee
void SetGrantee(AclGrantee &&value)
Definition: S3BucketAclGrantConfiguration.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::WithPermission
S3BucketAclGrantConfiguration & WithPermission(const AclPermission &value)
Definition: S3BucketAclGrantConfiguration.h:98
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::SetGrantee
void SetGrantee(const AclGrantee &value)
Definition: S3BucketAclGrantConfiguration.h:57
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::WithGrantee
S3BucketAclGrantConfiguration & WithGrantee(const AclGrantee &value)
Definition: S3BucketAclGrantConfiguration.h:67
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::GranteeHasBeenSet
bool GranteeHasBeenSet() const
Definition: S3BucketAclGrantConfiguration.h:52
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: S3BucketAclGrantConfiguration.h:83
Aws::AccessAnalyzer::Model::S3BucketAclGrantConfiguration::GetPermission
const AclPermission & GetPermission() const
Definition: S3BucketAclGrantConfiguration.h:78
Aws::AccessAnalyzer::Model::AclPermission
AclPermission
Definition: AclPermission.h:17
Aws::AccessAnalyzer::Model::AclGrantee
Definition: AclGrantee.h:35
AclGrantee.h