AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Grant.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
31 class Grant
32 {
33 public:
37
39
40
44 inline const Grantee& GetGrantee() const{ return m_grantee; }
45
49 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
50
54 inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
55
59 inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
60
64 inline Grant& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
65
69 inline Grant& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
70
71
75 inline const Permission& GetPermission() const{ return m_permission; }
76
80 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
81
85 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
86
90 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
91
95 inline Grant& WithPermission(const Permission& value) { SetPermission(value); return *this;}
96
100 inline Grant& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
101
102 private:
103
104 Grantee m_grantee;
105 bool m_granteeHasBeenSet = false;
106
107 Permission m_permission;
108 bool m_permissionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace S3
113} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
bool PermissionHasBeenSet() const
Definition: Grant.h:80
void SetPermission(Permission &&value)
Definition: Grant.h:90
const Permission & GetPermission() const
Definition: Grant.h:75
Grant & WithPermission(Permission &&value)
Definition: Grant.h:100
void SetPermission(const Permission &value)
Definition: Grant.h:85
Grant & WithPermission(const Permission &value)
Definition: Grant.h:95
bool GranteeHasBeenSet() const
Definition: Grant.h:49
Grant & WithGrantee(Grantee &&value)
Definition: Grant.h:69
AWS_S3_API Grant(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGrantee(const Grantee &value)
Definition: Grant.h:54
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Grant & WithGrantee(const Grantee &value)
Definition: Grant.h:64
void SetGrantee(Grantee &&value)
Definition: Grant.h:59
AWS_S3_API Grant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Grantee & GetGrantee() const
Definition: Grant.h:44