AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateWorkspacesPoolRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workspaces/model/Capacity.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/workspaces/model/ApplicationSettingsRequest.h>
13#include <aws/workspaces/model/TimeoutSettings.h>
14#include <aws/workspaces/model/PoolsRunningMode.h>
15#include <aws/workspaces/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace WorkSpaces
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_WORKSPACES_API CreateWorkspacesPoolRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspacesPool"; }
37
38 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetPoolName() const { return m_poolName; }
48 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
49 template<typename PoolNameT = Aws::String>
50 void SetPoolName(PoolNameT&& value) { m_poolNameHasBeenSet = true; m_poolName = std::forward<PoolNameT>(value); }
51 template<typename PoolNameT = Aws::String>
52 CreateWorkspacesPoolRequest& WithPoolName(PoolNameT&& value) { SetPoolName(std::forward<PoolNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateWorkspacesPoolRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetBundleId() const { return m_bundleId; }
72 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
73 template<typename BundleIdT = Aws::String>
74 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
75 template<typename BundleIdT = Aws::String>
76 CreateWorkspacesPoolRequest& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
84 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
85 template<typename DirectoryIdT = Aws::String>
86 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
87 template<typename DirectoryIdT = Aws::String>
88 CreateWorkspacesPoolRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
90
92
95 inline const Capacity& GetCapacity() const { return m_capacity; }
96 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
97 template<typename CapacityT = Capacity>
98 void SetCapacity(CapacityT&& value) { m_capacityHasBeenSet = true; m_capacity = std::forward<CapacityT>(value); }
99 template<typename CapacityT = Capacity>
100 CreateWorkspacesPoolRequest& WithCapacity(CapacityT&& value) { SetCapacity(std::forward<CapacityT>(value)); return *this;}
102
104
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Vector<Tag>>
112 CreateWorkspacesPoolRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsT = Tag>
114 CreateWorkspacesPoolRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
116
118
121 inline const ApplicationSettingsRequest& GetApplicationSettings() const { return m_applicationSettings; }
122 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
123 template<typename ApplicationSettingsT = ApplicationSettingsRequest>
124 void SetApplicationSettings(ApplicationSettingsT&& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = std::forward<ApplicationSettingsT>(value); }
125 template<typename ApplicationSettingsT = ApplicationSettingsRequest>
126 CreateWorkspacesPoolRequest& WithApplicationSettings(ApplicationSettingsT&& value) { SetApplicationSettings(std::forward<ApplicationSettingsT>(value)); return *this;}
128
130
133 inline const TimeoutSettings& GetTimeoutSettings() const { return m_timeoutSettings; }
134 inline bool TimeoutSettingsHasBeenSet() const { return m_timeoutSettingsHasBeenSet; }
135 template<typename TimeoutSettingsT = TimeoutSettings>
136 void SetTimeoutSettings(TimeoutSettingsT&& value) { m_timeoutSettingsHasBeenSet = true; m_timeoutSettings = std::forward<TimeoutSettingsT>(value); }
137 template<typename TimeoutSettingsT = TimeoutSettings>
138 CreateWorkspacesPoolRequest& WithTimeoutSettings(TimeoutSettingsT&& value) { SetTimeoutSettings(std::forward<TimeoutSettingsT>(value)); return *this;}
140
142
145 inline PoolsRunningMode GetRunningMode() const { return m_runningMode; }
146 inline bool RunningModeHasBeenSet() const { return m_runningModeHasBeenSet; }
147 inline void SetRunningMode(PoolsRunningMode value) { m_runningModeHasBeenSet = true; m_runningMode = value; }
150 private:
151
152 Aws::String m_poolName;
153 bool m_poolNameHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::String m_bundleId;
159 bool m_bundleIdHasBeenSet = false;
160
161 Aws::String m_directoryId;
162 bool m_directoryIdHasBeenSet = false;
163
164 Capacity m_capacity;
165 bool m_capacityHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169
170 ApplicationSettingsRequest m_applicationSettings;
171 bool m_applicationSettingsHasBeenSet = false;
172
173 TimeoutSettings m_timeoutSettings;
174 bool m_timeoutSettingsHasBeenSet = false;
175
177 bool m_runningModeHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace WorkSpaces
182} // namespace Aws
CreateWorkspacesPoolRequest & WithDescription(DescriptionT &&value)
CreateWorkspacesPoolRequest & WithTimeoutSettings(TimeoutSettingsT &&value)
CreateWorkspacesPoolRequest & WithBundleId(BundleIdT &&value)
CreateWorkspacesPoolRequest & WithCapacity(CapacityT &&value)
CreateWorkspacesPoolRequest & WithRunningMode(PoolsRunningMode value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkspacesPoolRequest & WithPoolName(PoolNameT &&value)
CreateWorkspacesPoolRequest & WithTags(TagsT &&value)
CreateWorkspacesPoolRequest & WithDirectoryId(DirectoryIdT &&value)
const ApplicationSettingsRequest & GetApplicationSettings() const
AWS_WORKSPACES_API CreateWorkspacesPoolRequest()=default
CreateWorkspacesPoolRequest & AddTags(TagsT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
CreateWorkspacesPoolRequest & WithApplicationSettings(ApplicationSettingsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector