AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MemberUser.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/MembershipType.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
33 {
34 public:
35 AWS_QBUSINESS_API MemberUser();
36 AWS_QBUSINESS_API MemberUser(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QBUSINESS_API MemberUser& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetUserId() const{ return m_userId; }
46 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
47 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
48 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
49 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
50 inline MemberUser& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
51 inline MemberUser& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
52 inline MemberUser& WithUserId(const char* value) { SetUserId(value); return *this;}
54
56
59 inline const MembershipType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const MembershipType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(MembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline MemberUser& WithType(const MembershipType& value) { SetType(value); return *this;}
64 inline MemberUser& WithType(MembershipType&& value) { SetType(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_userId;
69 bool m_userIdHasBeenSet = false;
70
71 MembershipType m_type;
72 bool m_typeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace QBusiness
77} // namespace Aws
MemberUser & WithUserId(Aws::String &&value)
Definition MemberUser.h:51
AWS_QBUSINESS_API MemberUser(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API MemberUser()
void SetType(MembershipType &&value)
Definition MemberUser.h:62
const MembershipType & GetType() const
Definition MemberUser.h:59
void SetUserId(const Aws::String &value)
Definition MemberUser.h:47
MemberUser & WithUserId(const char *value)
Definition MemberUser.h:52
AWS_QBUSINESS_API MemberUser & operator=(Aws::Utils::Json::JsonView jsonValue)
MemberUser & WithType(const MembershipType &value)
Definition MemberUser.h:63
const Aws::String & GetUserId() const
Definition MemberUser.h:45
void SetUserId(const char *value)
Definition MemberUser.h:49
void SetUserId(Aws::String &&value)
Definition MemberUser.h:48
MemberUser & WithUserId(const Aws::String &value)
Definition MemberUser.h:50
void SetType(const MembershipType &value)
Definition MemberUser.h:61
MemberUser & WithType(MembershipType &&value)
Definition MemberUser.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue