7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/PrincipalGroup.h>
9#include <aws/qbusiness/model/PrincipalUser.h>
43 template <
typename UserT = PrincipalUser>
45 m_userHasBeenSet =
true;
46 m_user = std::forward<UserT>(value);
48 template <
typename UserT = PrincipalUser>
50 SetUser(std::forward<UserT>(value));
61 template <
typename GroupT = PrincipalGroup>
63 m_groupHasBeenSet =
true;
64 m_group = std::forward<GroupT>(value);
66 template <
typename GroupT = PrincipalGroup>
68 SetGroup(std::forward<GroupT>(value));
74 bool m_userHasBeenSet =
false;
77 bool m_groupHasBeenSet =
false;
void SetGroup(GroupT &&value)
AWS_QBUSINESS_API Principal(Aws::Utils::Json::JsonView jsonValue)
const PrincipalUser & GetUser() const
AWS_QBUSINESS_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
bool UserHasBeenSet() const
Principal & WithUser(UserT &&value)
void SetUser(UserT &&value)
bool GroupHasBeenSet() const
Principal & WithGroup(GroupT &&value)
AWS_QBUSINESS_API Principal()=default
const PrincipalGroup & GetGroup() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue