AWS SDK for C++  0.14.3
AWS SDK for C++
CreateMicrosoftADRequest.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 
21 namespace Aws
22 {
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
59 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
72  inline CreateMicrosoftADRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
79  inline CreateMicrosoftADRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
80 
86  inline CreateMicrosoftADRequest& WithName(const char* value) { SetName(value); return *this;}
87 
94  inline const Aws::String& GetShortName() const{ return m_shortName; }
95 
102  inline void SetShortName(const Aws::String& value) { m_shortNameHasBeenSet = true; m_shortName = value; }
103 
110  inline void SetShortName(Aws::String&& value) { m_shortNameHasBeenSet = true; m_shortName = value; }
111 
118  inline void SetShortName(const char* value) { m_shortNameHasBeenSet = true; m_shortName.assign(value); }
119 
126  inline CreateMicrosoftADRequest& WithShortName(const Aws::String& value) { SetShortName(value); return *this;}
127 
134  inline CreateMicrosoftADRequest& WithShortName(Aws::String&& value) { SetShortName(value); return *this;}
135 
142  inline CreateMicrosoftADRequest& WithShortName(const char* value) { SetShortName(value); return *this;}
143 
148  inline const Aws::String& GetPassword() const{ return m_password; }
149 
154  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
155 
160  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
161 
166  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
167 
172  inline CreateMicrosoftADRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
173 
178  inline CreateMicrosoftADRequest& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
179 
184  inline CreateMicrosoftADRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
185 
190  inline const Aws::String& GetDescription() const{ return m_description; }
191 
196  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
197 
202  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
203 
208  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
209 
214  inline CreateMicrosoftADRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
215 
220  inline CreateMicrosoftADRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
221 
226  inline CreateMicrosoftADRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
227 
228 
229  inline const DirectoryVpcSettings& GetVpcSettings() const{ return m_vpcSettings; }
230 
231 
232  inline void SetVpcSettings(const DirectoryVpcSettings& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = value; }
233 
234 
235  inline void SetVpcSettings(DirectoryVpcSettings&& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = value; }
236 
237 
238  inline CreateMicrosoftADRequest& WithVpcSettings(const DirectoryVpcSettings& value) { SetVpcSettings(value); return *this;}
239 
240 
241  inline CreateMicrosoftADRequest& WithVpcSettings(DirectoryVpcSettings&& value) { SetVpcSettings(value); return *this;}
242 
243  private:
244  Aws::String m_name;
245  bool m_nameHasBeenSet;
246  Aws::String m_shortName;
247  bool m_shortNameHasBeenSet;
248  Aws::String m_password;
249  bool m_passwordHasBeenSet;
250  Aws::String m_description;
251  bool m_descriptionHasBeenSet;
252  DirectoryVpcSettings m_vpcSettings;
253  bool m_vpcSettingsHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace DirectoryService
258 } // namespace Aws
#define AWS_DIRECTORYSERVICE_API
CreateMicrosoftADRequest & WithPassword(Aws::String &&value)
CreateMicrosoftADRequest & WithDescription(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateMicrosoftADRequest & WithDescription(Aws::String &&value)
CreateMicrosoftADRequest & WithPassword(const Aws::String &value)
CreateMicrosoftADRequest & WithShortName(Aws::String &&value)
CreateMicrosoftADRequest & WithShortName(const char *value)
CreateMicrosoftADRequest & WithShortName(const Aws::String &value)
CreateMicrosoftADRequest & WithDescription(const Aws::String &value)
CreateMicrosoftADRequest & WithName(const Aws::String &value)
CreateMicrosoftADRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateMicrosoftADRequest & WithVpcSettings(DirectoryVpcSettings &&value)
CreateMicrosoftADRequest & WithVpcSettings(const DirectoryVpcSettings &value)
CreateMicrosoftADRequest & WithPassword(const char *value)
CreateMicrosoftADRequest & WithName(const char *value)
JSON (JavaScript Object Notation).