AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/model/StorageRuleType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkDocs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKDOCS_API CreateUserRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
43 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
44 template<typename OrganizationIdT = Aws::String>
45 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
46 template<typename OrganizationIdT = Aws::String>
47 CreateUserRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetUsername() const { return m_username; }
55 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
56 template<typename UsernameT = Aws::String>
57 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
58 template<typename UsernameT = Aws::String>
59 CreateUserRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
67 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
68 template<typename EmailAddressT = Aws::String>
69 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
70 template<typename EmailAddressT = Aws::String>
71 CreateUserRequest& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
73
75
78 inline const Aws::String& GetGivenName() const { return m_givenName; }
79 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
80 template<typename GivenNameT = Aws::String>
81 void SetGivenName(GivenNameT&& value) { m_givenNameHasBeenSet = true; m_givenName = std::forward<GivenNameT>(value); }
82 template<typename GivenNameT = Aws::String>
83 CreateUserRequest& WithGivenName(GivenNameT&& value) { SetGivenName(std::forward<GivenNameT>(value)); return *this;}
85
87
90 inline const Aws::String& GetSurname() const { return m_surname; }
91 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
92 template<typename SurnameT = Aws::String>
93 void SetSurname(SurnameT&& value) { m_surnameHasBeenSet = true; m_surname = std::forward<SurnameT>(value); }
94 template<typename SurnameT = Aws::String>
95 CreateUserRequest& WithSurname(SurnameT&& value) { SetSurname(std::forward<SurnameT>(value)); return *this;}
97
99
102 inline const Aws::String& GetPassword() const { return m_password; }
103 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
104 template<typename PasswordT = Aws::String>
105 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
106 template<typename PasswordT = Aws::String>
107 CreateUserRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
109
111
114 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
115 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
116 template<typename TimeZoneIdT = Aws::String>
117 void SetTimeZoneId(TimeZoneIdT&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::forward<TimeZoneIdT>(value); }
118 template<typename TimeZoneIdT = Aws::String>
119 CreateUserRequest& WithTimeZoneId(TimeZoneIdT&& value) { SetTimeZoneId(std::forward<TimeZoneIdT>(value)); return *this;}
121
123
126 inline const StorageRuleType& GetStorageRule() const { return m_storageRule; }
127 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
128 template<typename StorageRuleT = StorageRuleType>
129 void SetStorageRule(StorageRuleT&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::forward<StorageRuleT>(value); }
130 template<typename StorageRuleT = StorageRuleType>
131 CreateUserRequest& WithStorageRule(StorageRuleT&& value) { SetStorageRule(std::forward<StorageRuleT>(value)); return *this;}
133
135
139 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
140 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
141 template<typename AuthenticationTokenT = Aws::String>
142 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
143 template<typename AuthenticationTokenT = Aws::String>
144 CreateUserRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
146 private:
147
148 Aws::String m_organizationId;
149 bool m_organizationIdHasBeenSet = false;
150
151 Aws::String m_username;
152 bool m_usernameHasBeenSet = false;
153
154 Aws::String m_emailAddress;
155 bool m_emailAddressHasBeenSet = false;
156
157 Aws::String m_givenName;
158 bool m_givenNameHasBeenSet = false;
159
160 Aws::String m_surname;
161 bool m_surnameHasBeenSet = false;
162
163 Aws::String m_password;
164 bool m_passwordHasBeenSet = false;
165
166 Aws::String m_timeZoneId;
167 bool m_timeZoneIdHasBeenSet = false;
168
169 StorageRuleType m_storageRule;
170 bool m_storageRuleHasBeenSet = false;
171
172 Aws::String m_authenticationToken;
173 bool m_authenticationTokenHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace WorkDocs
178} // namespace Aws
CreateUserRequest & WithTimeZoneId(TimeZoneIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetStorageRule(StorageRuleT &&value)
AWS_WORKDOCS_API CreateUserRequest()=default
const Aws::String & GetAuthenticationToken() const
const Aws::String & GetEmailAddress() const
const Aws::String & GetTimeZoneId() const
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithStorageRule(StorageRuleT &&value)
CreateUserRequest & WithOrganizationId(OrganizationIdT &&value)
void SetEmailAddress(EmailAddressT &&value)
CreateUserRequest & WithGivenName(GivenNameT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
CreateUserRequest & WithSurname(SurnameT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
CreateUserRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
void SetOrganizationId(OrganizationIdT &&value)
const Aws::String & GetPassword() const
const Aws::String & GetGivenName() const
CreateUserRequest & WithEmailAddress(EmailAddressT &&value)
const Aws::String & GetOrganizationId() const
const Aws::String & GetUsername() const
const Aws::String & GetSurname() const
CreateUserRequest & WithPassword(PasswordT &&value)
const StorageRuleType & GetStorageRule() const
CreateUserRequest & WithUsername(UsernameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String