AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Permission.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/MemberType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workmail/model/PermissionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkMail
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_WORKMAIL_API Permission();
39 AWS_WORKMAIL_API Permission(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKMAIL_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetGranteeId() const{ return m_granteeId; }
50 inline bool GranteeIdHasBeenSet() const { return m_granteeIdHasBeenSet; }
51 inline void SetGranteeId(const Aws::String& value) { m_granteeIdHasBeenSet = true; m_granteeId = value; }
52 inline void SetGranteeId(Aws::String&& value) { m_granteeIdHasBeenSet = true; m_granteeId = std::move(value); }
53 inline void SetGranteeId(const char* value) { m_granteeIdHasBeenSet = true; m_granteeId.assign(value); }
54 inline Permission& WithGranteeId(const Aws::String& value) { SetGranteeId(value); return *this;}
55 inline Permission& WithGranteeId(Aws::String&& value) { SetGranteeId(std::move(value)); return *this;}
56 inline Permission& WithGranteeId(const char* value) { SetGranteeId(value); return *this;}
58
60
63 inline const MemberType& GetGranteeType() const{ return m_granteeType; }
64 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
65 inline void SetGranteeType(const MemberType& value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
66 inline void SetGranteeType(MemberType&& value) { m_granteeTypeHasBeenSet = true; m_granteeType = std::move(value); }
67 inline Permission& WithGranteeType(const MemberType& value) { SetGranteeType(value); return *this;}
68 inline Permission& WithGranteeType(MemberType&& value) { SetGranteeType(std::move(value)); return *this;}
70
72
80 inline const Aws::Vector<PermissionType>& GetPermissionValues() const{ return m_permissionValues; }
81 inline bool PermissionValuesHasBeenSet() const { return m_permissionValuesHasBeenSet; }
82 inline void SetPermissionValues(const Aws::Vector<PermissionType>& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = value; }
83 inline void SetPermissionValues(Aws::Vector<PermissionType>&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = std::move(value); }
85 inline Permission& WithPermissionValues(Aws::Vector<PermissionType>&& value) { SetPermissionValues(std::move(value)); return *this;}
86 inline Permission& AddPermissionValues(const PermissionType& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(value); return *this; }
87 inline Permission& AddPermissionValues(PermissionType&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_granteeId;
92 bool m_granteeIdHasBeenSet = false;
93
94 MemberType m_granteeType;
95 bool m_granteeTypeHasBeenSet = false;
96
97 Aws::Vector<PermissionType> m_permissionValues;
98 bool m_permissionValuesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace WorkMail
103} // namespace Aws
const Aws::Vector< PermissionType > & GetPermissionValues() const
Definition Permission.h:80
void SetGranteeId(const char *value)
Definition Permission.h:53
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGranteeId() const
Definition Permission.h:49
Permission & WithGranteeType(MemberType &&value)
Definition Permission.h:68
AWS_WORKMAIL_API Permission(Aws::Utils::Json::JsonView jsonValue)
void SetPermissionValues(Aws::Vector< PermissionType > &&value)
Definition Permission.h:83
Permission & WithGranteeId(const char *value)
Definition Permission.h:56
Permission & WithPermissionValues(const Aws::Vector< PermissionType > &value)
Definition Permission.h:84
void SetPermissionValues(const Aws::Vector< PermissionType > &value)
Definition Permission.h:82
void SetGranteeType(MemberType &&value)
Definition Permission.h:66
Permission & WithGranteeId(const Aws::String &value)
Definition Permission.h:54
Permission & AddPermissionValues(PermissionType &&value)
Definition Permission.h:87
Permission & WithGranteeId(Aws::String &&value)
Definition Permission.h:55
void SetGranteeId(const Aws::String &value)
Definition Permission.h:51
const MemberType & GetGranteeType() const
Definition Permission.h:63
Permission & AddPermissionValues(const PermissionType &value)
Definition Permission.h:86
void SetGranteeId(Aws::String &&value)
Definition Permission.h:52
AWS_WORKMAIL_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PermissionValuesHasBeenSet() const
Definition Permission.h:81
Permission & WithGranteeType(const MemberType &value)
Definition Permission.h:67
void SetGranteeType(const MemberType &value)
Definition Permission.h:65
Permission & WithPermissionValues(Aws::Vector< PermissionType > &&value)
Definition Permission.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue