AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/mwaa/MWAARequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/mwaa/model/LoggingConfigurationInput.h>
12#include <aws/mwaa/model/WorkerReplacementStrategy.h>
13#include <aws/mwaa/model/UpdateNetworkConfigurationInput.h>
14#include <aws/mwaa/model/WebserverAccessMode.h>
15#include <utility>
16
17namespace Aws
18{
19namespace MWAA
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MWAA_API UpdateEnvironmentRequest() = default;
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 "UpdateEnvironment"; }
36
37 AWS_MWAA_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 UpdateEnvironmentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
62 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
63 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
64 template<typename ExecutionRoleArnT = Aws::String>
65 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
66 template<typename ExecutionRoleArnT = Aws::String>
67 UpdateEnvironmentRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
69
71
77 inline const Aws::Map<Aws::String, Aws::String>& GetAirflowConfigurationOptions() const { return m_airflowConfigurationOptions; }
78 inline bool AirflowConfigurationOptionsHasBeenSet() const { return m_airflowConfigurationOptionsHasBeenSet; }
79 template<typename AirflowConfigurationOptionsT = Aws::Map<Aws::String, Aws::String>>
80 void SetAirflowConfigurationOptions(AirflowConfigurationOptionsT&& value) { m_airflowConfigurationOptionsHasBeenSet = true; m_airflowConfigurationOptions = std::forward<AirflowConfigurationOptionsT>(value); }
81 template<typename AirflowConfigurationOptionsT = Aws::Map<Aws::String, Aws::String>>
82 UpdateEnvironmentRequest& WithAirflowConfigurationOptions(AirflowConfigurationOptionsT&& value) { SetAirflowConfigurationOptions(std::forward<AirflowConfigurationOptionsT>(value)); return *this;}
83 template<typename AirflowConfigurationOptionsKeyT = Aws::String, typename AirflowConfigurationOptionsValueT = Aws::String>
84 UpdateEnvironmentRequest& AddAirflowConfigurationOptions(AirflowConfigurationOptionsKeyT&& key, AirflowConfigurationOptionsValueT&& value) {
85 m_airflowConfigurationOptionsHasBeenSet = true; m_airflowConfigurationOptions.emplace(std::forward<AirflowConfigurationOptionsKeyT>(key), std::forward<AirflowConfigurationOptionsValueT>(value)); return *this;
86 }
88
90
103 inline const Aws::String& GetAirflowVersion() const { return m_airflowVersion; }
104 inline bool AirflowVersionHasBeenSet() const { return m_airflowVersionHasBeenSet; }
105 template<typename AirflowVersionT = Aws::String>
106 void SetAirflowVersion(AirflowVersionT&& value) { m_airflowVersionHasBeenSet = true; m_airflowVersion = std::forward<AirflowVersionT>(value); }
107 template<typename AirflowVersionT = Aws::String>
108 UpdateEnvironmentRequest& WithAirflowVersion(AirflowVersionT&& value) { SetAirflowVersion(std::forward<AirflowVersionT>(value)); return *this;}
110
112
118 inline const Aws::String& GetDagS3Path() const { return m_dagS3Path; }
119 inline bool DagS3PathHasBeenSet() const { return m_dagS3PathHasBeenSet; }
120 template<typename DagS3PathT = Aws::String>
121 void SetDagS3Path(DagS3PathT&& value) { m_dagS3PathHasBeenSet = true; m_dagS3Path = std::forward<DagS3PathT>(value); }
122 template<typename DagS3PathT = Aws::String>
123 UpdateEnvironmentRequest& WithDagS3Path(DagS3PathT&& value) { SetDagS3Path(std::forward<DagS3PathT>(value)); return *this;}
125
127
135 inline const Aws::String& GetEnvironmentClass() const { return m_environmentClass; }
136 inline bool EnvironmentClassHasBeenSet() const { return m_environmentClassHasBeenSet; }
137 template<typename EnvironmentClassT = Aws::String>
138 void SetEnvironmentClass(EnvironmentClassT&& value) { m_environmentClassHasBeenSet = true; m_environmentClass = std::forward<EnvironmentClassT>(value); }
139 template<typename EnvironmentClassT = Aws::String>
140 UpdateEnvironmentRequest& WithEnvironmentClass(EnvironmentClassT&& value) { SetEnvironmentClass(std::forward<EnvironmentClassT>(value)); return *this;}
142
144
147 inline const LoggingConfigurationInput& GetLoggingConfiguration() const { return m_loggingConfiguration; }
148 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
149 template<typename LoggingConfigurationT = LoggingConfigurationInput>
150 void SetLoggingConfiguration(LoggingConfigurationT&& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = std::forward<LoggingConfigurationT>(value); }
151 template<typename LoggingConfigurationT = LoggingConfigurationInput>
152 UpdateEnvironmentRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) { SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value)); return *this;}
154
156
164 inline int GetMaxWorkers() const { return m_maxWorkers; }
165 inline bool MaxWorkersHasBeenSet() const { return m_maxWorkersHasBeenSet; }
166 inline void SetMaxWorkers(int value) { m_maxWorkersHasBeenSet = true; m_maxWorkers = value; }
167 inline UpdateEnvironmentRequest& WithMaxWorkers(int value) { SetMaxWorkers(value); return *this;}
169
171
178 inline int GetMinWorkers() const { return m_minWorkers; }
179 inline bool MinWorkersHasBeenSet() const { return m_minWorkersHasBeenSet; }
180 inline void SetMinWorkers(int value) { m_minWorkersHasBeenSet = true; m_minWorkers = value; }
181 inline UpdateEnvironmentRequest& WithMinWorkers(int value) { SetMinWorkers(value); return *this;}
183
185
200 inline int GetMaxWebservers() const { return m_maxWebservers; }
201 inline bool MaxWebserversHasBeenSet() const { return m_maxWebserversHasBeenSet; }
202 inline void SetMaxWebservers(int value) { m_maxWebserversHasBeenSet = true; m_maxWebservers = value; }
203 inline UpdateEnvironmentRequest& WithMaxWebservers(int value) { SetMaxWebservers(value); return *this;}
205
207
219 inline int GetMinWebservers() const { return m_minWebservers; }
220 inline bool MinWebserversHasBeenSet() const { return m_minWebserversHasBeenSet; }
221 inline void SetMinWebservers(int value) { m_minWebserversHasBeenSet = true; m_minWebservers = value; }
222 inline UpdateEnvironmentRequest& WithMinWebservers(int value) { SetMinWebservers(value); return *this;}
224
226
234 inline WorkerReplacementStrategy GetWorkerReplacementStrategy() const { return m_workerReplacementStrategy; }
235 inline bool WorkerReplacementStrategyHasBeenSet() const { return m_workerReplacementStrategyHasBeenSet; }
236 inline void SetWorkerReplacementStrategy(WorkerReplacementStrategy value) { m_workerReplacementStrategyHasBeenSet = true; m_workerReplacementStrategy = value; }
239
241
248 inline const UpdateNetworkConfigurationInput& GetNetworkConfiguration() const { return m_networkConfiguration; }
249 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
250 template<typename NetworkConfigurationT = UpdateNetworkConfigurationInput>
251 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
252 template<typename NetworkConfigurationT = UpdateNetworkConfigurationInput>
253 UpdateEnvironmentRequest& WithNetworkConfiguration(NetworkConfigurationT&& value) { SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value)); return *this;}
255
257
264 inline const Aws::String& GetPluginsS3Path() const { return m_pluginsS3Path; }
265 inline bool PluginsS3PathHasBeenSet() const { return m_pluginsS3PathHasBeenSet; }
266 template<typename PluginsS3PathT = Aws::String>
267 void SetPluginsS3Path(PluginsS3PathT&& value) { m_pluginsS3PathHasBeenSet = true; m_pluginsS3Path = std::forward<PluginsS3PathT>(value); }
268 template<typename PluginsS3PathT = Aws::String>
269 UpdateEnvironmentRequest& WithPluginsS3Path(PluginsS3PathT&& value) { SetPluginsS3Path(std::forward<PluginsS3PathT>(value)); return *this;}
271
273
280 inline const Aws::String& GetPluginsS3ObjectVersion() const { return m_pluginsS3ObjectVersion; }
281 inline bool PluginsS3ObjectVersionHasBeenSet() const { return m_pluginsS3ObjectVersionHasBeenSet; }
282 template<typename PluginsS3ObjectVersionT = Aws::String>
283 void SetPluginsS3ObjectVersion(PluginsS3ObjectVersionT&& value) { m_pluginsS3ObjectVersionHasBeenSet = true; m_pluginsS3ObjectVersion = std::forward<PluginsS3ObjectVersionT>(value); }
284 template<typename PluginsS3ObjectVersionT = Aws::String>
285 UpdateEnvironmentRequest& WithPluginsS3ObjectVersion(PluginsS3ObjectVersionT&& value) { SetPluginsS3ObjectVersion(std::forward<PluginsS3ObjectVersionT>(value)); return *this;}
287
289
296 inline const Aws::String& GetRequirementsS3Path() const { return m_requirementsS3Path; }
297 inline bool RequirementsS3PathHasBeenSet() const { return m_requirementsS3PathHasBeenSet; }
298 template<typename RequirementsS3PathT = Aws::String>
299 void SetRequirementsS3Path(RequirementsS3PathT&& value) { m_requirementsS3PathHasBeenSet = true; m_requirementsS3Path = std::forward<RequirementsS3PathT>(value); }
300 template<typename RequirementsS3PathT = Aws::String>
301 UpdateEnvironmentRequest& WithRequirementsS3Path(RequirementsS3PathT&& value) { SetRequirementsS3Path(std::forward<RequirementsS3PathT>(value)); return *this;}
303
305
312 inline const Aws::String& GetRequirementsS3ObjectVersion() const { return m_requirementsS3ObjectVersion; }
313 inline bool RequirementsS3ObjectVersionHasBeenSet() const { return m_requirementsS3ObjectVersionHasBeenSet; }
314 template<typename RequirementsS3ObjectVersionT = Aws::String>
315 void SetRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT&& value) { m_requirementsS3ObjectVersionHasBeenSet = true; m_requirementsS3ObjectVersion = std::forward<RequirementsS3ObjectVersionT>(value); }
316 template<typename RequirementsS3ObjectVersionT = Aws::String>
317 UpdateEnvironmentRequest& WithRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT&& value) { SetRequirementsS3ObjectVersion(std::forward<RequirementsS3ObjectVersionT>(value)); return *this;}
319
321
325 inline int GetSchedulers() const { return m_schedulers; }
326 inline bool SchedulersHasBeenSet() const { return m_schedulersHasBeenSet; }
327 inline void SetSchedulers(int value) { m_schedulersHasBeenSet = true; m_schedulers = value; }
328 inline UpdateEnvironmentRequest& WithSchedulers(int value) { SetSchedulers(value); return *this;}
330
332
340 inline const Aws::String& GetSourceBucketArn() const { return m_sourceBucketArn; }
341 inline bool SourceBucketArnHasBeenSet() const { return m_sourceBucketArnHasBeenSet; }
342 template<typename SourceBucketArnT = Aws::String>
343 void SetSourceBucketArn(SourceBucketArnT&& value) { m_sourceBucketArnHasBeenSet = true; m_sourceBucketArn = std::forward<SourceBucketArnT>(value); }
344 template<typename SourceBucketArnT = Aws::String>
345 UpdateEnvironmentRequest& WithSourceBucketArn(SourceBucketArnT&& value) { SetSourceBucketArn(std::forward<SourceBucketArnT>(value)); return *this;}
347
349
359 inline const Aws::String& GetStartupScriptS3Path() const { return m_startupScriptS3Path; }
360 inline bool StartupScriptS3PathHasBeenSet() const { return m_startupScriptS3PathHasBeenSet; }
361 template<typename StartupScriptS3PathT = Aws::String>
362 void SetStartupScriptS3Path(StartupScriptS3PathT&& value) { m_startupScriptS3PathHasBeenSet = true; m_startupScriptS3Path = std::forward<StartupScriptS3PathT>(value); }
363 template<typename StartupScriptS3PathT = Aws::String>
364 UpdateEnvironmentRequest& WithStartupScriptS3Path(StartupScriptS3PathT&& value) { SetStartupScriptS3Path(std::forward<StartupScriptS3PathT>(value)); return *this;}
366
368
380 inline const Aws::String& GetStartupScriptS3ObjectVersion() const { return m_startupScriptS3ObjectVersion; }
381 inline bool StartupScriptS3ObjectVersionHasBeenSet() const { return m_startupScriptS3ObjectVersionHasBeenSet; }
382 template<typename StartupScriptS3ObjectVersionT = Aws::String>
383 void SetStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT&& value) { m_startupScriptS3ObjectVersionHasBeenSet = true; m_startupScriptS3ObjectVersion = std::forward<StartupScriptS3ObjectVersionT>(value); }
384 template<typename StartupScriptS3ObjectVersionT = Aws::String>
385 UpdateEnvironmentRequest& WithStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT&& value) { SetStartupScriptS3ObjectVersion(std::forward<StartupScriptS3ObjectVersionT>(value)); return *this;}
387
389
395 inline WebserverAccessMode GetWebserverAccessMode() const { return m_webserverAccessMode; }
396 inline bool WebserverAccessModeHasBeenSet() const { return m_webserverAccessModeHasBeenSet; }
397 inline void SetWebserverAccessMode(WebserverAccessMode value) { m_webserverAccessModeHasBeenSet = true; m_webserverAccessMode = value; }
400
402
408 inline const Aws::String& GetWeeklyMaintenanceWindowStart() const { return m_weeklyMaintenanceWindowStart; }
409 inline bool WeeklyMaintenanceWindowStartHasBeenSet() const { return m_weeklyMaintenanceWindowStartHasBeenSet; }
410 template<typename WeeklyMaintenanceWindowStartT = Aws::String>
411 void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) { m_weeklyMaintenanceWindowStartHasBeenSet = true; m_weeklyMaintenanceWindowStart = std::forward<WeeklyMaintenanceWindowStartT>(value); }
412 template<typename WeeklyMaintenanceWindowStartT = Aws::String>
413 UpdateEnvironmentRequest& WithWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) { SetWeeklyMaintenanceWindowStart(std::forward<WeeklyMaintenanceWindowStartT>(value)); return *this;}
415 private:
416
417 Aws::String m_name;
418 bool m_nameHasBeenSet = false;
419
420 Aws::String m_executionRoleArn;
421 bool m_executionRoleArnHasBeenSet = false;
422
423 Aws::Map<Aws::String, Aws::String> m_airflowConfigurationOptions;
424 bool m_airflowConfigurationOptionsHasBeenSet = false;
425
426 Aws::String m_airflowVersion;
427 bool m_airflowVersionHasBeenSet = false;
428
429 Aws::String m_dagS3Path;
430 bool m_dagS3PathHasBeenSet = false;
431
432 Aws::String m_environmentClass;
433 bool m_environmentClassHasBeenSet = false;
434
435 LoggingConfigurationInput m_loggingConfiguration;
436 bool m_loggingConfigurationHasBeenSet = false;
437
438 int m_maxWorkers{0};
439 bool m_maxWorkersHasBeenSet = false;
440
441 int m_minWorkers{0};
442 bool m_minWorkersHasBeenSet = false;
443
444 int m_maxWebservers{0};
445 bool m_maxWebserversHasBeenSet = false;
446
447 int m_minWebservers{0};
448 bool m_minWebserversHasBeenSet = false;
449
451 bool m_workerReplacementStrategyHasBeenSet = false;
452
453 UpdateNetworkConfigurationInput m_networkConfiguration;
454 bool m_networkConfigurationHasBeenSet = false;
455
456 Aws::String m_pluginsS3Path;
457 bool m_pluginsS3PathHasBeenSet = false;
458
459 Aws::String m_pluginsS3ObjectVersion;
460 bool m_pluginsS3ObjectVersionHasBeenSet = false;
461
462 Aws::String m_requirementsS3Path;
463 bool m_requirementsS3PathHasBeenSet = false;
464
465 Aws::String m_requirementsS3ObjectVersion;
466 bool m_requirementsS3ObjectVersionHasBeenSet = false;
467
468 int m_schedulers{0};
469 bool m_schedulersHasBeenSet = false;
470
471 Aws::String m_sourceBucketArn;
472 bool m_sourceBucketArnHasBeenSet = false;
473
474 Aws::String m_startupScriptS3Path;
475 bool m_startupScriptS3PathHasBeenSet = false;
476
477 Aws::String m_startupScriptS3ObjectVersion;
478 bool m_startupScriptS3ObjectVersionHasBeenSet = false;
479
481 bool m_webserverAccessModeHasBeenSet = false;
482
483 Aws::String m_weeklyMaintenanceWindowStart;
484 bool m_weeklyMaintenanceWindowStartHasBeenSet = false;
485 };
486
487} // namespace Model
488} // namespace MWAA
489} // namespace Aws
const Aws::String & GetStartupScriptS3ObjectVersion() const
void SetRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT &&value)
UpdateEnvironmentRequest & WithDagS3Path(DagS3PathT &&value)
UpdateEnvironmentRequest & WithWebserverAccessMode(WebserverAccessMode value)
UpdateEnvironmentRequest & WithSchedulers(int value)
const Aws::Map< Aws::String, Aws::String > & GetAirflowConfigurationOptions() const
UpdateEnvironmentRequest & WithSourceBucketArn(SourceBucketArnT &&value)
UpdateEnvironmentRequest & WithPluginsS3Path(PluginsS3PathT &&value)
UpdateEnvironmentRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
void SetAirflowConfigurationOptions(AirflowConfigurationOptionsT &&value)
UpdateEnvironmentRequest & WithEnvironmentClass(EnvironmentClassT &&value)
UpdateEnvironmentRequest & AddAirflowConfigurationOptions(AirflowConfigurationOptionsKeyT &&key, AirflowConfigurationOptionsValueT &&value)
UpdateEnvironmentRequest & WithAirflowVersion(AirflowVersionT &&value)
UpdateEnvironmentRequest & WithMinWorkers(int value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithWorkerReplacementStrategy(WorkerReplacementStrategy value)
UpdateEnvironmentRequest & WithMaxWebservers(int value)
void SetWorkerReplacementStrategy(WorkerReplacementStrategy value)
UpdateEnvironmentRequest & WithPluginsS3ObjectVersion(PluginsS3ObjectVersionT &&value)
void SetStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT &&value)
WorkerReplacementStrategy GetWorkerReplacementStrategy() const
void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT &&value)
UpdateEnvironmentRequest & WithMaxWorkers(int value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
UpdateEnvironmentRequest & WithMinWebservers(int value)
const LoggingConfigurationInput & GetLoggingConfiguration() const
UpdateEnvironmentRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
AWS_MWAA_API UpdateEnvironmentRequest()=default
UpdateEnvironmentRequest & WithAirflowConfigurationOptions(AirflowConfigurationOptionsT &&value)
void SetWebserverAccessMode(WebserverAccessMode value)
const Aws::String & GetWeeklyMaintenanceWindowStart() const
AWS_MWAA_API Aws::String SerializePayload() const override
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
void SetStartupScriptS3Path(StartupScriptS3PathT &&value)
UpdateEnvironmentRequest & WithRequirementsS3Path(RequirementsS3PathT &&value)
UpdateEnvironmentRequest & WithWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT &&value)
UpdateEnvironmentRequest & WithStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT &&value)
void SetPluginsS3ObjectVersion(PluginsS3ObjectVersionT &&value)
UpdateEnvironmentRequest & WithStartupScriptS3Path(StartupScriptS3PathT &&value)
UpdateEnvironmentRequest & WithName(NameT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
UpdateEnvironmentRequest & WithRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT &&value)
const UpdateNetworkConfigurationInput & GetNetworkConfiguration() const
void SetRequirementsS3Path(RequirementsS3PathT &&value)
UpdateEnvironmentRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
void SetEnvironmentClass(EnvironmentClassT &&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