AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Principal.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/PrincipalUser.h>
9#include <aws/qbusiness/model/PrincipalGroup.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_QBUSINESS_API Principal();
38 AWS_QBUSINESS_API Principal(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API Principal& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PrincipalUser& GetUser() const{ return m_user; }
48 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
49 inline void SetUser(const PrincipalUser& value) { m_userHasBeenSet = true; m_user = value; }
50 inline void SetUser(PrincipalUser&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
51 inline Principal& WithUser(const PrincipalUser& value) { SetUser(value); return *this;}
52 inline Principal& WithUser(PrincipalUser&& value) { SetUser(std::move(value)); return *this;}
54
56
59 inline const PrincipalGroup& GetGroup() const{ return m_group; }
60 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
61 inline void SetGroup(const PrincipalGroup& value) { m_groupHasBeenSet = true; m_group = value; }
62 inline void SetGroup(PrincipalGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
63 inline Principal& WithGroup(const PrincipalGroup& value) { SetGroup(value); return *this;}
64 inline Principal& WithGroup(PrincipalGroup&& value) { SetGroup(std::move(value)); return *this;}
66 private:
67
68 PrincipalUser m_user;
69 bool m_userHasBeenSet = false;
70
71 PrincipalGroup m_group;
72 bool m_groupHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace QBusiness
77} // namespace Aws
Principal & WithUser(const PrincipalUser &value)
Definition Principal.h:51
AWS_QBUSINESS_API Principal(Aws::Utils::Json::JsonView jsonValue)
const PrincipalUser & GetUser() const
Definition Principal.h:47
AWS_QBUSINESS_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGroup(PrincipalGroup &&value)
Definition Principal.h:62
void SetGroup(const PrincipalGroup &value)
Definition Principal.h:61
AWS_QBUSINESS_API Principal()
Principal & WithGroup(PrincipalGroup &&value)
Definition Principal.h:64
void SetUser(PrincipalUser &&value)
Definition Principal.h:50
void SetUser(const PrincipalUser &value)
Definition Principal.h:49
const PrincipalGroup & GetGroup() const
Definition Principal.h:59
Principal & WithUser(PrincipalUser &&value)
Definition Principal.h:52
Principal & WithGroup(const PrincipalGroup &value)
Definition Principal.h:63
Aws::Utils::Json::JsonValue JsonValue