AWS SDK for C++  1.9.102
AWS SDK for C++
JoinDomainRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace StorageGateway
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "JoinDomain"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
47 
53  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
54 
60  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
61 
67  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
68 
74  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
75 
81  inline JoinDomainRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
82 
88  inline JoinDomainRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
89 
95  inline JoinDomainRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
96 
97 
101  inline const Aws::String& GetDomainName() const{ return m_domainName; }
102 
106  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
107 
111  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
112 
116  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
117 
121  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
122 
126  inline JoinDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
127 
131  inline JoinDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
132 
136  inline JoinDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
137 
138 
144  inline const Aws::String& GetOrganizationalUnit() const{ return m_organizationalUnit; }
145 
151  inline bool OrganizationalUnitHasBeenSet() const { return m_organizationalUnitHasBeenSet; }
152 
158  inline void SetOrganizationalUnit(const Aws::String& value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit = value; }
159 
165  inline void SetOrganizationalUnit(Aws::String&& value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit = std::move(value); }
166 
172  inline void SetOrganizationalUnit(const char* value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit.assign(value); }
173 
179  inline JoinDomainRequest& WithOrganizationalUnit(const Aws::String& value) { SetOrganizationalUnit(value); return *this;}
180 
186  inline JoinDomainRequest& WithOrganizationalUnit(Aws::String&& value) { SetOrganizationalUnit(std::move(value)); return *this;}
187 
193  inline JoinDomainRequest& WithOrganizationalUnit(const char* value) { SetOrganizationalUnit(value); return *this;}
194 
195 
201  inline const Aws::Vector<Aws::String>& GetDomainControllers() const{ return m_domainControllers; }
202 
208  inline bool DomainControllersHasBeenSet() const { return m_domainControllersHasBeenSet; }
209 
215  inline void SetDomainControllers(const Aws::Vector<Aws::String>& value) { m_domainControllersHasBeenSet = true; m_domainControllers = value; }
216 
222  inline void SetDomainControllers(Aws::Vector<Aws::String>&& value) { m_domainControllersHasBeenSet = true; m_domainControllers = std::move(value); }
223 
229  inline JoinDomainRequest& WithDomainControllers(const Aws::Vector<Aws::String>& value) { SetDomainControllers(value); return *this;}
230 
236  inline JoinDomainRequest& WithDomainControllers(Aws::Vector<Aws::String>&& value) { SetDomainControllers(std::move(value)); return *this;}
237 
243  inline JoinDomainRequest& AddDomainControllers(const Aws::String& value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(value); return *this; }
244 
250  inline JoinDomainRequest& AddDomainControllers(Aws::String&& value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(std::move(value)); return *this; }
251 
257  inline JoinDomainRequest& AddDomainControllers(const char* value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(value); return *this; }
258 
259 
264  inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
265 
270  inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
271 
276  inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
277 
282  inline JoinDomainRequest& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
283 
284 
292  inline const Aws::String& GetUserName() const{ return m_userName; }
293 
301  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
302 
310  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
311 
319  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
320 
328  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
329 
337  inline JoinDomainRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
338 
346  inline JoinDomainRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
347 
355  inline JoinDomainRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
356 
357 
362  inline const Aws::String& GetPassword() const{ return m_password; }
363 
368  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
369 
374  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
375 
380  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
381 
386  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
387 
392  inline JoinDomainRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
393 
398  inline JoinDomainRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
399 
404  inline JoinDomainRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
405 
406  private:
407 
408  Aws::String m_gatewayARN;
409  bool m_gatewayARNHasBeenSet;
410 
411  Aws::String m_domainName;
412  bool m_domainNameHasBeenSet;
413 
414  Aws::String m_organizationalUnit;
415  bool m_organizationalUnitHasBeenSet;
416 
417  Aws::Vector<Aws::String> m_domainControllers;
418  bool m_domainControllersHasBeenSet;
419 
420  int m_timeoutInSeconds;
421  bool m_timeoutInSecondsHasBeenSet;
422 
423  Aws::String m_userName;
424  bool m_userNameHasBeenSet;
425 
426  Aws::String m_password;
427  bool m_passwordHasBeenSet;
428  };
429 
430 } // namespace Model
431 } // namespace StorageGateway
432 } // namespace Aws
Aws::StorageGateway::Model::JoinDomainRequest
Definition: JoinDomainRequest.h:26
Aws::StorageGateway::Model::JoinDomainRequest::WithDomainControllers
JoinDomainRequest & WithDomainControllers(const Aws::Vector< Aws::String > &value)
Definition: JoinDomainRequest.h:229
Aws::StorageGateway::Model::JoinDomainRequest::WithDomainName
JoinDomainRequest & WithDomainName(const Aws::String &value)
Definition: JoinDomainRequest.h:126
Aws::StorageGateway::Model::JoinDomainRequest::WithUserName
JoinDomainRequest & WithUserName(const Aws::String &value)
Definition: JoinDomainRequest.h:337
Aws::StorageGateway::Model::JoinDomainRequest::WithPassword
JoinDomainRequest & WithPassword(const Aws::String &value)
Definition: JoinDomainRequest.h:392
Aws::StorageGateway::Model::JoinDomainRequest::GetDomainControllers
const Aws::Vector< Aws::String > & GetDomainControllers() const
Definition: JoinDomainRequest.h:201
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::JoinDomainRequest::SetOrganizationalUnit
void SetOrganizationalUnit(const char *value)
Definition: JoinDomainRequest.h:172
Aws::StorageGateway::Model::JoinDomainRequest::WithPassword
JoinDomainRequest & WithPassword(const char *value)
Definition: JoinDomainRequest.h:404
Aws::StorageGateway::Model::JoinDomainRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: JoinDomainRequest.h:301
Aws::StorageGateway::Model::JoinDomainRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::JoinDomainRequest::WithDomainControllers
JoinDomainRequest & WithDomainControllers(Aws::Vector< Aws::String > &&value)
Definition: JoinDomainRequest.h:236
Aws::StorageGateway::Model::JoinDomainRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: JoinDomainRequest.h:319
Aws::StorageGateway::Model::JoinDomainRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: JoinDomainRequest.h:106
Aws::StorageGateway::Model::JoinDomainRequest::SetUserName
void SetUserName(const char *value)
Definition: JoinDomainRequest.h:328
Aws::StorageGateway::Model::JoinDomainRequest::WithTimeoutInSeconds
JoinDomainRequest & WithTimeoutInSeconds(int value)
Definition: JoinDomainRequest.h:282
Aws::StorageGateway::Model::JoinDomainRequest::WithDomainName
JoinDomainRequest & WithDomainName(const char *value)
Definition: JoinDomainRequest.h:136
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::JoinDomainRequest::SetOrganizationalUnit
void SetOrganizationalUnit(Aws::String &&value)
Definition: JoinDomainRequest.h:165
Aws::StorageGateway::Model::JoinDomainRequest::SetDomainControllers
void SetDomainControllers(Aws::Vector< Aws::String > &&value)
Definition: JoinDomainRequest.h:222
AWSVector.h
Aws::StorageGateway::Model::JoinDomainRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: JoinDomainRequest.h:374
Aws::StorageGateway::Model::JoinDomainRequest::AddDomainControllers
JoinDomainRequest & AddDomainControllers(const char *value)
Definition: JoinDomainRequest.h:257
Aws::StorageGateway::Model::JoinDomainRequest::WithUserName
JoinDomainRequest & WithUserName(Aws::String &&value)
Definition: JoinDomainRequest.h:346
Aws::StorageGateway::Model::JoinDomainRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: JoinDomainRequest.h:380
Aws::StorageGateway::Model::JoinDomainRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: JoinDomainRequest.h:310
Aws::StorageGateway::Model::JoinDomainRequest::AddDomainControllers
JoinDomainRequest & AddDomainControllers(Aws::String &&value)
Definition: JoinDomainRequest.h:250
Aws::StorageGateway::Model::JoinDomainRequest::WithOrganizationalUnit
JoinDomainRequest & WithOrganizationalUnit(const Aws::String &value)
Definition: JoinDomainRequest.h:179
Aws::StorageGateway::Model::JoinDomainRequest::WithPassword
JoinDomainRequest & WithPassword(Aws::String &&value)
Definition: JoinDomainRequest.h:398
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::JoinDomainRequest::WithGatewayARN
JoinDomainRequest & WithGatewayARN(Aws::String &&value)
Definition: JoinDomainRequest.h:88
Aws::StorageGateway::Model::JoinDomainRequest::WithUserName
JoinDomainRequest & WithUserName(const char *value)
Definition: JoinDomainRequest.h:355
Aws::StorageGateway::Model::JoinDomainRequest::SetOrganizationalUnit
void SetOrganizationalUnit(const Aws::String &value)
Definition: JoinDomainRequest.h:158
Aws::StorageGateway::Model::JoinDomainRequest::WithOrganizationalUnit
JoinDomainRequest & WithOrganizationalUnit(Aws::String &&value)
Definition: JoinDomainRequest.h:186
Aws::StorageGateway::Model::JoinDomainRequest::SetPassword
void SetPassword(const char *value)
Definition: JoinDomainRequest.h:386
Aws::StorageGateway::Model::JoinDomainRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: JoinDomainRequest.h:34
Aws::StorageGateway::Model::JoinDomainRequest::GetPassword
const Aws::String & GetPassword() const
Definition: JoinDomainRequest.h:362
Aws::StorageGateway::Model::JoinDomainRequest::OrganizationalUnitHasBeenSet
bool OrganizationalUnitHasBeenSet() const
Definition: JoinDomainRequest.h:151
Aws::StorageGateway::Model::JoinDomainRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::JoinDomainRequest::TimeoutInSecondsHasBeenSet
bool TimeoutInSecondsHasBeenSet() const
Definition: JoinDomainRequest.h:270
Aws::StorageGateway::Model::JoinDomainRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: JoinDomainRequest.h:53
Aws::StorageGateway::Model::JoinDomainRequest::GetOrganizationalUnit
const Aws::String & GetOrganizationalUnit() const
Definition: JoinDomainRequest.h:144
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::JoinDomainRequest::SetDomainName
void SetDomainName(const char *value)
Definition: JoinDomainRequest.h:121
Aws::StorageGateway::Model::JoinDomainRequest::DomainControllersHasBeenSet
bool DomainControllersHasBeenSet() const
Definition: JoinDomainRequest.h:208
Aws::StorageGateway::Model::JoinDomainRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: JoinDomainRequest.h:67
Aws::StorageGateway::Model::JoinDomainRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: JoinDomainRequest.h:60
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::JoinDomainRequest::GetUserName
const Aws::String & GetUserName() const
Definition: JoinDomainRequest.h:292
Aws::StorageGateway::Model::JoinDomainRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: JoinDomainRequest.h:101
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::JoinDomainRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: JoinDomainRequest.h:74
Aws::StorageGateway::Model::JoinDomainRequest::WithOrganizationalUnit
JoinDomainRequest & WithOrganizationalUnit(const char *value)
Definition: JoinDomainRequest.h:193
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::JoinDomainRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: JoinDomainRequest.h:111
Aws::StorageGateway::Model::JoinDomainRequest::WithGatewayARN
JoinDomainRequest & WithGatewayARN(const Aws::String &value)
Definition: JoinDomainRequest.h:81
Aws::StorageGateway::Model::JoinDomainRequest::SetTimeoutInSeconds
void SetTimeoutInSeconds(int value)
Definition: JoinDomainRequest.h:276
Aws::StorageGateway::Model::JoinDomainRequest::WithGatewayARN
JoinDomainRequest & WithGatewayARN(const char *value)
Definition: JoinDomainRequest.h:95
Aws::StorageGateway::Model::JoinDomainRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: JoinDomainRequest.h:116
Aws::StorageGateway::Model::JoinDomainRequest::JoinDomainRequest
JoinDomainRequest()
Aws::StorageGateway::Model::JoinDomainRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: JoinDomainRequest.h:46
Aws::StorageGateway::Model::JoinDomainRequest::WithDomainName
JoinDomainRequest & WithDomainName(Aws::String &&value)
Definition: JoinDomainRequest.h:131
Aws::StorageGateway::Model::JoinDomainRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: JoinDomainRequest.h:368
Aws::StorageGateway::Model::JoinDomainRequest::SetDomainControllers
void SetDomainControllers(const Aws::Vector< Aws::String > &value)
Definition: JoinDomainRequest.h:215
Aws::StorageGateway::Model::JoinDomainRequest::GetTimeoutInSeconds
int GetTimeoutInSeconds() const
Definition: JoinDomainRequest.h:264
Aws::StorageGateway::Model::JoinDomainRequest::AddDomainControllers
JoinDomainRequest & AddDomainControllers(const Aws::String &value)
Definition: JoinDomainRequest.h:243