AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchCreateRoomMembershipRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/chime/model/MembershipItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Chime
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchCreateRoomMembership"; }
33
34 AWS_CHIME_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAccountId() const{ return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
44 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
45 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
46 inline BatchCreateRoomMembershipRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
47 inline BatchCreateRoomMembershipRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
48 inline BatchCreateRoomMembershipRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
50
52
55 inline const Aws::String& GetRoomId() const{ return m_roomId; }
56 inline bool RoomIdHasBeenSet() const { return m_roomIdHasBeenSet; }
57 inline void SetRoomId(const Aws::String& value) { m_roomIdHasBeenSet = true; m_roomId = value; }
58 inline void SetRoomId(Aws::String&& value) { m_roomIdHasBeenSet = true; m_roomId = std::move(value); }
59 inline void SetRoomId(const char* value) { m_roomIdHasBeenSet = true; m_roomId.assign(value); }
60 inline BatchCreateRoomMembershipRequest& WithRoomId(const Aws::String& value) { SetRoomId(value); return *this;}
61 inline BatchCreateRoomMembershipRequest& WithRoomId(Aws::String&& value) { SetRoomId(std::move(value)); return *this;}
62 inline BatchCreateRoomMembershipRequest& WithRoomId(const char* value) { SetRoomId(value); return *this;}
64
66
69 inline const Aws::Vector<MembershipItem>& GetMembershipItemList() const{ return m_membershipItemList; }
70 inline bool MembershipItemListHasBeenSet() const { return m_membershipItemListHasBeenSet; }
71 inline void SetMembershipItemList(const Aws::Vector<MembershipItem>& value) { m_membershipItemListHasBeenSet = true; m_membershipItemList = value; }
72 inline void SetMembershipItemList(Aws::Vector<MembershipItem>&& value) { m_membershipItemListHasBeenSet = true; m_membershipItemList = std::move(value); }
75 inline BatchCreateRoomMembershipRequest& AddMembershipItemList(const MembershipItem& value) { m_membershipItemListHasBeenSet = true; m_membershipItemList.push_back(value); return *this; }
76 inline BatchCreateRoomMembershipRequest& AddMembershipItemList(MembershipItem&& value) { m_membershipItemListHasBeenSet = true; m_membershipItemList.push_back(std::move(value)); return *this; }
78 private:
79
80 Aws::String m_accountId;
81 bool m_accountIdHasBeenSet = false;
82
83 Aws::String m_roomId;
84 bool m_roomIdHasBeenSet = false;
85
86 Aws::Vector<MembershipItem> m_membershipItemList;
87 bool m_membershipItemListHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Chime
92} // namespace Aws
BatchCreateRoomMembershipRequest & WithAccountId(Aws::String &&value)
BatchCreateRoomMembershipRequest & WithMembershipItemList(Aws::Vector< MembershipItem > &&value)
BatchCreateRoomMembershipRequest & WithRoomId(Aws::String &&value)
BatchCreateRoomMembershipRequest & WithRoomId(const Aws::String &value)
BatchCreateRoomMembershipRequest & WithMembershipItemList(const Aws::Vector< MembershipItem > &value)
const Aws::Vector< MembershipItem > & GetMembershipItemList() const
BatchCreateRoomMembershipRequest & AddMembershipItemList(MembershipItem &&value)
AWS_CHIME_API Aws::String SerializePayload() const override
BatchCreateRoomMembershipRequest & WithRoomId(const char *value)
BatchCreateRoomMembershipRequest & WithAccountId(const char *value)
void SetMembershipItemList(Aws::Vector< MembershipItem > &&value)
void SetMembershipItemList(const Aws::Vector< MembershipItem > &value)
BatchCreateRoomMembershipRequest & AddMembershipItemList(const MembershipItem &value)
BatchCreateRoomMembershipRequest & WithAccountId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector