AWS SDK for C++

AWS SDK for C++ Version 1.11.686

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glacier {
21namespace Model {
22
28class Grant {
29 public:
30 AWS_GLACIER_API Grant() = default;
31 AWS_GLACIER_API Grant(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GLACIER_API Grant& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Grantee& GetGrantee() const { return m_grantee; }
40 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
41 template <typename GranteeT = Grantee>
42 void SetGrantee(GranteeT&& value) {
43 m_granteeHasBeenSet = true;
44 m_grantee = std::forward<GranteeT>(value);
45 }
46 template <typename GranteeT = Grantee>
47 Grant& WithGrantee(GranteeT&& value) {
48 SetGrantee(std::forward<GranteeT>(value));
49 return *this;
50 }
52
54
57 inline Permission GetPermission() const { return m_permission; }
58 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
59 inline void SetPermission(Permission value) {
60 m_permissionHasBeenSet = true;
61 m_permission = value;
62 }
64 SetPermission(value);
65 return *this;
66 }
68 private:
69 Grantee m_grantee;
70 bool m_granteeHasBeenSet = false;
71
72 Permission m_permission{Permission::NOT_SET};
73 bool m_permissionHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Glacier
78} // namespace Aws
const Grantee & GetGrantee() const
Definition Grant.h:39
bool GranteeHasBeenSet() const
Definition Grant.h:40
AWS_GLACIER_API Grant(Aws::Utils::Json::JsonView jsonValue)
void SetGrantee(GranteeT &&value)
Definition Grant.h:42
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
bool PermissionHasBeenSet() const
Definition Grant.h:58
Grant & WithPermission(Permission value)
Definition Grant.h:63
Permission GetPermission() const
Definition Grant.h:57
Grant & WithGrantee(GranteeT &&value)
Definition Grant.h:47
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