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/core/utils/memory/stl/AWSVector.h>
11#include <aws/workdocs/model/PermissionInfo.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); }
85 bool m_idHasBeenSet =
false;
88 bool m_typeHasBeenSet =
false;
91 bool m_rolesHasBeenSet =
false;
bool IdHasBeenSet() const
Principal & WithRoles(Aws::Vector< PermissionInfo > &&value)
Principal & WithType(PrincipalType &&value)
void SetId(Aws::String &&value)
const Aws::Vector< PermissionInfo > & GetRoles() const
Principal & WithType(const PrincipalType &value)
void SetId(const Aws::String &value)
void SetType(PrincipalType &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKDOCS_API Principal()
bool TypeHasBeenSet() const
void SetRoles(Aws::Vector< PermissionInfo > &&value)
Principal & WithId(const char *value)
void SetType(const PrincipalType &value)
const Aws::String & GetId() const
void SetRoles(const Aws::Vector< PermissionInfo > &value)
AWS_WORKDOCS_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
Principal & AddRoles(PermissionInfo &&value)
Principal & WithRoles(const Aws::Vector< PermissionInfo > &value)
AWS_WORKDOCS_API Principal(Aws::Utils::Json::JsonView jsonValue)
Principal & WithId(Aws::String &&value)
void SetId(const char *value)
const PrincipalType & GetType() const
Principal & AddRoles(const PermissionInfo &value)
Principal & WithId(const Aws::String &value)
bool RolesHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue