7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/PermissionInfo.h>
11#include <aws/workdocs/model/PrincipalType.h>
43 template <
typename IdT = Aws::String>
45 m_idHasBeenSet =
true;
46 m_id = std::forward<IdT>(value);
48 template <
typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
62 m_typeHasBeenSet =
true;
77 template <
typename RolesT = Aws::Vector<PermissionInfo>>
79 m_rolesHasBeenSet =
true;
80 m_roles = std::forward<RolesT>(value);
82 template <
typename RolesT = Aws::Vector<PermissionInfo>>
84 SetRoles(std::forward<RolesT>(value));
87 template <
typename RolesT = PermissionInfo>
89 m_rolesHasBeenSet =
true;
90 m_roles.emplace_back(std::forward<RolesT>(value));
100 bool m_idHasBeenSet =
false;
101 bool m_typeHasBeenSet =
false;
102 bool m_rolesHasBeenSet =
false;
bool IdHasBeenSet() const
void SetType(PrincipalType value)
const Aws::Vector< PermissionInfo > & GetRoles() const
Principal & WithRoles(RolesT &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
void SetRoles(RolesT &&value)
PrincipalType GetType() const
const Aws::String & GetId() const
Principal & AddRoles(RolesT &&value)
Principal & WithType(PrincipalType value)
AWS_WORKDOCS_API Principal()=default
AWS_WORKDOCS_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKDOCS_API Principal(Aws::Utils::Json::JsonView jsonValue)
Principal & WithId(IdT &&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