AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Grant.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/S3Grantee.h>
9#include <aws/s3control/model/S3Permission.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
31 class S3Grant
32 {
33 public:
34 AWS_S3CONTROL_API S3Grant();
35 AWS_S3CONTROL_API S3Grant(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API S3Grant& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const S3Grantee& GetGrantee() const{ return m_grantee; }
46 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
47 inline void SetGrantee(const S3Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
48 inline void SetGrantee(S3Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
49 inline S3Grant& WithGrantee(const S3Grantee& value) { SetGrantee(value); return *this;}
50 inline S3Grant& WithGrantee(S3Grantee&& value) { SetGrantee(std::move(value)); return *this;}
52
54
57 inline const S3Permission& GetPermission() const{ return m_permission; }
58 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
59 inline void SetPermission(const S3Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
60 inline void SetPermission(S3Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
61 inline S3Grant& WithPermission(const S3Permission& value) { SetPermission(value); return *this;}
62 inline S3Grant& WithPermission(S3Permission&& value) { SetPermission(std::move(value)); return *this;}
64 private:
65
66 S3Grantee m_grantee;
67 bool m_granteeHasBeenSet = false;
68
69 S3Permission m_permission;
70 bool m_permissionHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace S3Control
75} // namespace Aws
S3Grant & WithPermission(S3Permission &&value)
Definition S3Grant.h:62
S3Grant & WithPermission(const S3Permission &value)
Definition S3Grant.h:61
void SetGrantee(S3Grantee &&value)
Definition S3Grant.h:48
const S3Grantee & GetGrantee() const
Definition S3Grant.h:45
void SetPermission(const S3Permission &value)
Definition S3Grant.h:59
const S3Permission & GetPermission() const
Definition S3Grant.h:57
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetPermission(S3Permission &&value)
Definition S3Grant.h:60
AWS_S3CONTROL_API S3Grant()
void SetGrantee(const S3Grantee &value)
Definition S3Grant.h:47
bool PermissionHasBeenSet() const
Definition S3Grant.h:58
AWS_S3CONTROL_API S3Grant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
S3Grant & WithGrantee(const S3Grantee &value)
Definition S3Grant.h:49
S3Grant & WithGrantee(S3Grantee &&value)
Definition S3Grant.h:50
bool GranteeHasBeenSet() const
Definition S3Grant.h:46
AWS_S3CONTROL_API S3Grant(const Aws::Utils::Xml::XmlNode &xmlNode)