AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces-thin-client/WorkSpacesThinClientRequest.h>
10#include <aws/workspaces-thin-client/WorkSpacesThinClient_EXPORTS.h>
11#include <aws/workspaces-thin-client/model/MaintenanceWindow.h>
12#include <aws/workspaces-thin-client/model/SoftwareSetUpdateMode.h>
13#include <aws/workspaces-thin-client/model/SoftwareSetUpdateSchedule.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WorkSpacesThinClient {
19namespace Model {
20
24 public:
25 AWS_WORKSPACESTHINCLIENT_API UpdateEnvironmentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
32
33 AWS_WORKSPACESTHINCLIENT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetDesktopArn() const { return m_desktopArn; }
77 inline bool DesktopArnHasBeenSet() const { return m_desktopArnHasBeenSet; }
78 template <typename DesktopArnT = Aws::String>
79 void SetDesktopArn(DesktopArnT&& value) {
80 m_desktopArnHasBeenSet = true;
81 m_desktopArn = std::forward<DesktopArnT>(value);
82 }
83 template <typename DesktopArnT = Aws::String>
85 SetDesktopArn(std::forward<DesktopArnT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDesktopEndpoint() const { return m_desktopEndpoint; }
96 inline bool DesktopEndpointHasBeenSet() const { return m_desktopEndpointHasBeenSet; }
97 template <typename DesktopEndpointT = Aws::String>
98 void SetDesktopEndpoint(DesktopEndpointT&& value) {
99 m_desktopEndpointHasBeenSet = true;
100 m_desktopEndpoint = std::forward<DesktopEndpointT>(value);
101 }
102 template <typename DesktopEndpointT = Aws::String>
104 SetDesktopEndpoint(std::forward<DesktopEndpointT>(value));
105 return *this;
106 }
108
110
114 inline SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const { return m_softwareSetUpdateSchedule; }
115 inline bool SoftwareSetUpdateScheduleHasBeenSet() const { return m_softwareSetUpdateScheduleHasBeenSet; }
117 m_softwareSetUpdateScheduleHasBeenSet = true;
118 m_softwareSetUpdateSchedule = value;
119 }
125
127
130 inline const MaintenanceWindow& GetMaintenanceWindow() const { return m_maintenanceWindow; }
131 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
132 template <typename MaintenanceWindowT = MaintenanceWindow>
133 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
134 m_maintenanceWindowHasBeenSet = true;
135 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
136 }
137 template <typename MaintenanceWindowT = MaintenanceWindow>
138 UpdateEnvironmentRequest& WithMaintenanceWindow(MaintenanceWindowT&& value) {
139 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
140 return *this;
141 }
143
145
148 inline SoftwareSetUpdateMode GetSoftwareSetUpdateMode() const { return m_softwareSetUpdateMode; }
149 inline bool SoftwareSetUpdateModeHasBeenSet() const { return m_softwareSetUpdateModeHasBeenSet; }
151 m_softwareSetUpdateModeHasBeenSet = true;
152 m_softwareSetUpdateMode = value;
153 }
159
161
164 inline const Aws::String& GetDesiredSoftwareSetId() const { return m_desiredSoftwareSetId; }
165 inline bool DesiredSoftwareSetIdHasBeenSet() const { return m_desiredSoftwareSetIdHasBeenSet; }
166 template <typename DesiredSoftwareSetIdT = Aws::String>
167 void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
168 m_desiredSoftwareSetIdHasBeenSet = true;
169 m_desiredSoftwareSetId = std::forward<DesiredSoftwareSetIdT>(value);
170 }
171 template <typename DesiredSoftwareSetIdT = Aws::String>
172 UpdateEnvironmentRequest& WithDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
173 SetDesiredSoftwareSetId(std::forward<DesiredSoftwareSetIdT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::Map<Aws::String, Aws::String>& GetDeviceCreationTags() const { return m_deviceCreationTags; }
184 inline bool DeviceCreationTagsHasBeenSet() const { return m_deviceCreationTagsHasBeenSet; }
185 template <typename DeviceCreationTagsT = Aws::Map<Aws::String, Aws::String>>
186 void SetDeviceCreationTags(DeviceCreationTagsT&& value) {
187 m_deviceCreationTagsHasBeenSet = true;
188 m_deviceCreationTags = std::forward<DeviceCreationTagsT>(value);
189 }
190 template <typename DeviceCreationTagsT = Aws::Map<Aws::String, Aws::String>>
191 UpdateEnvironmentRequest& WithDeviceCreationTags(DeviceCreationTagsT&& value) {
192 SetDeviceCreationTags(std::forward<DeviceCreationTagsT>(value));
193 return *this;
194 }
195 template <typename DeviceCreationTagsKeyT = Aws::String, typename DeviceCreationTagsValueT = Aws::String>
196 UpdateEnvironmentRequest& AddDeviceCreationTags(DeviceCreationTagsKeyT&& key, DeviceCreationTagsValueT&& value) {
197 m_deviceCreationTagsHasBeenSet = true;
198 m_deviceCreationTags.emplace(std::forward<DeviceCreationTagsKeyT>(key), std::forward<DeviceCreationTagsValueT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_id;
204
205 Aws::String m_name;
206
207 Aws::String m_desktopArn;
208
209 Aws::String m_desktopEndpoint;
210
212
213 MaintenanceWindow m_maintenanceWindow;
214
216
217 Aws::String m_desiredSoftwareSetId;
218
219 Aws::Map<Aws::String, Aws::String> m_deviceCreationTags;
220 bool m_idHasBeenSet = false;
221 bool m_nameHasBeenSet = false;
222 bool m_desktopArnHasBeenSet = false;
223 bool m_desktopEndpointHasBeenSet = false;
224 bool m_softwareSetUpdateScheduleHasBeenSet = false;
225 bool m_maintenanceWindowHasBeenSet = false;
226 bool m_softwareSetUpdateModeHasBeenSet = false;
227 bool m_desiredSoftwareSetIdHasBeenSet = false;
228 bool m_deviceCreationTagsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace WorkSpacesThinClient
233} // namespace Aws
UpdateEnvironmentRequest & WithSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
UpdateEnvironmentRequest & WithMaintenanceWindow(MaintenanceWindowT &&value)
UpdateEnvironmentRequest & WithDesktopEndpoint(DesktopEndpointT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDeviceCreationTags() const
UpdateEnvironmentRequest & AddDeviceCreationTags(DeviceCreationTagsKeyT &&key, DeviceCreationTagsValueT &&value)
UpdateEnvironmentRequest & WithSoftwareSetUpdateMode(SoftwareSetUpdateMode value)
UpdateEnvironmentRequest & WithDesktopArn(DesktopArnT &&value)
UpdateEnvironmentRequest & WithDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
AWS_WORKSPACESTHINCLIENT_API Aws::String SerializePayload() const override
AWS_WORKSPACESTHINCLIENT_API UpdateEnvironmentRequest()=default
UpdateEnvironmentRequest & WithDeviceCreationTags(DeviceCreationTagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String