AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Grant.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/Grantee.h>
9#include <aws/s3/model/Permission.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:
34 AWS_S3_API Grant();
35 AWS_S3_API Grant(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3_API Grant& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const Grantee& GetGrantee() const{ return m_grantee; }
46 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
47 inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
48 inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
49 inline Grant& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
50 inline Grant& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
52
54
57 inline const Permission& GetPermission() const{ return m_permission; }
58 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
59 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
60 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
61 inline Grant& WithPermission(const Permission& value) { SetPermission(value); return *this;}
62 inline Grant& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
64 private:
65
66 Grantee m_grantee;
67 bool m_granteeHasBeenSet = false;
68
69 Permission m_permission;
70 bool m_permissionHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace S3
75} // namespace Aws
bool PermissionHasBeenSet() const
Definition Grant.h:58
void SetPermission(Permission &&value)
Definition Grant.h:60
const Permission & GetPermission() const
Definition Grant.h:57
Grant & WithPermission(Permission &&value)
Definition Grant.h:62
void SetPermission(const Permission &value)
Definition Grant.h:59
Grant & WithPermission(const Permission &value)
Definition Grant.h:61
bool GranteeHasBeenSet() const
Definition Grant.h:46
Grant & WithGrantee(Grantee &&value)
Definition Grant.h:50
AWS_S3_API Grant(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGrantee(const Grantee &value)
Definition Grant.h:47
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Grant & WithGrantee(const Grantee &value)
Definition Grant.h:49
void SetGrantee(Grantee &&value)
Definition Grant.h:48
AWS_S3_API Grant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Grantee & GetGrantee() const
Definition Grant.h:45