AWS SDK for C++  1.8.71
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 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
ConnectDirectoryRequest & WithDescription(const Aws::String &value)
#define AWS_DIRECTORYSERVICE_API
ConnectDirectoryRequest & WithPassword(Aws::String &&value)
ConnectDirectoryRequest & WithTags(const Aws::Vector< Tag > &value)
const DirectoryConnectSettings & GetConnectSettings() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ConnectDirectoryRequest & WithDescription(const char *value)
void SetConnectSettings(DirectoryConnectSettings &&value)
ConnectDirectoryRequest & WithPassword(const Aws::String &value)
ConnectDirectoryRequest & WithName(Aws::String &&value)
void SetConnectSettings(const DirectoryConnectSettings &value)
ConnectDirectoryRequest & WithShortName(Aws::String &&value)
ConnectDirectoryRequest & WithPassword(const char *value)
ConnectDirectoryRequest & WithSize(const DirectorySize &value)
ConnectDirectoryRequest & WithConnectSettings(const DirectoryConnectSettings &value)
virtual const char * GetServiceRequestName() const override
ConnectDirectoryRequest & WithShortName(const char *value)
ConnectDirectoryRequest & WithConnectSettings(DirectoryConnectSettings &&value)
ConnectDirectoryRequest & WithDescription(Aws::String &&value)
ConnectDirectoryRequest & WithSize(DirectorySize &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConnectDirectoryRequest & WithName(const char *value)
ConnectDirectoryRequest & WithShortName(const Aws::String &value)
ConnectDirectoryRequest & WithTags(Aws::Vector< Tag > &&value)
ConnectDirectoryRequest & WithName(const Aws::String &value)
ConnectDirectoryRequest & AddTags(const Tag &value)