AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PermissionInfo.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/model/RolePermissionType.h>
9#include <aws/workdocs/model/RoleType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WorkDocs {
21namespace Model {
22
29 public:
30 AWS_WORKDOCS_API PermissionInfo() = default;
31 AWS_WORKDOCS_API PermissionInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline RoleType GetRole() const { return m_role; }
40 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
41 inline void SetRole(RoleType value) {
42 m_roleHasBeenSet = true;
43 m_role = value;
44 }
46 SetRole(value);
47 return *this;
48 }
50
52
55 inline RolePermissionType GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(RolePermissionType value) {
58 m_typeHasBeenSet = true;
59 m_type = value;
60 }
62 SetType(value);
63 return *this;
64 }
66 private:
68
70 bool m_roleHasBeenSet = false;
71 bool m_typeHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace WorkDocs
76} // namespace Aws
AWS_WORKDOCS_API PermissionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
PermissionInfo & WithType(RolePermissionType value)
void SetType(RolePermissionType value)
AWS_WORKDOCS_API PermissionInfo()=default
RolePermissionType GetType() const
AWS_WORKDOCS_API PermissionInfo(Aws::Utils::Json::JsonView jsonValue)
PermissionInfo & WithRole(RoleType value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue