AWS SDK for C++  0.12.9
AWS SDK for C++
CreateComputerRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 #include <aws/ds/model/Attribute.h>
21 
22 namespace Aws
23 {
24 namespace DirectoryService
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
44 
48  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
49 
53  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
54 
58  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
59 
63  inline CreateComputerRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
64 
68  inline CreateComputerRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
69 
73  inline CreateComputerRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
74 
78  inline const Aws::String& GetComputerName() const{ return m_computerName; }
79 
83  inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
84 
88  inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
89 
93  inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); }
94 
98  inline CreateComputerRequest& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;}
99 
103  inline CreateComputerRequest& WithComputerName(Aws::String&& value) { SetComputerName(value); return *this;}
104 
108  inline CreateComputerRequest& WithComputerName(const char* value) { SetComputerName(value); return *this;}
109 
114  inline const Aws::String& GetPassword() const{ return m_password; }
115 
120  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
121 
126  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
127 
132  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
133 
138  inline CreateComputerRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
139 
144  inline CreateComputerRequest& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
145 
150  inline CreateComputerRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
151 
156  inline const Aws::String& GetOrganizationalUnitDistinguishedName() const{ return m_organizationalUnitDistinguishedName; }
157 
162  inline void SetOrganizationalUnitDistinguishedName(const Aws::String& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = value; }
163 
168  inline void SetOrganizationalUnitDistinguishedName(Aws::String&& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = value; }
169 
174  inline void SetOrganizationalUnitDistinguishedName(const char* value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName.assign(value); }
175 
180  inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(const Aws::String& value) { SetOrganizationalUnitDistinguishedName(value); return *this;}
181 
186  inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(Aws::String&& value) { SetOrganizationalUnitDistinguishedName(value); return *this;}
187 
192  inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(const char* value) { SetOrganizationalUnitDistinguishedName(value); return *this;}
193 
198  inline const Aws::Vector<Attribute>& GetComputerAttributes() const{ return m_computerAttributes; }
199 
204  inline void SetComputerAttributes(const Aws::Vector<Attribute>& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; }
205 
210  inline void SetComputerAttributes(Aws::Vector<Attribute>&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; }
211 
216  inline CreateComputerRequest& WithComputerAttributes(const Aws::Vector<Attribute>& value) { SetComputerAttributes(value); return *this;}
217 
222  inline CreateComputerRequest& WithComputerAttributes(Aws::Vector<Attribute>&& value) { SetComputerAttributes(value); return *this;}
223 
228  inline CreateComputerRequest& AddComputerAttributes(const Attribute& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; }
229 
234  inline CreateComputerRequest& AddComputerAttributes(Attribute&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; }
235 
236  private:
237  Aws::String m_directoryId;
238  bool m_directoryIdHasBeenSet;
239  Aws::String m_computerName;
240  bool m_computerNameHasBeenSet;
241  Aws::String m_password;
242  bool m_passwordHasBeenSet;
243  Aws::String m_organizationalUnitDistinguishedName;
244  bool m_organizationalUnitDistinguishedNameHasBeenSet;
245  Aws::Vector<Attribute> m_computerAttributes;
246  bool m_computerAttributesHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace DirectoryService
251 } // namespace Aws
const Aws::Vector< Attribute > & GetComputerAttributes() const
CreateComputerRequest & WithComputerAttributes(const Aws::Vector< Attribute > &value)
CreateComputerRequest & WithDirectoryId(const Aws::String &value)
#define AWS_DIRECTORYSERVICE_API
void SetOrganizationalUnitDistinguishedName(const Aws::String &value)
CreateComputerRequest & WithComputerName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateComputerRequest & AddComputerAttributes(Attribute &&value)
CreateComputerRequest & WithDirectoryId(const char *value)
void SetComputerAttributes(const Aws::Vector< Attribute > &value)
CreateComputerRequest & WithPassword(Aws::String &&value)
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(const char *value)
CreateComputerRequest & WithDirectoryId(Aws::String &&value)
CreateComputerRequest & WithComputerName(const Aws::String &value)
CreateComputerRequest & WithComputerName(const char *value)
CreateComputerRequest & WithPassword(const char *value)
CreateComputerRequest & WithComputerAttributes(Aws::Vector< Attribute > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(Aws::String &&value)
CreateComputerRequest & WithPassword(const Aws::String &value)
void SetComputerAttributes(Aws::Vector< Attribute > &&value)
const Aws::String & GetOrganizationalUnitDistinguishedName() const
CreateComputerRequest & AddComputerAttributes(const Attribute &value)
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(const Aws::String &value)
JSON (JavaScript Object Notation).