AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchCreateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wickr/WickrRequest.h>
11#include <aws/wickr/Wickr_EXPORTS.h>
12#include <aws/wickr/model/BatchCreateUserRequestItem.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Wickr {
18namespace Model {
19
23 public:
24 AWS_WICKR_API BatchCreateUserRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "BatchCreateUser"; }
31
32 AWS_WICKR_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetNetworkId() const { return m_networkId; }
41 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
42 template <typename NetworkIdT = Aws::String>
43 void SetNetworkId(NetworkIdT&& value) {
44 m_networkIdHasBeenSet = true;
45 m_networkId = std::forward<NetworkIdT>(value);
46 }
47 template <typename NetworkIdT = Aws::String>
49 SetNetworkId(std::forward<NetworkIdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::Vector<BatchCreateUserRequestItem>& GetUsers() const { return m_users; }
61 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
62 template <typename UsersT = Aws::Vector<BatchCreateUserRequestItem>>
63 void SetUsers(UsersT&& value) {
64 m_usersHasBeenSet = true;
65 m_users = std::forward<UsersT>(value);
66 }
67 template <typename UsersT = Aws::Vector<BatchCreateUserRequestItem>>
69 SetUsers(std::forward<UsersT>(value));
70 return *this;
71 }
72 template <typename UsersT = BatchCreateUserRequestItem>
74 m_usersHasBeenSet = true;
75 m_users.emplace_back(std::forward<UsersT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template <typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) {
90 m_clientTokenHasBeenSet = true;
91 m_clientToken = std::forward<ClientTokenT>(value);
92 }
93 template <typename ClientTokenT = Aws::String>
94 BatchCreateUserRequest& WithClientToken(ClientTokenT&& value) {
95 SetClientToken(std::forward<ClientTokenT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_networkId;
101
103
105 bool m_networkIdHasBeenSet = false;
106 bool m_usersHasBeenSet = false;
107 bool m_clientTokenHasBeenSet = true;
108};
109
110} // namespace Model
111} // namespace Wickr
112} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
BatchCreateUserRequest & AddUsers(UsersT &&value)
AWS_WICKR_API Aws::String SerializePayload() const override
AWS_WICKR_API BatchCreateUserRequest()=default
const Aws::Vector< BatchCreateUserRequestItem > & GetUsers() const
virtual const char * GetServiceRequestName() const override
BatchCreateUserRequest & WithNetworkId(NetworkIdT &&value)
AWS_WICKR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchCreateUserRequest & WithClientToken(ClientTokenT &&value)
BatchCreateUserRequest & WithUsers(UsersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector