AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace WorkSpaces
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WORKSPACES_API CreateWorkspacesPoolRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspacesPool"; }
36
37 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetPoolName() const{ return m_poolName; }
47 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
48 inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; }
49 inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); }
50 inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); }
51 inline CreateWorkspacesPoolRequest& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;}
52 inline CreateWorkspacesPoolRequest& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;}
53 inline CreateWorkspacesPoolRequest& WithPoolName(const char* value) { SetPoolName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateWorkspacesPoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline CreateWorkspacesPoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateWorkspacesPoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
75 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
76 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
77 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
78 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
79 inline CreateWorkspacesPoolRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
80 inline CreateWorkspacesPoolRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
81 inline CreateWorkspacesPoolRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
83
85
88 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
89 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
90 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
91 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
92 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
93 inline CreateWorkspacesPoolRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
94 inline CreateWorkspacesPoolRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
95 inline CreateWorkspacesPoolRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
97
99
102 inline const Capacity& GetCapacity() const{ return m_capacity; }
103 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
104 inline void SetCapacity(const Capacity& value) { m_capacityHasBeenSet = true; m_capacity = value; }
105 inline void SetCapacity(Capacity&& value) { m_capacityHasBeenSet = true; m_capacity = std::move(value); }
106 inline CreateWorkspacesPoolRequest& WithCapacity(const Capacity& value) { SetCapacity(value); return *this;}
107 inline CreateWorkspacesPoolRequest& WithCapacity(Capacity&& value) { SetCapacity(std::move(value)); return *this;}
109
111
114 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
117 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline CreateWorkspacesPoolRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
119 inline CreateWorkspacesPoolRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
120 inline CreateWorkspacesPoolRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
121 inline CreateWorkspacesPoolRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
123
125
128 inline const ApplicationSettingsRequest& GetApplicationSettings() const{ return m_applicationSettings; }
129 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
130 inline void SetApplicationSettings(const ApplicationSettingsRequest& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = value; }
131 inline void SetApplicationSettings(ApplicationSettingsRequest&& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = std::move(value); }
135
137
140 inline const TimeoutSettings& GetTimeoutSettings() const{ return m_timeoutSettings; }
141 inline bool TimeoutSettingsHasBeenSet() const { return m_timeoutSettingsHasBeenSet; }
142 inline void SetTimeoutSettings(const TimeoutSettings& value) { m_timeoutSettingsHasBeenSet = true; m_timeoutSettings = value; }
143 inline void SetTimeoutSettings(TimeoutSettings&& value) { m_timeoutSettingsHasBeenSet = true; m_timeoutSettings = std::move(value); }
145 inline CreateWorkspacesPoolRequest& WithTimeoutSettings(TimeoutSettings&& value) { SetTimeoutSettings(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_poolName;
150 bool m_poolNameHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 Aws::String m_bundleId;
156 bool m_bundleIdHasBeenSet = false;
157
158 Aws::String m_directoryId;
159 bool m_directoryIdHasBeenSet = false;
160
161 Capacity m_capacity;
162 bool m_capacityHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166
167 ApplicationSettingsRequest m_applicationSettings;
168 bool m_applicationSettingsHasBeenSet = false;
169
170 TimeoutSettings m_timeoutSettings;
171 bool m_timeoutSettingsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace WorkSpaces
176} // namespace Aws
CreateWorkspacesPoolRequest & WithTimeoutSettings(const TimeoutSettings &value)
CreateWorkspacesPoolRequest & AddTags(const Tag &value)
CreateWorkspacesPoolRequest & WithPoolName(const Aws::String &value)
void SetApplicationSettings(const ApplicationSettingsRequest &value)
CreateWorkspacesPoolRequest & WithDescription(const Aws::String &value)
CreateWorkspacesPoolRequest & WithTimeoutSettings(TimeoutSettings &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkspacesPoolRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkspacesPoolRequest & WithBundleId(const char *value)
CreateWorkspacesPoolRequest & WithPoolName(Aws::String &&value)
void SetApplicationSettings(ApplicationSettingsRequest &&value)
CreateWorkspacesPoolRequest & WithDescription(Aws::String &&value)
CreateWorkspacesPoolRequest & WithDirectoryId(const Aws::String &value)
CreateWorkspacesPoolRequest & WithDirectoryId(Aws::String &&value)
CreateWorkspacesPoolRequest & WithBundleId(const Aws::String &value)
CreateWorkspacesPoolRequest & WithCapacity(Capacity &&value)
CreateWorkspacesPoolRequest & WithDescription(const char *value)
CreateWorkspacesPoolRequest & WithPoolName(const char *value)
const ApplicationSettingsRequest & GetApplicationSettings() const
CreateWorkspacesPoolRequest & WithApplicationSettings(ApplicationSettingsRequest &&value)
CreateWorkspacesPoolRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWorkspacesPoolRequest & WithDirectoryId(const char *value)
CreateWorkspacesPoolRequest & WithBundleId(Aws::String &&value)
CreateWorkspacesPoolRequest & WithApplicationSettings(const ApplicationSettingsRequest &value)
CreateWorkspacesPoolRequest & WithCapacity(const Capacity &value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
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