AWS SDK for C++  1.8.95
AWS SDK for C++
RegisterWorkspaceDirectoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace WorkSpaces
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "RegisterWorkspaceDirectory"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
48  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
49 
58  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
59 
68  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
69 
78  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
79 
88  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
89 
98  inline RegisterWorkspaceDirectoryRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
99 
108  inline RegisterWorkspaceDirectoryRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
109 
118  inline RegisterWorkspaceDirectoryRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
119 
120 
127  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
128 
135  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
136 
143  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
144 
151  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
152 
159  inline RegisterWorkspaceDirectoryRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
160 
167  inline RegisterWorkspaceDirectoryRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
168 
175  inline RegisterWorkspaceDirectoryRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
176 
183  inline RegisterWorkspaceDirectoryRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
184 
191  inline RegisterWorkspaceDirectoryRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
192 
193 
200  inline bool GetEnableWorkDocs() const{ return m_enableWorkDocs; }
201 
208  inline bool EnableWorkDocsHasBeenSet() const { return m_enableWorkDocsHasBeenSet; }
209 
216  inline void SetEnableWorkDocs(bool value) { m_enableWorkDocsHasBeenSet = true; m_enableWorkDocs = value; }
217 
224  inline RegisterWorkspaceDirectoryRequest& WithEnableWorkDocs(bool value) { SetEnableWorkDocs(value); return *this;}
225 
226 
230  inline bool GetEnableSelfService() const{ return m_enableSelfService; }
231 
235  inline bool EnableSelfServiceHasBeenSet() const { return m_enableSelfServiceHasBeenSet; }
236 
240  inline void SetEnableSelfService(bool value) { m_enableSelfServiceHasBeenSet = true; m_enableSelfService = value; }
241 
245  inline RegisterWorkspaceDirectoryRequest& WithEnableSelfService(bool value) { SetEnableSelfService(value); return *this;}
246 
247 
258  inline const Tenancy& GetTenancy() const{ return m_tenancy; }
259 
270  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
271 
282  inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
283 
294  inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
295 
306  inline RegisterWorkspaceDirectoryRequest& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
307 
318  inline RegisterWorkspaceDirectoryRequest& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
319 
320 
324  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
325 
329  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
330 
334  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
335 
339  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
340 
344  inline RegisterWorkspaceDirectoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
345 
349  inline RegisterWorkspaceDirectoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
350 
354  inline RegisterWorkspaceDirectoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
355 
359  inline RegisterWorkspaceDirectoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
360 
361  private:
362 
363  Aws::String m_directoryId;
364  bool m_directoryIdHasBeenSet;
365 
366  Aws::Vector<Aws::String> m_subnetIds;
367  bool m_subnetIdsHasBeenSet;
368 
369  bool m_enableWorkDocs;
370  bool m_enableWorkDocsHasBeenSet;
371 
372  bool m_enableSelfService;
373  bool m_enableSelfServiceHasBeenSet;
374 
375  Tenancy m_tenancy;
376  bool m_tenancyHasBeenSet;
377 
378  Aws::Vector<Tag> m_tags;
379  bool m_tagsHasBeenSet;
380  };
381 
382 } // namespace Model
383 } // namespace WorkSpaces
384 } // namespace Aws
RegisterWorkspaceDirectoryRequest & AddSubnetIds(Aws::String &&value)
RegisterWorkspaceDirectoryRequest & WithTags(Aws::Vector< Tag > &&value)
RegisterWorkspaceDirectoryRequest & AddSubnetIds(const char *value)
RegisterWorkspaceDirectoryRequest & WithDirectoryId(const Aws::String &value)
RegisterWorkspaceDirectoryRequest & AddSubnetIds(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
RegisterWorkspaceDirectoryRequest & WithTags(const Aws::Vector< Tag > &value)
RegisterWorkspaceDirectoryRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
RegisterWorkspaceDirectoryRequest & WithTenancy(const Tenancy &value)
RegisterWorkspaceDirectoryRequest & WithDirectoryId(Aws::String &&value)
RegisterWorkspaceDirectoryRequest & WithEnableWorkDocs(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RegisterWorkspaceDirectoryRequest & AddTags(const Tag &value)
RegisterWorkspaceDirectoryRequest & WithTenancy(Tenancy &&value)
RegisterWorkspaceDirectoryRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
RegisterWorkspaceDirectoryRequest & WithEnableSelfService(bool value)
RegisterWorkspaceDirectoryRequest & WithDirectoryId(const char *value)
#define AWS_WORKSPACES_API