AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SharePrincipal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocs_EXPORTS.h>
9#include <aws/workdocs/model/PrincipalType.h>
10#include <aws/workdocs/model/RoleType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkDocs {
22namespace Model {
23
31 public:
32 AWS_WORKDOCS_API SharePrincipal() = default;
33 AWS_WORKDOCS_API SharePrincipal(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 SharePrincipal& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline PrincipalType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(PrincipalType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
75 inline RoleType GetRole() const { return m_role; }
76 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
77 inline void SetRole(RoleType value) {
78 m_roleHasBeenSet = true;
79 m_role = value;
80 }
82 SetRole(value);
83 return *this;
84 }
86 private:
87 Aws::String m_id;
88
90
92 bool m_idHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94 bool m_roleHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace WorkDocs
99} // namespace Aws
SharePrincipal & WithRole(RoleType value)
SharePrincipal & WithId(IdT &&value)
SharePrincipal & WithType(PrincipalType value)
void SetType(PrincipalType value)
AWS_WORKDOCS_API SharePrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKDOCS_API SharePrincipal()=default
AWS_WORKDOCS_API SharePrincipal(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue