AWS SDK for C++  1.9.20
AWS SDK for C++
ConnectDirectoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/ds/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace DirectoryService
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ConnectDirectory"; }
39 
40  Aws::String SerializePayload() const override;
41 
43 
44 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
73  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 
79  inline ConnectDirectoryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
85  inline ConnectDirectoryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 
91  inline ConnectDirectoryRequest& WithName(const char* value) { SetName(value); return *this;}
92 
93 
97  inline const Aws::String& GetShortName() const{ return m_shortName; }
98 
102  inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
103 
107  inline void SetShortName(const Aws::String& value) { m_shortNameHasBeenSet = true; m_shortName = value; }
108 
112  inline void SetShortName(Aws::String&& value) { m_shortNameHasBeenSet = true; m_shortName = std::move(value); }
113 
117  inline void SetShortName(const char* value) { m_shortNameHasBeenSet = true; m_shortName.assign(value); }
118 
122  inline ConnectDirectoryRequest& WithShortName(const Aws::String& value) { SetShortName(value); return *this;}
123 
127  inline ConnectDirectoryRequest& WithShortName(Aws::String&& value) { SetShortName(std::move(value)); return *this;}
128 
132  inline ConnectDirectoryRequest& WithShortName(const char* value) { SetShortName(value); return *this;}
133 
134 
138  inline const Aws::String& GetPassword() const{ return m_password; }
139 
143  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
144 
148  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
149 
153  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
154 
158  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
159 
163  inline ConnectDirectoryRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
164 
168  inline ConnectDirectoryRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
169 
173  inline ConnectDirectoryRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
174 
175 
179  inline const Aws::String& GetDescription() const{ return m_description; }
180 
184  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
185 
189  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
190 
194  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
195 
199  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
200 
204  inline ConnectDirectoryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
205 
209  inline ConnectDirectoryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
210 
214  inline ConnectDirectoryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
215 
216 
220  inline const DirectorySize& GetSize() const{ return m_size; }
221 
225  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
226 
230  inline void SetSize(const DirectorySize& value) { m_sizeHasBeenSet = true; m_size = value; }
231 
235  inline void SetSize(DirectorySize&& value) { m_sizeHasBeenSet = true; m_size = std::move(value); }
236 
240  inline ConnectDirectoryRequest& WithSize(const DirectorySize& value) { SetSize(value); return *this;}
241 
245  inline ConnectDirectoryRequest& WithSize(DirectorySize&& value) { SetSize(std::move(value)); return *this;}
246 
247 
252  inline const DirectoryConnectSettings& GetConnectSettings() const{ return m_connectSettings; }
253 
258  inline bool ConnectSettingsHasBeenSet() const { return m_connectSettingsHasBeenSet; }
259 
264  inline void SetConnectSettings(const DirectoryConnectSettings& value) { m_connectSettingsHasBeenSet = true; m_connectSettings = value; }
265 
270  inline void SetConnectSettings(DirectoryConnectSettings&& value) { m_connectSettingsHasBeenSet = true; m_connectSettings = std::move(value); }
271 
276  inline ConnectDirectoryRequest& WithConnectSettings(const DirectoryConnectSettings& value) { SetConnectSettings(value); return *this;}
277 
282  inline ConnectDirectoryRequest& WithConnectSettings(DirectoryConnectSettings&& value) { SetConnectSettings(std::move(value)); return *this;}
283 
284 
288  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
289 
293  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
294 
298  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
299 
303  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
304 
308  inline ConnectDirectoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
309 
313  inline ConnectDirectoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
314 
318  inline ConnectDirectoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
319 
323  inline ConnectDirectoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
324 
325  private:
326 
327  Aws::String m_name;
328  bool m_nameHasBeenSet;
329 
330  Aws::String m_shortName;
331  bool m_shortNameHasBeenSet;
332 
333  Aws::String m_password;
334  bool m_passwordHasBeenSet;
335 
336  Aws::String m_description;
337  bool m_descriptionHasBeenSet;
338 
339  DirectorySize m_size;
340  bool m_sizeHasBeenSet;
341 
342  DirectoryConnectSettings m_connectSettings;
343  bool m_connectSettingsHasBeenSet;
344 
345  Aws::Vector<Tag> m_tags;
346  bool m_tagsHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace DirectoryService
351 } // namespace Aws
Aws::DirectoryService::Model::ConnectDirectoryRequest::AddTags
ConnectDirectoryRequest & AddTags(const Tag &value)
Definition: ConnectDirectoryRequest.h:318
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetSize
void SetSize(DirectorySize &&value)
Definition: ConnectDirectoryRequest.h:235
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:148
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetName
void SetName(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:61
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetName
const Aws::String & GetName() const
Definition: ConnectDirectoryRequest.h:49
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetConnectSettings
void SetConnectSettings(const DirectoryConnectSettings &value)
Definition: ConnectDirectoryRequest.h:264
Aws::DirectoryService::Model::ConnectDirectoryRequest::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: ConnectDirectoryRequest.h:225
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::ConnectDirectoryRequest::WithSize
ConnectDirectoryRequest & WithSize(const DirectorySize &value)
Definition: ConnectDirectoryRequest.h:240
Aws::DirectoryService::Model::ConnectDirectoryRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: ConnectDirectoryRequest.h:143
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithPassword
ConnectDirectoryRequest & WithPassword(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:168
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetShortName
const Aws::String & GetShortName() const
Definition: ConnectDirectoryRequest.h:97
Aws::DirectoryService::Model::ConnectDirectoryRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ConnectDirectoryRequest.h:184
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetConnectSettings
const DirectoryConnectSettings & GetConnectSettings() const
Definition: ConnectDirectoryRequest.h:252
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetConnectSettings
void SetConnectSettings(DirectoryConnectSettings &&value)
Definition: ConnectDirectoryRequest.h:270
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::DirectorySize
DirectorySize
Definition: DirectorySize.h:17
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithShortName
ConnectDirectoryRequest & WithShortName(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:122
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithSize
ConnectDirectoryRequest & WithSize(DirectorySize &&value)
Definition: ConnectDirectoryRequest.h:245
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithName
ConnectDirectoryRequest & WithName(const char *value)
Definition: ConnectDirectoryRequest.h:91
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ConnectDirectoryRequest.h:179
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetSize
void SetSize(const DirectorySize &value)
Definition: ConnectDirectoryRequest.h:230
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::ConnectDirectoryRequest::ShortNameHasBeenSet
bool ShortNameHasBeenSet() const
Definition: ConnectDirectoryRequest.h:102
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithDescription
ConnectDirectoryRequest & WithDescription(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:209
Aws::DirectoryService::Model::ConnectDirectoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithShortName
ConnectDirectoryRequest & WithShortName(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:127
Tag.h
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithShortName
ConnectDirectoryRequest & WithShortName(const char *value)
Definition: ConnectDirectoryRequest.h:132
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithDescription
ConnectDirectoryRequest & WithDescription(const char *value)
Definition: ConnectDirectoryRequest.h:214
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithDescription
ConnectDirectoryRequest & WithDescription(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:204
Aws::DirectoryService::Model::ConnectDirectoryRequest
Definition: ConnectDirectoryRequest.h:30
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:189
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ConnectDirectoryRequest.h:38
Aws::DirectoryService::Model::DirectoryConnectSettings
Definition: DirectoryConnectSettings.h:34
Aws::DirectoryService::Model::ConnectDirectoryRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ConnectDirectoryRequest.h:55
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithName
ConnectDirectoryRequest & WithName(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:79
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithConnectSettings
ConnectDirectoryRequest & WithConnectSettings(const DirectoryConnectSettings &value)
Definition: ConnectDirectoryRequest.h:276
AWSString.h
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithPassword
ConnectDirectoryRequest & WithPassword(const char *value)
Definition: ConnectDirectoryRequest.h:173
Aws::DirectoryService::Model::Tag
Definition: Tag.h:33
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetName
void SetName(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:67
Aws::DirectoryService::Model::ConnectDirectoryRequest::AddTags
ConnectDirectoryRequest & AddTags(Tag &&value)
Definition: ConnectDirectoryRequest.h:323
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithName
ConnectDirectoryRequest & WithName(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:85
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetShortName
void SetShortName(const char *value)
Definition: ConnectDirectoryRequest.h:117
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithConnectSettings
ConnectDirectoryRequest & WithConnectSettings(DirectoryConnectSettings &&value)
Definition: ConnectDirectoryRequest.h:282
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ConnectDirectoryRequest.h:288
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:194
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetShortName
void SetShortName(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:112
Aws::DirectoryService::Model::ConnectDirectoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ConnectDirectoryRequest.h:293
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ConnectDirectoryRequest.h:298
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithTags
ConnectDirectoryRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: ConnectDirectoryRequest.h:308
DirectoryConnectSettings.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetShortName
void SetShortName(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:107
Aws::DirectoryService::Model::ConnectDirectoryRequest::ConnectDirectoryRequest
ConnectDirectoryRequest()
DirectorySize.h
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetDescription
void SetDescription(const char *value)
Definition: ConnectDirectoryRequest.h:199
Aws::DirectoryService::Model::ConnectDirectoryRequest::ConnectSettingsHasBeenSet
bool ConnectSettingsHasBeenSet() const
Definition: ConnectDirectoryRequest.h:258
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithPassword
ConnectDirectoryRequest & WithPassword(const Aws::String &value)
Definition: ConnectDirectoryRequest.h:163
Aws::DirectoryService::Model::ConnectDirectoryRequest::WithTags
ConnectDirectoryRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: ConnectDirectoryRequest.h:313
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetPassword
void SetPassword(const char *value)
Definition: ConnectDirectoryRequest.h:158
DirectoryServiceRequest.h
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetSize
const DirectorySize & GetSize() const
Definition: ConnectDirectoryRequest.h:220
Aws::DirectoryService::Model::ConnectDirectoryRequest::GetPassword
const Aws::String & GetPassword() const
Definition: ConnectDirectoryRequest.h:138
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: ConnectDirectoryRequest.h:153
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ConnectDirectoryRequest.h:303
Aws::DirectoryService::Model::ConnectDirectoryRequest::SetName
void SetName(const char *value)
Definition: ConnectDirectoryRequest.h:73