AWS SDK for C++  1.9.20
AWS SDK for C++
CreateComputerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/ds/model/Attribute.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DirectoryService
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateComputer"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
47 
51  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
52 
56  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
57 
61  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
62 
66  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
67 
71  inline CreateComputerRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
72 
76  inline CreateComputerRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
77 
81  inline CreateComputerRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
82 
83 
87  inline const Aws::String& GetComputerName() const{ return m_computerName; }
88 
92  inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
93 
97  inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
98 
102  inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = std::move(value); }
103 
107  inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); }
108 
112  inline CreateComputerRequest& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;}
113 
117  inline CreateComputerRequest& WithComputerName(Aws::String&& value) { SetComputerName(std::move(value)); return *this;}
118 
122  inline CreateComputerRequest& WithComputerName(const char* value) { SetComputerName(value); return *this;}
123 
124 
129  inline const Aws::String& GetPassword() const{ return m_password; }
130 
135  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
136 
141  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
142 
147  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
148 
153  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
154 
159  inline CreateComputerRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
160 
165  inline CreateComputerRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
166 
171  inline CreateComputerRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
172 
173 
178  inline const Aws::String& GetOrganizationalUnitDistinguishedName() const{ return m_organizationalUnitDistinguishedName; }
179 
184  inline bool OrganizationalUnitDistinguishedNameHasBeenSet() const { return m_organizationalUnitDistinguishedNameHasBeenSet; }
185 
190  inline void SetOrganizationalUnitDistinguishedName(const Aws::String& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = value; }
191 
196  inline void SetOrganizationalUnitDistinguishedName(Aws::String&& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = std::move(value); }
197 
202  inline void SetOrganizationalUnitDistinguishedName(const char* value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName.assign(value); }
203 
208  inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(const Aws::String& value) { SetOrganizationalUnitDistinguishedName(value); return *this;}
209 
214  inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(Aws::String&& value) { SetOrganizationalUnitDistinguishedName(std::move(value)); return *this;}
215 
220  inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(const char* value) { SetOrganizationalUnitDistinguishedName(value); return *this;}
221 
222 
227  inline const Aws::Vector<Attribute>& GetComputerAttributes() const{ return m_computerAttributes; }
228 
233  inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; }
234 
239  inline void SetComputerAttributes(const Aws::Vector<Attribute>& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; }
240 
245  inline void SetComputerAttributes(Aws::Vector<Attribute>&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = std::move(value); }
246 
251  inline CreateComputerRequest& WithComputerAttributes(const Aws::Vector<Attribute>& value) { SetComputerAttributes(value); return *this;}
252 
257  inline CreateComputerRequest& WithComputerAttributes(Aws::Vector<Attribute>&& value) { SetComputerAttributes(std::move(value)); return *this;}
258 
263  inline CreateComputerRequest& AddComputerAttributes(const Attribute& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; }
264 
269  inline CreateComputerRequest& AddComputerAttributes(Attribute&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(std::move(value)); return *this; }
270 
271  private:
272 
273  Aws::String m_directoryId;
274  bool m_directoryIdHasBeenSet;
275 
276  Aws::String m_computerName;
277  bool m_computerNameHasBeenSet;
278 
279  Aws::String m_password;
280  bool m_passwordHasBeenSet;
281 
282  Aws::String m_organizationalUnitDistinguishedName;
283  bool m_organizationalUnitDistinguishedNameHasBeenSet;
284 
285  Aws::Vector<Attribute> m_computerAttributes;
286  bool m_computerAttributesHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace DirectoryService
291 } // namespace Aws
Aws::DirectoryService::Model::CreateComputerRequest::WithPassword
CreateComputerRequest & WithPassword(Aws::String &&value)
Definition: CreateComputerRequest.h:165
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::CreateComputerRequest::SetOrganizationalUnitDistinguishedName
void SetOrganizationalUnitDistinguishedName(Aws::String &&value)
Definition: CreateComputerRequest.h:196
Aws::DirectoryService::Model::CreateComputerRequest::SetOrganizationalUnitDistinguishedName
void SetOrganizationalUnitDistinguishedName(const Aws::String &value)
Definition: CreateComputerRequest.h:190
Aws::DirectoryService::Model::CreateComputerRequest::WithDirectoryId
CreateComputerRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateComputerRequest.h:76
Aws::DirectoryService::Model::CreateComputerRequest::GetComputerName
const Aws::String & GetComputerName() const
Definition: CreateComputerRequest.h:87
Aws::DirectoryService::Model::CreateComputerRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateComputerRequest.h:46
Aws::DirectoryService::Model::CreateComputerRequest::OrganizationalUnitDistinguishedNameHasBeenSet
bool OrganizationalUnitDistinguishedNameHasBeenSet() const
Definition: CreateComputerRequest.h:184
Aws::DirectoryService::Model::CreateComputerRequest::WithDirectoryId
CreateComputerRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateComputerRequest.h:71
Attribute.h
Aws::DirectoryService::Model::CreateComputerRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateComputerRequest.h:141
Aws::DirectoryService::Model::CreateComputerRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateComputerRequest.h:129
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::CreateComputerRequest::WithComputerAttributes
CreateComputerRequest & WithComputerAttributes(const Aws::Vector< Attribute > &value)
Definition: CreateComputerRequest.h:251
Aws::DirectoryService::Model::CreateComputerRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateComputerRequest.h:61
AWSVector.h
Aws::DirectoryService::Model::CreateComputerRequest::WithComputerName
CreateComputerRequest & WithComputerName(Aws::String &&value)
Definition: CreateComputerRequest.h:117
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateComputerRequest::AddComputerAttributes
CreateComputerRequest & AddComputerAttributes(const Attribute &value)
Definition: CreateComputerRequest.h:263
Aws::DirectoryService::Model::CreateComputerRequest::WithComputerName
CreateComputerRequest & WithComputerName(const char *value)
Definition: CreateComputerRequest.h:122
Aws::DirectoryService::Model::CreateComputerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateComputerRequest
Definition: CreateComputerRequest.h:28
Aws::DirectoryService::Model::CreateComputerRequest::CreateComputerRequest
CreateComputerRequest()
Aws::DirectoryService::Model::CreateComputerRequest::WithOrganizationalUnitDistinguishedName
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(const Aws::String &value)
Definition: CreateComputerRequest.h:208
Aws::DirectoryService::Model::CreateComputerRequest::SetOrganizationalUnitDistinguishedName
void SetOrganizationalUnitDistinguishedName(const char *value)
Definition: CreateComputerRequest.h:202
Aws::DirectoryService::Model::CreateComputerRequest::SetComputerAttributes
void SetComputerAttributes(Aws::Vector< Attribute > &&value)
Definition: CreateComputerRequest.h:245
Aws::DirectoryService::Model::CreateComputerRequest::WithOrganizationalUnitDistinguishedName
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(const char *value)
Definition: CreateComputerRequest.h:220
Aws::DirectoryService::Model::CreateComputerRequest::WithPassword
CreateComputerRequest & WithPassword(const char *value)
Definition: CreateComputerRequest.h:171
Aws::DirectoryService::Model::CreateComputerRequest::WithComputerAttributes
CreateComputerRequest & WithComputerAttributes(Aws::Vector< Attribute > &&value)
Definition: CreateComputerRequest.h:257
Aws::DirectoryService::Model::CreateComputerRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateComputerRequest.h:153
Aws::DirectoryService::Model::Attribute
Definition: Attribute.h:32
AWSString.h
Aws::DirectoryService::Model::CreateComputerRequest::GetOrganizationalUnitDistinguishedName
const Aws::String & GetOrganizationalUnitDistinguishedName() const
Definition: CreateComputerRequest.h:178
Aws::DirectoryService::Model::CreateComputerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateComputerRequest.h:36
Aws::DirectoryService::Model::CreateComputerRequest::SetComputerName
void SetComputerName(const Aws::String &value)
Definition: CreateComputerRequest.h:97
Aws::DirectoryService::Model::CreateComputerRequest::SetComputerAttributes
void SetComputerAttributes(const Aws::Vector< Attribute > &value)
Definition: CreateComputerRequest.h:239
Aws::DirectoryService::Model::CreateComputerRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateComputerRequest.h:147
Aws::DirectoryService::Model::CreateComputerRequest::WithComputerName
CreateComputerRequest & WithComputerName(const Aws::String &value)
Definition: CreateComputerRequest.h:112
Aws::DirectoryService::Model::CreateComputerRequest::WithPassword
CreateComputerRequest & WithPassword(const Aws::String &value)
Definition: CreateComputerRequest.h:159
Aws::DirectoryService::Model::CreateComputerRequest::SetComputerName
void SetComputerName(const char *value)
Definition: CreateComputerRequest.h:107
Aws::DirectoryService::Model::CreateComputerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CreateComputerRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateComputerRequest.h:66
Aws::DirectoryService::Model::CreateComputerRequest::AddComputerAttributes
CreateComputerRequest & AddComputerAttributes(Attribute &&value)
Definition: CreateComputerRequest.h:269
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::CreateComputerRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateComputerRequest.h:135
Aws::DirectoryService::Model::CreateComputerRequest::ComputerAttributesHasBeenSet
bool ComputerAttributesHasBeenSet() const
Definition: CreateComputerRequest.h:233
Aws::DirectoryService::Model::CreateComputerRequest::WithDirectoryId
CreateComputerRequest & WithDirectoryId(const char *value)
Definition: CreateComputerRequest.h:81
Aws::DirectoryService::Model::CreateComputerRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateComputerRequest.h:51
DirectoryServiceRequest.h
Aws::DirectoryService::Model::CreateComputerRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateComputerRequest.h:56
Aws::DirectoryService::Model::CreateComputerRequest::GetComputerAttributes
const Aws::Vector< Attribute > & GetComputerAttributes() const
Definition: CreateComputerRequest.h:227
Aws::DirectoryService::Model::CreateComputerRequest::WithOrganizationalUnitDistinguishedName
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(Aws::String &&value)
Definition: CreateComputerRequest.h:214
Aws::DirectoryService::Model::CreateComputerRequest::SetComputerName
void SetComputerName(Aws::String &&value)
Definition: CreateComputerRequest.h:102
Aws::DirectoryService::Model::CreateComputerRequest::ComputerNameHasBeenSet
bool ComputerNameHasBeenSet() const
Definition: CreateComputerRequest.h:92