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>
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>
77 bool m_idHasBeenSet =
false;
80 bool m_typeHasBeenSet =
false;
83 bool m_roleHasBeenSet =
false;
SharePrincipal & WithRole(RoleType value)
void SetRole(RoleType value)
SharePrincipal & WithId(IdT &&value)
PrincipalType GetType() const
bool TypeHasBeenSet() const
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
bool RoleHasBeenSet() const
AWS_WORKDOCS_API SharePrincipal(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
bool IdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue