AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 PrincipalUser& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
60 inline ReadAccessType GetAccess() const { return m_access; }
61 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
62 inline void SetAccess(ReadAccessType value) { m_accessHasBeenSet = true; m_access = value; }
63 inline PrincipalUser& WithAccess(ReadAccessType value) { SetAccess(value); return *this;}
65
67
70 inline MembershipType GetMembershipType() const { return m_membershipType; }
71 inline bool MembershipTypeHasBeenSet() const { return m_membershipTypeHasBeenSet; }
72 inline void SetMembershipType(MembershipType value) { m_membershipTypeHasBeenSet = true; m_membershipType = value; }
73 inline PrincipalUser& WithMembershipType(MembershipType value) { SetMembershipType(value); return *this;}
75 private:
76
77 Aws::String m_id;
78 bool m_idHasBeenSet = false;
79
81 bool m_accessHasBeenSet = false;
82
84 bool m_membershipTypeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace QBusiness
89} // namespace Aws
PrincipalUser & WithAccess(ReadAccessType value)
AWS_QBUSINESS_API PrincipalUser(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
PrincipalUser & WithMembershipType(MembershipType value)
const Aws::String & GetId() const
PrincipalUser & WithId(IdT &&value)
void SetAccess(ReadAccessType value)
void SetMembershipType(MembershipType value)
MembershipType GetMembershipType() const
AWS_QBUSINESS_API PrincipalUser()=default
AWS_QBUSINESS_API PrincipalUser & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue