AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RoomMembership.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/Member.h>
10#include <aws/chime/model/RoomMembershipRole.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Chime
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CHIME_API RoomMembership();
40 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRoomId() const{ return m_roomId; }
48 inline bool RoomIdHasBeenSet() const { return m_roomIdHasBeenSet; }
49 inline void SetRoomId(const Aws::String& value) { m_roomIdHasBeenSet = true; m_roomId = value; }
50 inline void SetRoomId(Aws::String&& value) { m_roomIdHasBeenSet = true; m_roomId = std::move(value); }
51 inline void SetRoomId(const char* value) { m_roomIdHasBeenSet = true; m_roomId.assign(value); }
52 inline RoomMembership& WithRoomId(const Aws::String& value) { SetRoomId(value); return *this;}
53 inline RoomMembership& WithRoomId(Aws::String&& value) { SetRoomId(std::move(value)); return *this;}
54 inline RoomMembership& WithRoomId(const char* value) { SetRoomId(value); return *this;}
56
58
62 inline const Member& GetMember() const{ return m_member; }
63 inline bool MemberHasBeenSet() const { return m_memberHasBeenSet; }
64 inline void SetMember(const Member& value) { m_memberHasBeenSet = true; m_member = value; }
65 inline void SetMember(Member&& value) { m_memberHasBeenSet = true; m_member = std::move(value); }
66 inline RoomMembership& WithMember(const Member& value) { SetMember(value); return *this;}
67 inline RoomMembership& WithMember(Member&& value) { SetMember(std::move(value)); return *this;}
69
71
74 inline const RoomMembershipRole& GetRole() const{ return m_role; }
75 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
76 inline void SetRole(const RoomMembershipRole& value) { m_roleHasBeenSet = true; m_role = value; }
77 inline void SetRole(RoomMembershipRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
78 inline RoomMembership& WithRole(const RoomMembershipRole& value) { SetRole(value); return *this;}
79 inline RoomMembership& WithRole(RoomMembershipRole&& value) { SetRole(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetInvitedBy() const{ return m_invitedBy; }
87 inline bool InvitedByHasBeenSet() const { return m_invitedByHasBeenSet; }
88 inline void SetInvitedBy(const Aws::String& value) { m_invitedByHasBeenSet = true; m_invitedBy = value; }
89 inline void SetInvitedBy(Aws::String&& value) { m_invitedByHasBeenSet = true; m_invitedBy = std::move(value); }
90 inline void SetInvitedBy(const char* value) { m_invitedByHasBeenSet = true; m_invitedBy.assign(value); }
91 inline RoomMembership& WithInvitedBy(const Aws::String& value) { SetInvitedBy(value); return *this;}
92 inline RoomMembership& WithInvitedBy(Aws::String&& value) { SetInvitedBy(std::move(value)); return *this;}
93 inline RoomMembership& WithInvitedBy(const char* value) { SetInvitedBy(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
101 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
102 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; }
103 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); }
105 inline RoomMembership& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_roomId;
110 bool m_roomIdHasBeenSet = false;
111
112 Member m_member;
113 bool m_memberHasBeenSet = false;
114
115 RoomMembershipRole m_role;
116 bool m_roleHasBeenSet = false;
117
118 Aws::String m_invitedBy;
119 bool m_invitedByHasBeenSet = false;
120
121 Aws::Utils::DateTime m_updatedTimestamp;
122 bool m_updatedTimestampHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Chime
127} // namespace Aws
void SetInvitedBy(Aws::String &&value)
RoomMembership & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetInvitedBy(const Aws::String &value)
RoomMembership & WithRoomId(const Aws::String &value)
void SetRole(const RoomMembershipRole &value)
RoomMembership & WithMember(const Member &value)
RoomMembership & WithRole(RoomMembershipRole &&value)
void SetRole(RoomMembershipRole &&value)
const Member & GetMember() const
RoomMembership & WithMember(Member &&value)
const Aws::String & GetRoomId() const
void SetRoomId(Aws::String &&value)
void SetMember(const Member &value)
AWS_CHIME_API RoomMembership & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
const RoomMembershipRole & GetRole() const
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoomId(const Aws::String &value)
RoomMembership & WithRoomId(Aws::String &&value)
RoomMembership & WithInvitedBy(const char *value)
RoomMembership & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
AWS_CHIME_API RoomMembership(Aws::Utils::Json::JsonView jsonValue)
RoomMembership & WithRoomId(const char *value)
void SetUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetRoomId(const char *value)
RoomMembership & WithInvitedBy(const Aws::String &value)
RoomMembership & WithRole(const RoomMembershipRole &value)
const Aws::String & GetInvitedBy() const
RoomMembership & WithInvitedBy(Aws::String &&value)
void SetInvitedBy(const char *value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue