AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchCreateUserRequestItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Wickr {
21namespace Model {
22
34 public:
35 AWS_WICKR_API BatchCreateUserRequestItem() = default;
38 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFirstName() const { return m_firstName; }
45 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
46 template <typename FirstNameT = Aws::String>
47 void SetFirstName(FirstNameT&& value) {
48 m_firstNameHasBeenSet = true;
49 m_firstName = std::forward<FirstNameT>(value);
50 }
51 template <typename FirstNameT = Aws::String>
53 SetFirstName(std::forward<FirstNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetLastName() const { return m_lastName; }
63 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
64 template <typename LastNameT = Aws::String>
65 void SetLastName(LastNameT&& value) {
66 m_lastNameHasBeenSet = true;
67 m_lastName = std::forward<LastNameT>(value);
68 }
69 template <typename LastNameT = Aws::String>
71 SetLastName(std::forward<LastNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
81 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
82 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
83 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
84 m_securityGroupIdsHasBeenSet = true;
85 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
86 }
87 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
89 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
90 return *this;
91 }
92 template <typename SecurityGroupIdsT = Aws::String>
93 BatchCreateUserRequestItem& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
94 m_securityGroupIdsHasBeenSet = true;
95 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetUsername() const { return m_username; }
106 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
107 template <typename UsernameT = Aws::String>
108 void SetUsername(UsernameT&& value) {
109 m_usernameHasBeenSet = true;
110 m_username = std::forward<UsernameT>(value);
111 }
112 template <typename UsernameT = Aws::String>
114 SetUsername(std::forward<UsernameT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetInviteCode() const { return m_inviteCode; }
125 inline bool InviteCodeHasBeenSet() const { return m_inviteCodeHasBeenSet; }
126 template <typename InviteCodeT = Aws::String>
127 void SetInviteCode(InviteCodeT&& value) {
128 m_inviteCodeHasBeenSet = true;
129 m_inviteCode = std::forward<InviteCodeT>(value);
130 }
131 template <typename InviteCodeT = Aws::String>
133 SetInviteCode(std::forward<InviteCodeT>(value));
134 return *this;
135 }
137
139
143 inline int GetInviteCodeTtl() const { return m_inviteCodeTtl; }
144 inline bool InviteCodeTtlHasBeenSet() const { return m_inviteCodeTtlHasBeenSet; }
145 inline void SetInviteCodeTtl(int value) {
146 m_inviteCodeTtlHasBeenSet = true;
147 m_inviteCodeTtl = value;
148 }
150 SetInviteCodeTtl(value);
151 return *this;
152 }
154
156
159 inline bool GetCodeValidation() const { return m_codeValidation; }
160 inline bool CodeValidationHasBeenSet() const { return m_codeValidationHasBeenSet; }
161 inline void SetCodeValidation(bool value) {
162 m_codeValidationHasBeenSet = true;
163 m_codeValidation = value;
164 }
166 SetCodeValidation(value);
167 return *this;
168 }
170 private:
171 Aws::String m_firstName;
172
173 Aws::String m_lastName;
174
175 Aws::Vector<Aws::String> m_securityGroupIds;
176
177 Aws::String m_username;
178
179 Aws::String m_inviteCode;
180
181 int m_inviteCodeTtl{0};
182
183 bool m_codeValidation{false};
184 bool m_firstNameHasBeenSet = false;
185 bool m_lastNameHasBeenSet = false;
186 bool m_securityGroupIdsHasBeenSet = false;
187 bool m_usernameHasBeenSet = false;
188 bool m_inviteCodeHasBeenSet = false;
189 bool m_inviteCodeTtlHasBeenSet = false;
190 bool m_codeValidationHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace Wickr
195} // namespace Aws
BatchCreateUserRequestItem & WithInviteCodeTtl(int value)
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
BatchCreateUserRequestItem & AddSecurityGroupIds(SecurityGroupIdsT &&value)
BatchCreateUserRequestItem & WithCodeValidation(bool value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_WICKR_API BatchCreateUserRequestItem()=default
BatchCreateUserRequestItem & WithInviteCode(InviteCodeT &&value)
BatchCreateUserRequestItem & WithUsername(UsernameT &&value)
BatchCreateUserRequestItem & WithFirstName(FirstNameT &&value)
BatchCreateUserRequestItem & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_WICKR_API BatchCreateUserRequestItem(Aws::Utils::Json::JsonView jsonValue)
BatchCreateUserRequestItem & WithLastName(LastNameT &&value)
AWS_WICKR_API BatchCreateUserRequestItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue