AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateUserDetails.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
33 public:
34 AWS_WICKR_API UpdateUserDetails() = default;
37 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetFirstName() const { return m_firstName; }
44 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
45 template <typename FirstNameT = Aws::String>
46 void SetFirstName(FirstNameT&& value) {
47 m_firstNameHasBeenSet = true;
48 m_firstName = std::forward<FirstNameT>(value);
49 }
50 template <typename FirstNameT = Aws::String>
51 UpdateUserDetails& WithFirstName(FirstNameT&& value) {
52 SetFirstName(std::forward<FirstNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetLastName() const { return m_lastName; }
62 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
63 template <typename LastNameT = Aws::String>
64 void SetLastName(LastNameT&& value) {
65 m_lastNameHasBeenSet = true;
66 m_lastName = std::forward<LastNameT>(value);
67 }
68 template <typename LastNameT = Aws::String>
69 UpdateUserDetails& WithLastName(LastNameT&& value) {
70 SetLastName(std::forward<LastNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetUsername() const { return m_username; }
80 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
81 template <typename UsernameT = Aws::String>
82 void SetUsername(UsernameT&& value) {
83 m_usernameHasBeenSet = true;
84 m_username = std::forward<UsernameT>(value);
85 }
86 template <typename UsernameT = Aws::String>
87 UpdateUserDetails& WithUsername(UsernameT&& value) {
88 SetUsername(std::forward<UsernameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
98 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
99 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
100 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
101 m_securityGroupIdsHasBeenSet = true;
102 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
103 }
104 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
105 UpdateUserDetails& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
106 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
107 return *this;
108 }
109 template <typename SecurityGroupIdsT = Aws::String>
110 UpdateUserDetails& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
111 m_securityGroupIdsHasBeenSet = true;
112 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetInviteCode() const { return m_inviteCode; }
122 inline bool InviteCodeHasBeenSet() const { return m_inviteCodeHasBeenSet; }
123 template <typename InviteCodeT = Aws::String>
124 void SetInviteCode(InviteCodeT&& value) {
125 m_inviteCodeHasBeenSet = true;
126 m_inviteCode = std::forward<InviteCodeT>(value);
127 }
128 template <typename InviteCodeT = Aws::String>
129 UpdateUserDetails& WithInviteCode(InviteCodeT&& value) {
130 SetInviteCode(std::forward<InviteCodeT>(value));
131 return *this;
132 }
134
136
139 inline int GetInviteCodeTtl() const { return m_inviteCodeTtl; }
140 inline bool InviteCodeTtlHasBeenSet() const { return m_inviteCodeTtlHasBeenSet; }
141 inline void SetInviteCodeTtl(int value) {
142 m_inviteCodeTtlHasBeenSet = true;
143 m_inviteCodeTtl = value;
144 }
146 SetInviteCodeTtl(value);
147 return *this;
148 }
150
152
155 inline bool GetCodeValidation() const { return m_codeValidation; }
156 inline bool CodeValidationHasBeenSet() const { return m_codeValidationHasBeenSet; }
157 inline void SetCodeValidation(bool value) {
158 m_codeValidationHasBeenSet = true;
159 m_codeValidation = value;
160 }
162 SetCodeValidation(value);
163 return *this;
164 }
166 private:
167 Aws::String m_firstName;
168
169 Aws::String m_lastName;
170
171 Aws::String m_username;
172
173 Aws::Vector<Aws::String> m_securityGroupIds;
174
175 Aws::String m_inviteCode;
176
177 int m_inviteCodeTtl{0};
178
179 bool m_codeValidation{false};
180 bool m_firstNameHasBeenSet = false;
181 bool m_lastNameHasBeenSet = false;
182 bool m_usernameHasBeenSet = false;
183 bool m_securityGroupIdsHasBeenSet = false;
184 bool m_inviteCodeHasBeenSet = false;
185 bool m_inviteCodeTtlHasBeenSet = false;
186 bool m_codeValidationHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Wickr
191} // namespace Aws
const Aws::String & GetFirstName() const
UpdateUserDetails & WithLastName(LastNameT &&value)
AWS_WICKR_API UpdateUserDetails(Aws::Utils::Json::JsonView jsonValue)
UpdateUserDetails & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetUsername() const
UpdateUserDetails & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateUserDetails & WithFirstName(FirstNameT &&value)
void SetInviteCode(InviteCodeT &&value)
UpdateUserDetails & WithCodeValidation(bool value)
AWS_WICKR_API UpdateUserDetails()=default
UpdateUserDetails & WithInviteCode(InviteCodeT &&value)
UpdateUserDetails & WithInviteCodeTtl(int value)
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateUserDetails & WithUsername(UsernameT &&value)
const Aws::String & GetLastName() const
void SetFirstName(FirstNameT &&value)
AWS_WICKR_API UpdateUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::String & GetInviteCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue