AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TargetGrant.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
37 {
38 public:
42
44
45
49 inline const Grantee& GetGrantee() const{ return m_grantee; }
50
54 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
55
59 inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
60
64 inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
65
69 inline TargetGrant& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
70
74 inline TargetGrant& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
75
76
80 inline const BucketLogsPermission& GetPermission() const{ return m_permission; }
81
85 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
86
90 inline void SetPermission(const BucketLogsPermission& value) { m_permissionHasBeenSet = true; m_permission = value; }
91
95 inline void SetPermission(BucketLogsPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
96
100 inline TargetGrant& WithPermission(const BucketLogsPermission& value) { SetPermission(value); return *this;}
101
105 inline TargetGrant& WithPermission(BucketLogsPermission&& value) { SetPermission(std::move(value)); return *this;}
106
107 private:
108
109 Grantee m_grantee;
110 bool m_granteeHasBeenSet = false;
111
112 BucketLogsPermission m_permission;
113 bool m_permissionHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace S3
118} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
bool PermissionHasBeenSet() const
Definition: TargetGrant.h:85
void SetGrantee(const Grantee &value)
Definition: TargetGrant.h:59
void SetPermission(BucketLogsPermission &&value)
Definition: TargetGrant.h:95
const BucketLogsPermission & GetPermission() const
Definition: TargetGrant.h:80
void SetPermission(const BucketLogsPermission &value)
Definition: TargetGrant.h:90
void SetGrantee(Grantee &&value)
Definition: TargetGrant.h:64
TargetGrant & WithPermission(const BucketLogsPermission &value)
Definition: TargetGrant.h:100
TargetGrant & WithGrantee(Grantee &&value)
Definition: TargetGrant.h:74
AWS_S3_API TargetGrant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetGrant & WithPermission(BucketLogsPermission &&value)
Definition: TargetGrant.h:105
const Grantee & GetGrantee() const
Definition: TargetGrant.h:49
bool GranteeHasBeenSet() const
Definition: TargetGrant.h:54
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API TargetGrant(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetGrant & WithGrantee(const Grantee &value)
Definition: TargetGrant.h:69