AWS SDK for C++  1.9.104
AWS SDK for C++
Grant.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 Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Glacier
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Grant();
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;
106 
107  Permission m_permission;
108  bool m_permissionHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace Glacier
113 } // namespace Aws
Aws::Glacier::Model::Grant::GetPermission
const Permission & GetPermission() const
Definition: Grant.h:75
Aws::Glacier::Model::Grant::WithGrantee
Grant & WithGrantee(const Grantee &value)
Definition: Grant.h:64
Aws::Glacier::Model::Grant
Definition: Grant.h:33
Permission.h
Aws::Glacier::Model::Grant::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::Grant::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: Grant.h:80
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::Grant::operator=
Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::Grant::WithPermission
Grant & WithPermission(const Permission &value)
Definition: Grant.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Glacier::Model::Grant::Grant
Grant()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::Grant::SetPermission
void SetPermission(const Permission &value)
Definition: Grant.h:85
Aws::Glacier::Model::Grant::WithPermission
Grant & WithPermission(Permission &&value)
Definition: Grant.h:100
Aws::Glacier::Model::Grant::SetGrantee
void SetGrantee(const Grantee &value)
Definition: Grant.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::Grant::SetPermission
void SetPermission(Permission &&value)
Definition: Grant.h:90
Aws::Glacier::Model::Grant::GetGrantee
const Grantee & GetGrantee() const
Definition: Grant.h:44
Grantee.h
Aws::Glacier::Model::Grant::WithGrantee
Grant & WithGrantee(Grantee &&value)
Definition: Grant.h:69
Aws::Glacier::Model::Permission
Permission
Definition: Permission.h:17
Aws::Glacier::Model::Grant::SetGrantee
void SetGrantee(Grantee &&value)
Definition: Grant.h:59
Aws::Glacier::Model::Grant::GranteeHasBeenSet
bool GranteeHasBeenSet() const
Definition: Grant.h:49
Aws::Glacier::Model::Grantee
Definition: Grantee.h:33
Aws::Glacier::Model::Grant::Grant
Grant(Aws::Utils::Json::JsonView jsonValue)
Glacier_EXPORTS.h