AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Permission.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/MemberType.h>
11#include <aws/workmail/model/PermissionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkMail {
23namespace Model {
24
32 public:
33 AWS_WORKMAIL_API Permission() = default;
34 AWS_WORKMAIL_API Permission(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKMAIL_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetGranteeId() const { return m_granteeId; }
44 inline bool GranteeIdHasBeenSet() const { return m_granteeIdHasBeenSet; }
45 template <typename GranteeIdT = Aws::String>
46 void SetGranteeId(GranteeIdT&& value) {
47 m_granteeIdHasBeenSet = true;
48 m_granteeId = std::forward<GranteeIdT>(value);
49 }
50 template <typename GranteeIdT = Aws::String>
51 Permission& WithGranteeId(GranteeIdT&& value) {
52 SetGranteeId(std::forward<GranteeIdT>(value));
53 return *this;
54 }
56
58
61 inline MemberType GetGranteeType() const { return m_granteeType; }
62 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
63 inline void SetGranteeType(MemberType value) {
64 m_granteeTypeHasBeenSet = true;
65 m_granteeType = value;
66 }
68 SetGranteeType(value);
69 return *this;
70 }
72
74
82 inline const Aws::Vector<PermissionType>& GetPermissionValues() const { return m_permissionValues; }
83 inline bool PermissionValuesHasBeenSet() const { return m_permissionValuesHasBeenSet; }
84 template <typename PermissionValuesT = Aws::Vector<PermissionType>>
85 void SetPermissionValues(PermissionValuesT&& value) {
86 m_permissionValuesHasBeenSet = true;
87 m_permissionValues = std::forward<PermissionValuesT>(value);
88 }
89 template <typename PermissionValuesT = Aws::Vector<PermissionType>>
90 Permission& WithPermissionValues(PermissionValuesT&& value) {
91 SetPermissionValues(std::forward<PermissionValuesT>(value));
92 return *this;
93 }
95 m_permissionValuesHasBeenSet = true;
96 m_permissionValues.push_back(value);
97 return *this;
98 }
100 private:
101 Aws::String m_granteeId;
102
103 MemberType m_granteeType{MemberType::NOT_SET};
104
105 Aws::Vector<PermissionType> m_permissionValues;
106 bool m_granteeIdHasBeenSet = false;
107 bool m_granteeTypeHasBeenSet = false;
108 bool m_permissionValuesHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace WorkMail
113} // namespace Aws
const Aws::Vector< PermissionType > & GetPermissionValues() const
Definition Permission.h:82
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGranteeId() const
Definition Permission.h:43
AWS_WORKMAIL_API Permission(Aws::Utils::Json::JsonView jsonValue)
Permission & AddPermissionValues(PermissionType value)
Definition Permission.h:94
void SetPermissionValues(PermissionValuesT &&value)
Definition Permission.h:85
MemberType GetGranteeType() const
Definition Permission.h:61
void SetGranteeType(MemberType value)
Definition Permission.h:63
Permission & WithPermissionValues(PermissionValuesT &&value)
Definition Permission.h:90
void SetGranteeId(GranteeIdT &&value)
Definition Permission.h:46
Permission & WithGranteeType(MemberType value)
Definition Permission.h:67
AWS_WORKMAIL_API Permission()=default
AWS_WORKMAIL_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PermissionValuesHasBeenSet() const
Definition Permission.h:83
Permission & WithGranteeId(GranteeIdT &&value)
Definition Permission.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue