AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GranteeT = S3Grantee>
48 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
49 template<typename GranteeT = S3Grantee>
50 S3Grant& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
52
54
57 inline S3Permission GetPermission() const { return m_permission; }
58 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
59 inline void SetPermission(S3Permission value) { m_permissionHasBeenSet = true; m_permission = value; }
60 inline S3Grant& WithPermission(S3Permission value) { SetPermission(value); return *this;}
62 private:
63
64 S3Grantee m_grantee;
65 bool m_granteeHasBeenSet = false;
66
68 bool m_permissionHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace S3Control
73} // namespace Aws
void SetGrantee(GranteeT &&value)
Definition S3Grant.h:48
S3Grant & WithGrantee(GranteeT &&value)
Definition S3Grant.h:50
const S3Grantee & GetGrantee() const
Definition S3Grant.h:45
S3Grant & WithPermission(S3Permission value)
Definition S3Grant.h:60
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:59
bool PermissionHasBeenSet() const
Definition S3Grant.h:58
AWS_S3CONTROL_API S3Grant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool GranteeHasBeenSet() const
Definition S3Grant.h:46
AWS_S3CONTROL_API S3Grant(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API S3Grant()=default