AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PermissionInfo.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/model/RoleType.h>
9#include <aws/workdocs/model/RolePermissionType.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 WorkDocs
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_WORKDOCS_API PermissionInfo();
36 AWS_WORKDOCS_API PermissionInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const RoleType& GetRole() const{ return m_role; }
46 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
47 inline void SetRole(const RoleType& value) { m_roleHasBeenSet = true; m_role = value; }
48 inline void SetRole(RoleType&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
49 inline PermissionInfo& WithRole(const RoleType& value) { SetRole(value); return *this;}
50 inline PermissionInfo& WithRole(RoleType&& value) { SetRole(std::move(value)); return *this;}
52
54
57 inline const RolePermissionType& GetType() const{ return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(const RolePermissionType& value) { m_typeHasBeenSet = true; m_type = value; }
60 inline void SetType(RolePermissionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 inline PermissionInfo& WithType(const RolePermissionType& value) { SetType(value); return *this;}
62 inline PermissionInfo& WithType(RolePermissionType&& value) { SetType(std::move(value)); return *this;}
64 private:
65
66 RoleType m_role;
67 bool m_roleHasBeenSet = false;
68
69 RolePermissionType m_type;
70 bool m_typeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace WorkDocs
75} // namespace Aws
void SetType(RolePermissionType &&value)
AWS_WORKDOCS_API PermissionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
PermissionInfo & WithRole(RoleType &&value)
PermissionInfo & WithRole(const RoleType &value)
const RolePermissionType & GetType() const
PermissionInfo & WithType(RolePermissionType &&value)
AWS_WORKDOCS_API PermissionInfo(Aws::Utils::Json::JsonView jsonValue)
void SetType(const RolePermissionType &value)
const RoleType & GetRole() const
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRole(const RoleType &value)
PermissionInfo & WithType(const RolePermissionType &value)
Aws::Utils::Json::JsonValue JsonValue