AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SharePrincipal.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/model/PrincipalType.h>
10#include <aws/workdocs/model/RoleType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkDocs
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_WORKDOCS_API SharePrincipal() = default;
38 AWS_WORKDOCS_API SharePrincipal(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 SharePrincipal& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline PrincipalType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(PrincipalType value) { m_typeHasBeenSet = true; m_type = value; }
62 inline SharePrincipal& WithType(PrincipalType value) { SetType(value); return *this;}
64
66
69 inline RoleType GetRole() const { return m_role; }
70 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
71 inline void SetRole(RoleType value) { m_roleHasBeenSet = true; m_role = value; }
72 inline SharePrincipal& WithRole(RoleType value) { SetRole(value); return *this;}
74 private:
75
76 Aws::String m_id;
77 bool m_idHasBeenSet = false;
78
80 bool m_typeHasBeenSet = false;
81
83 bool m_roleHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WorkDocs
88} // 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