AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InviteUsersRequest.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/UserType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Chime
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CHIME_API InviteUsersRequest() = default;
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 "InviteUsers"; }
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 template<typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
45 template<typename AccountIdT = Aws::String>
46 InviteUsersRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
48
50
53 inline const Aws::Vector<Aws::String>& GetUserEmailList() const { return m_userEmailList; }
54 inline bool UserEmailListHasBeenSet() const { return m_userEmailListHasBeenSet; }
55 template<typename UserEmailListT = Aws::Vector<Aws::String>>
56 void SetUserEmailList(UserEmailListT&& value) { m_userEmailListHasBeenSet = true; m_userEmailList = std::forward<UserEmailListT>(value); }
57 template<typename UserEmailListT = Aws::Vector<Aws::String>>
58 InviteUsersRequest& WithUserEmailList(UserEmailListT&& value) { SetUserEmailList(std::forward<UserEmailListT>(value)); return *this;}
59 template<typename UserEmailListT = Aws::String>
60 InviteUsersRequest& AddUserEmailList(UserEmailListT&& value) { m_userEmailListHasBeenSet = true; m_userEmailList.emplace_back(std::forward<UserEmailListT>(value)); return *this; }
62
64
67 inline UserType GetUserType() const { return m_userType; }
68 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
69 inline void SetUserType(UserType value) { m_userTypeHasBeenSet = true; m_userType = value; }
70 inline InviteUsersRequest& WithUserType(UserType value) { SetUserType(value); return *this;}
72 private:
73
74 Aws::String m_accountId;
75 bool m_accountIdHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_userEmailList;
78 bool m_userEmailListHasBeenSet = false;
79
80 UserType m_userType{UserType::NOT_SET};
81 bool m_userTypeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Chime
86} // 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