AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JoinDomainRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace StorageGateway
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_STORAGEGATEWAY_API JoinDomainRequest();
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_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
37
38 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
47 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
48 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
49 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
50 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
51 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
52 inline JoinDomainRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
53 inline JoinDomainRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
54 inline JoinDomainRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
56
58
61 inline const Aws::String& GetDomainName() const{ return m_domainName; }
62 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
63 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
64 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
65 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
66 inline JoinDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
67 inline JoinDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
68 inline JoinDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
70
72
77 inline const Aws::String& GetOrganizationalUnit() const{ return m_organizationalUnit; }
78 inline bool OrganizationalUnitHasBeenSet() const { return m_organizationalUnitHasBeenSet; }
79 inline void SetOrganizationalUnit(const Aws::String& value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit = value; }
80 inline void SetOrganizationalUnit(Aws::String&& value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit = std::move(value); }
81 inline void SetOrganizationalUnit(const char* value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit.assign(value); }
82 inline JoinDomainRequest& WithOrganizationalUnit(const Aws::String& value) { SetOrganizationalUnit(value); return *this;}
83 inline JoinDomainRequest& WithOrganizationalUnit(Aws::String&& value) { SetOrganizationalUnit(std::move(value)); return *this;}
84 inline JoinDomainRequest& WithOrganizationalUnit(const char* value) { SetOrganizationalUnit(value); return *this;}
86
88
93 inline const Aws::Vector<Aws::String>& GetDomainControllers() const{ return m_domainControllers; }
94 inline bool DomainControllersHasBeenSet() const { return m_domainControllersHasBeenSet; }
95 inline void SetDomainControllers(const Aws::Vector<Aws::String>& value) { m_domainControllersHasBeenSet = true; m_domainControllers = value; }
96 inline void SetDomainControllers(Aws::Vector<Aws::String>&& value) { m_domainControllersHasBeenSet = true; m_domainControllers = std::move(value); }
98 inline JoinDomainRequest& WithDomainControllers(Aws::Vector<Aws::String>&& value) { SetDomainControllers(std::move(value)); return *this;}
99 inline JoinDomainRequest& AddDomainControllers(const Aws::String& value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(value); return *this; }
100 inline JoinDomainRequest& AddDomainControllers(Aws::String&& value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(std::move(value)); return *this; }
101 inline JoinDomainRequest& AddDomainControllers(const char* value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(value); return *this; }
103
105
109 inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
110 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
111 inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
112 inline JoinDomainRequest& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
114
116
123 inline const Aws::String& GetUserName() const{ return m_userName; }
124 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
125 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
126 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
127 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
128 inline JoinDomainRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
129 inline JoinDomainRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
130 inline JoinDomainRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
132
134
138 inline const Aws::String& GetPassword() const{ return m_password; }
139 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
140 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
141 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
142 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
143 inline JoinDomainRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
144 inline JoinDomainRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
145 inline JoinDomainRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
147 private:
148
149 Aws::String m_gatewayARN;
150 bool m_gatewayARNHasBeenSet = false;
151
152 Aws::String m_domainName;
153 bool m_domainNameHasBeenSet = false;
154
155 Aws::String m_organizationalUnit;
156 bool m_organizationalUnitHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_domainControllers;
159 bool m_domainControllersHasBeenSet = false;
160
161 int m_timeoutInSeconds;
162 bool m_timeoutInSecondsHasBeenSet = false;
163
164 Aws::String m_userName;
165 bool m_userNameHasBeenSet = false;
166
167 Aws::String m_password;
168 bool m_passwordHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace StorageGateway
173} // namespace Aws
JoinDomainRequest & WithGatewayARN(const Aws::String &value)
JoinDomainRequest & WithOrganizationalUnit(const Aws::String &value)
const Aws::String & GetOrganizationalUnit() const
JoinDomainRequest & WithUserName(const Aws::String &value)
void SetGatewayARN(const Aws::String &value)
JoinDomainRequest & WithGatewayARN(Aws::String &&value)
JoinDomainRequest & WithOrganizationalUnit(Aws::String &&value)
JoinDomainRequest & WithDomainControllers(const Aws::Vector< Aws::String > &value)
JoinDomainRequest & WithDomainName(Aws::String &&value)
JoinDomainRequest & WithUserName(const char *value)
JoinDomainRequest & AddDomainControllers(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
JoinDomainRequest & WithDomainName(const Aws::String &value)
JoinDomainRequest & AddDomainControllers(Aws::String &&value)
JoinDomainRequest & WithTimeoutInSeconds(int value)
JoinDomainRequest & WithPassword(Aws::String &&value)
void SetDomainControllers(Aws::Vector< Aws::String > &&value)
JoinDomainRequest & AddDomainControllers(const char *value)
void SetDomainName(const Aws::String &value)
JoinDomainRequest & WithPassword(const char *value)
void SetDomainControllers(const Aws::Vector< Aws::String > &value)
JoinDomainRequest & WithGatewayARN(const char *value)
JoinDomainRequest & WithDomainName(const char *value)
JoinDomainRequest & WithPassword(const Aws::String &value)
JoinDomainRequest & WithUserName(Aws::String &&value)
JoinDomainRequest & WithOrganizationalUnit(const char *value)
JoinDomainRequest & WithDomainControllers(Aws::Vector< Aws::String > &&value)
void SetOrganizationalUnit(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDomainControllers() const
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
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