AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MembershipItem.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/RoomMembershipRole.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 Chime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CHIME_API MembershipItem();
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMemberId() const{ return m_memberId; }
47 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
48 inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
49 inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
50 inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
51 inline MembershipItem& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
52 inline MembershipItem& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
53 inline MembershipItem& WithMemberId(const char* value) { SetMemberId(value); return *this;}
55
57
60 inline const RoomMembershipRole& GetRole() const{ return m_role; }
61 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
62 inline void SetRole(const RoomMembershipRole& value) { m_roleHasBeenSet = true; m_role = value; }
63 inline void SetRole(RoomMembershipRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
64 inline MembershipItem& WithRole(const RoomMembershipRole& value) { SetRole(value); return *this;}
65 inline MembershipItem& WithRole(RoomMembershipRole&& value) { SetRole(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_memberId;
70 bool m_memberIdHasBeenSet = false;
71
72 RoomMembershipRole m_role;
73 bool m_roleHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Chime
78} // namespace Aws
AWS_CHIME_API MembershipItem & operator=(Aws::Utils::Json::JsonView jsonValue)
MembershipItem & WithRole(const RoomMembershipRole &value)
MembershipItem & WithMemberId(const Aws::String &value)
AWS_CHIME_API MembershipItem(Aws::Utils::Json::JsonView jsonValue)
void SetRole(RoomMembershipRole &&value)
MembershipItem & WithMemberId(const char *value)
void SetMemberId(const Aws::String &value)
MembershipItem & WithRole(RoomMembershipRole &&value)
void SetRole(const RoomMembershipRole &value)
void SetMemberId(const char *value)
MembershipItem & WithMemberId(Aws::String &&value)
void SetMemberId(Aws::String &&value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
const RoomMembershipRole & GetRole() const
const Aws::String & GetMemberId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue