AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GranteeT = Grantee>
48 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
49 template<typename GranteeT = Grantee>
50 Grant& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
52
54
57 inline Permission GetPermission() const { return m_permission; }
58 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
59 inline void SetPermission(Permission value) { m_permissionHasBeenSet = true; m_permission = value; }
60 inline Grant& WithPermission(Permission value) { SetPermission(value); return *this;}
62 private:
63
64 Grantee m_grantee;
65 bool m_granteeHasBeenSet = false;
66
67 Permission m_permission{Permission::NOT_SET};
68 bool m_permissionHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Glacier
73} // namespace Aws
const Grantee & GetGrantee() const
Definition Grant.h:45
bool GranteeHasBeenSet() const
Definition Grant.h:46
AWS_GLACIER_API Grant(Aws::Utils::Json::JsonView jsonValue)
void SetGrantee(GranteeT &&value)
Definition Grant.h:48
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
bool PermissionHasBeenSet() const
Definition Grant.h:58
Grant & WithPermission(Permission value)
Definition Grant.h:60
Permission GetPermission() const
Definition Grant.h:57
Grant & WithGrantee(GranteeT &&value)
Definition Grant.h:50
AWS_GLACIER_API Grant()=default
AWS_GLACIER_API Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPermission(Permission value)
Definition Grant.h:59
Aws::Utils::Json::JsonValue JsonValue