AWS SDK for C++  1.8.154
AWS SDK for C++
S3Grant.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3Control
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const S3Grantee& GetGrantee() const{ return m_grantee; }
45 
49  inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
50 
54  inline void SetGrantee(const S3Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
55 
59  inline void SetGrantee(S3Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
60 
64  inline S3Grant& WithGrantee(const S3Grantee& value) { SetGrantee(value); return *this;}
65 
69  inline S3Grant& WithGrantee(S3Grantee&& value) { SetGrantee(std::move(value)); return *this;}
70 
71 
75  inline const S3Permission& GetPermission() const{ return m_permission; }
76 
80  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
81 
85  inline void SetPermission(const S3Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
86 
90  inline void SetPermission(S3Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
91 
95  inline S3Grant& WithPermission(const S3Permission& value) { SetPermission(value); return *this;}
96 
100  inline S3Grant& WithPermission(S3Permission&& value) { SetPermission(std::move(value)); return *this;}
101 
102  private:
103 
104  S3Grantee m_grantee;
105  bool m_granteeHasBeenSet;
106 
107  S3Permission m_permission;
108  bool m_permissionHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace S3Control
113 } // namespace Aws
S3Permission.h
Aws::S3Control::Model::S3Grant::WithGrantee
S3Grant & WithGrantee(S3Grantee &&value)
Definition: S3Grant.h:69
Aws::S3Control::Model::S3Grant::SetGrantee
void SetGrantee(S3Grantee &&value)
Definition: S3Grant.h:59
Aws::S3Control::Model::S3Grant
Definition: S3Grant.h:32
Aws::S3Control::Model::S3Grant::SetPermission
void SetPermission(const S3Permission &value)
Definition: S3Grant.h:85
Aws::S3Control::Model::S3Grant::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: S3Grant.h:80
Aws::S3Control::Model::S3Grant::SetPermission
void SetPermission(S3Permission &&value)
Definition: S3Grant.h:90
Aws::S3Control::Model::S3Grant::GetPermission
const S3Permission & GetPermission() const
Definition: S3Grant.h:75
S3Grantee.h
S3Control_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3Grant::SetGrantee
void SetGrantee(const S3Grantee &value)
Definition: S3Grant.h:54
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3Grant::WithPermission
S3Grant & WithPermission(S3Permission &&value)
Definition: S3Grant.h:100
Aws::S3Control::Model::S3Grantee
Definition: S3Grantee.h:32
Aws::S3Control::Model::S3Permission
S3Permission
Definition: S3Permission.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3Grant::S3Grant
S3Grant()
Aws::S3Control::Model::S3Grant::WithPermission
S3Grant & WithPermission(const S3Permission &value)
Definition: S3Grant.h:95
Aws::S3Control::Model::S3Grant::S3Grant
S3Grant(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3Grant::GetGrantee
const S3Grantee & GetGrantee() const
Definition: S3Grant.h:44
Aws::S3Control::Model::S3Grant::operator=
S3Grant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3Grant::WithGrantee
S3Grant & WithGrantee(const S3Grantee &value)
Definition: S3Grant.h:64
Aws::S3Control::Model::S3Grant::GranteeHasBeenSet
bool GranteeHasBeenSet() const
Definition: S3Grant.h:49
Aws::S3Control::Model::S3Grant::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const