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/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/model/Grantee.h>
9#include <aws/glacier/model/Permission.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glacier
23{
24namespace Model
25{
26
32 class Grant
33 {
34 public:
35 AWS_GLACIER_API Grant();
36 AWS_GLACIER_API Grant(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLACIER_API Grant& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() 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 Glacier
75} // namespace Aws
Grant & WithPermission(const Permission &value)
Definition Grant.h:61
const Grantee & GetGrantee() const
Definition Grant.h:45
bool GranteeHasBeenSet() const
Definition Grant.h:46
Grant & WithGrantee(Grantee &&value)
Definition Grant.h:50
AWS_GLACIER_API Grant(Aws::Utils::Json::JsonView jsonValue)
Grant & WithPermission(Permission &&value)
Definition Grant.h:62
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
bool PermissionHasBeenSet() const
Definition Grant.h:58
void SetGrantee(const Grantee &value)
Definition Grant.h:47
const Permission & GetPermission() const
Definition Grant.h:57
void SetPermission(Permission &&value)
Definition Grant.h:60
AWS_GLACIER_API Grant()
Grant & WithGrantee(const Grantee &value)
Definition Grant.h:49
void SetGrantee(Grantee &&value)
Definition Grant.h:48
AWS_GLACIER_API Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPermission(const Permission &value)
Definition Grant.h:59
Aws::Utils::Json::JsonValue JsonValue