AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline SharePrincipal& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline SharePrincipal& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline SharePrincipal& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const PrincipalType& GetType() const{ return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(const PrincipalType& value) { m_typeHasBeenSet = true; m_type = value; }
64 inline void SetType(PrincipalType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
65 inline SharePrincipal& WithType(const PrincipalType& value) { SetType(value); return *this;}
66 inline SharePrincipal& WithType(PrincipalType&& value) { SetType(std::move(value)); return *this;}
68
70
73 inline const RoleType& GetRole() const{ return m_role; }
74 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
75 inline void SetRole(const RoleType& value) { m_roleHasBeenSet = true; m_role = value; }
76 inline void SetRole(RoleType&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
77 inline SharePrincipal& WithRole(const RoleType& value) { SetRole(value); return *this;}
78 inline SharePrincipal& WithRole(RoleType&& value) { SetRole(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_id;
83 bool m_idHasBeenSet = false;
84
85 PrincipalType m_type;
86 bool m_typeHasBeenSet = false;
87
88 RoleType m_role;
89 bool m_roleHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace WorkDocs
94} // namespace Aws
SharePrincipal & WithType(const PrincipalType &value)
SharePrincipal & WithRole(const RoleType &value)
void SetRole(const RoleType &value)
SharePrincipal & WithId(const Aws::String &value)
AWS_WORKDOCS_API SharePrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
SharePrincipal & WithId(Aws::String &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(Aws::String &&value)
void SetType(PrincipalType &&value)
const RoleType & GetRole() const
AWS_WORKDOCS_API SharePrincipal(Aws::Utils::Json::JsonView jsonValue)
void SetType(const PrincipalType &value)
SharePrincipal & WithType(PrincipalType &&value)
SharePrincipal & WithRole(RoleType &&value)
const PrincipalType & GetType() const
SharePrincipal & WithId(const char *value)
const Aws::String & GetId() const
void SetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue