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>
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); }
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); }
83 bool m_idHasBeenSet =
false;
86 bool m_typeHasBeenSet =
false;
89 bool m_roleHasBeenSet =
false;
SharePrincipal & WithType(const PrincipalType &value)
SharePrincipal & WithRole(const RoleType &value)
void SetRole(const RoleType &value)
bool TypeHasBeenSet() const
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
bool RoleHasBeenSet() const
void SetRole(RoleType &&value)
AWS_WORKDOCS_API SharePrincipal(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKDOCS_API SharePrincipal()
void SetId(const char *value)
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)
bool IdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue