AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InviteUsersRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/chime/model/UserType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Chime {
17namespace Model {
18
22 public:
23 AWS_CHIME_API InviteUsersRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "InviteUsers"; }
30
31 AWS_CHIME_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAccountId() const { return m_accountId; }
38 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
39 template <typename AccountIdT = Aws::String>
40 void SetAccountId(AccountIdT&& value) {
41 m_accountIdHasBeenSet = true;
42 m_accountId = std::forward<AccountIdT>(value);
43 }
44 template <typename AccountIdT = Aws::String>
45 InviteUsersRequest& WithAccountId(AccountIdT&& value) {
46 SetAccountId(std::forward<AccountIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetUserEmailList() const { return m_userEmailList; }
56 inline bool UserEmailListHasBeenSet() const { return m_userEmailListHasBeenSet; }
57 template <typename UserEmailListT = Aws::Vector<Aws::String>>
58 void SetUserEmailList(UserEmailListT&& value) {
59 m_userEmailListHasBeenSet = true;
60 m_userEmailList = std::forward<UserEmailListT>(value);
61 }
62 template <typename UserEmailListT = Aws::Vector<Aws::String>>
63 InviteUsersRequest& WithUserEmailList(UserEmailListT&& value) {
64 SetUserEmailList(std::forward<UserEmailListT>(value));
65 return *this;
66 }
67 template <typename UserEmailListT = Aws::String>
68 InviteUsersRequest& AddUserEmailList(UserEmailListT&& value) {
69 m_userEmailListHasBeenSet = true;
70 m_userEmailList.emplace_back(std::forward<UserEmailListT>(value));
71 return *this;
72 }
74
76
79 inline UserType GetUserType() const { return m_userType; }
80 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
81 inline void SetUserType(UserType value) {
82 m_userTypeHasBeenSet = true;
83 m_userType = value;
84 }
86 SetUserType(value);
87 return *this;
88 }
90 private:
91 Aws::String m_accountId;
92
93 Aws::Vector<Aws::String> m_userEmailList;
94
95 UserType m_userType{UserType::NOT_SET};
96 bool m_accountIdHasBeenSet = false;
97 bool m_userEmailListHasBeenSet = false;
98 bool m_userTypeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Chime
103} // namespace Aws
InviteUsersRequest & WithUserEmailList(UserEmailListT &&value)
AWS_CHIME_API InviteUsersRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_CHIME_API Aws::String SerializePayload() const override
const Aws::String & GetAccountId() const
InviteUsersRequest & WithUserType(UserType value)
void SetUserEmailList(UserEmailListT &&value)
InviteUsersRequest & AddUserEmailList(UserEmailListT &&value)
InviteUsersRequest & WithAccountId(AccountIdT &&value)
const Aws::Vector< Aws::String > & GetUserEmailList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector