AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PrincipalUser.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ReadAccessType.h>
10#include <aws/qbusiness/model/MembershipType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QBUSINESS_API PrincipalUser();
38 AWS_QBUSINESS_API PrincipalUser(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API PrincipalUser& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
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); }
52 inline PrincipalUser& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline PrincipalUser& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline PrincipalUser& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline const ReadAccessType& GetAccess() const{ return m_access; }
63 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
64 inline void SetAccess(const ReadAccessType& value) { m_accessHasBeenSet = true; m_access = value; }
65 inline void SetAccess(ReadAccessType&& value) { m_accessHasBeenSet = true; m_access = std::move(value); }
66 inline PrincipalUser& WithAccess(const ReadAccessType& value) { SetAccess(value); return *this;}
67 inline PrincipalUser& WithAccess(ReadAccessType&& value) { SetAccess(std::move(value)); return *this;}
69
71
74 inline const MembershipType& GetMembershipType() const{ return m_membershipType; }
75 inline bool MembershipTypeHasBeenSet() const { return m_membershipTypeHasBeenSet; }
76 inline void SetMembershipType(const MembershipType& value) { m_membershipTypeHasBeenSet = true; m_membershipType = value; }
77 inline void SetMembershipType(MembershipType&& value) { m_membershipTypeHasBeenSet = true; m_membershipType = std::move(value); }
78 inline PrincipalUser& WithMembershipType(const MembershipType& value) { SetMembershipType(value); return *this;}
79 inline PrincipalUser& WithMembershipType(MembershipType&& value) { SetMembershipType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_id;
84 bool m_idHasBeenSet = false;
85
86 ReadAccessType m_access;
87 bool m_accessHasBeenSet = false;
88
89 MembershipType m_membershipType;
90 bool m_membershipTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace QBusiness
95} // namespace Aws
void SetId(Aws::String &&value)
void SetId(const Aws::String &value)
void SetAccess(ReadAccessType &&value)
AWS_QBUSINESS_API PrincipalUser(Aws::Utils::Json::JsonView jsonValue)
PrincipalUser & WithAccess(const ReadAccessType &value)
PrincipalUser & WithMembershipType(const MembershipType &value)
void SetMembershipType(MembershipType &&value)
PrincipalUser & WithId(Aws::String &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
PrincipalUser & WithAccess(ReadAccessType &&value)
const MembershipType & GetMembershipType() const
const Aws::String & GetId() const
PrincipalUser & WithId(const char *value)
PrincipalUser & WithMembershipType(MembershipType &&value)
PrincipalUser & WithId(const Aws::String &value)
void SetMembershipType(const MembershipType &value)
void SetAccess(const ReadAccessType &value)
const ReadAccessType & GetAccess() const
AWS_QBUSINESS_API PrincipalUser & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue