7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/PrincipalUser.h>
9#include <aws/qbusiness/model/PrincipalGroup.h>
49 template<
typename UserT = PrincipalUser>
50 void SetUser(
UserT&& value) { m_userHasBeenSet =
true; m_user = std::forward<UserT>(value); }
51 template<
typename UserT = PrincipalUser>
61 template<
typename GroupT = PrincipalGroup>
62 void SetGroup(
GroupT&& value) { m_groupHasBeenSet =
true; m_group = std::forward<GroupT>(value); }
63 template<
typename GroupT = PrincipalGroup>
69 bool m_userHasBeenSet =
false;
72 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