AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateRoomMembershipRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chime/model/RoomMembershipRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Chime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CHIME_API UpdateRoomMembershipRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoomMembership"; }
32
33 AWS_CHIME_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template<typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
44 template<typename AccountIdT = Aws::String>
45 UpdateRoomMembershipRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetRoomId() const { return m_roomId; }
53 inline bool RoomIdHasBeenSet() const { return m_roomIdHasBeenSet; }
54 template<typename RoomIdT = Aws::String>
55 void SetRoomId(RoomIdT&& value) { m_roomIdHasBeenSet = true; m_roomId = std::forward<RoomIdT>(value); }
56 template<typename RoomIdT = Aws::String>
57 UpdateRoomMembershipRequest& WithRoomId(RoomIdT&& value) { SetRoomId(std::forward<RoomIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetMemberId() const { return m_memberId; }
65 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
66 template<typename MemberIdT = Aws::String>
67 void SetMemberId(MemberIdT&& value) { m_memberIdHasBeenSet = true; m_memberId = std::forward<MemberIdT>(value); }
68 template<typename MemberIdT = Aws::String>
69 UpdateRoomMembershipRequest& WithMemberId(MemberIdT&& value) { SetMemberId(std::forward<MemberIdT>(value)); return *this;}
71
73
76 inline RoomMembershipRole GetRole() const { return m_role; }
77 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
78 inline void SetRole(RoomMembershipRole value) { m_roleHasBeenSet = true; m_role = value; }
79 inline UpdateRoomMembershipRequest& WithRole(RoomMembershipRole value) { SetRole(value); return *this;}
81 private:
82
83 Aws::String m_accountId;
84 bool m_accountIdHasBeenSet = false;
85
86 Aws::String m_roomId;
87 bool m_roomIdHasBeenSet = false;
88
89 Aws::String m_memberId;
90 bool m_memberIdHasBeenSet = false;
91
93 bool m_roleHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Chime
98} // namespace Aws
UpdateRoomMembershipRequest & WithMemberId(MemberIdT &&value)
AWS_CHIME_API Aws::String SerializePayload() const override
AWS_CHIME_API UpdateRoomMembershipRequest()=default
UpdateRoomMembershipRequest & WithRoomId(RoomIdT &&value)
UpdateRoomMembershipRequest & WithAccountId(AccountIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRoomMembershipRequest & WithRole(RoomMembershipRole value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String