7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mwaa/model/EnvironmentStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/mwaa/model/NetworkConfiguration.h>
13#include <aws/mwaa/model/LoggingConfiguration.h>
14#include <aws/mwaa/model/LastUpdate.h>
15#include <aws/mwaa/model/WebserverAccessMode.h>
16#include <aws/mwaa/model/EndpointManagement.h>
56 template<
typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
58 template<
typename NameT = Aws::String>
112 template<
typename ArnT = Aws::String>
113 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
114 template<
typename ArnT = Aws::String>
124 template<
typename CreatedAtT = Aws::Utils::DateTime>
125 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
126 template<
typename CreatedAtT = Aws::Utils::DateTime>
139 template<
typename WebserverUrlT = Aws::String>
140 void SetWebserverUrl(WebserverUrlT&& value) { m_webserverUrlHasBeenSet =
true; m_webserverUrl = std::forward<WebserverUrlT>(value); }
141 template<
typename WebserverUrlT = Aws::String>
156 template<
typename ExecutionRoleArnT = Aws::String>
157 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
158 template<
typename ExecutionRoleArnT = Aws::String>
171 template<
typename ServiceRoleArnT = Aws::String>
172 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
173 template<
typename ServiceRoleArnT = Aws::String>
183 template<
typename KmsKeyT = Aws::String>
184 void SetKmsKey(KmsKeyT&& value) { m_kmsKeyHasBeenSet =
true; m_kmsKey = std::forward<KmsKeyT>(value); }
185 template<
typename KmsKeyT = Aws::String>
199 template<
typename AirflowVersionT = Aws::String>
200 void SetAirflowVersion(AirflowVersionT&& value) { m_airflowVersionHasBeenSet =
true; m_airflowVersion = std::forward<AirflowVersionT>(value); }
201 template<
typename AirflowVersionT = Aws::String>
216 template<
typename SourceBucketArnT = Aws::String>
217 void SetSourceBucketArn(SourceBucketArnT&& value) { m_sourceBucketArnHasBeenSet =
true; m_sourceBucketArn = std::forward<SourceBucketArnT>(value); }
218 template<
typename SourceBucketArnT = Aws::String>
231 template<
typename DagS3PathT = Aws::String>
232 void SetDagS3Path(DagS3PathT&& value) { m_dagS3PathHasBeenSet =
true; m_dagS3Path = std::forward<DagS3PathT>(value); }
233 template<
typename DagS3PathT = Aws::String>
246 template<
typename PluginsS3PathT = Aws::String>
247 void SetPluginsS3Path(PluginsS3PathT&& value) { m_pluginsS3PathHasBeenSet =
true; m_pluginsS3Path = std::forward<PluginsS3PathT>(value); }
248 template<
typename PluginsS3PathT = Aws::String>
267 template<
typename PluginsS3ObjectVersionT = Aws::String>
268 void SetPluginsS3ObjectVersion(PluginsS3ObjectVersionT&& value) { m_pluginsS3ObjectVersionHasBeenSet =
true; m_pluginsS3ObjectVersion = std::forward<PluginsS3ObjectVersionT>(value); }
269 template<
typename PluginsS3ObjectVersionT = Aws::String>
283 template<
typename RequirementsS3PathT = Aws::String>
284 void SetRequirementsS3Path(RequirementsS3PathT&& value) { m_requirementsS3PathHasBeenSet =
true; m_requirementsS3Path = std::forward<RequirementsS3PathT>(value); }
285 template<
typename RequirementsS3PathT = Aws::String>
304 template<
typename RequirementsS3ObjectVersionT = Aws::String>
305 void SetRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT&& value) { m_requirementsS3ObjectVersionHasBeenSet =
true; m_requirementsS3ObjectVersion = std::forward<RequirementsS3ObjectVersionT>(value); }
306 template<
typename RequirementsS3ObjectVersionT = Aws::String>
323 template<
typename StartupScriptS3PathT = Aws::String>
324 void SetStartupScriptS3Path(StartupScriptS3PathT&& value) { m_startupScriptS3PathHasBeenSet =
true; m_startupScriptS3Path = std::forward<StartupScriptS3PathT>(value); }
325 template<
typename StartupScriptS3PathT = Aws::String>
344 template<
typename StartupScriptS3ObjectVersionT = Aws::String>
345 void SetStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT&& value) { m_startupScriptS3ObjectVersionHasBeenSet =
true; m_startupScriptS3ObjectVersion = std::forward<StartupScriptS3ObjectVersionT>(value); }
346 template<
typename StartupScriptS3ObjectVersionT = Aws::String>
359 template<
typename AirflowConfigurationOptionsT = Aws::Map<Aws::String, Aws::String>>
360 void SetAirflowConfigurationOptions(AirflowConfigurationOptionsT&& value) { m_airflowConfigurationOptionsHasBeenSet =
true; m_airflowConfigurationOptions = std::forward<AirflowConfigurationOptionsT>(value); }
361 template<
typename AirflowConfigurationOptionsT = Aws::Map<Aws::String, Aws::String>>
363 template<
typename AirflowConfigurationOptionsKeyT = Aws::String,
typename AirflowConfigurationOptionsValueT = Aws::String>
365 m_airflowConfigurationOptionsHasBeenSet =
true; m_airflowConfigurationOptions.emplace(std::forward<AirflowConfigurationOptionsKeyT>(key), std::forward<AirflowConfigurationOptionsValueT>(value));
return *
this;
380 template<
typename EnvironmentClassT = Aws::String>
381 void SetEnvironmentClass(EnvironmentClassT&& value) { m_environmentClassHasBeenSet =
true; m_environmentClass = std::forward<EnvironmentClassT>(value); }
382 template<
typename EnvironmentClassT = Aws::String>
393 inline void SetMaxWorkers(
int value) { m_maxWorkersHasBeenSet =
true; m_maxWorkers = value; }
407 template<
typename NetworkConfigurationT = NetworkConfiguration>
408 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
409 template<
typename NetworkConfigurationT = NetworkConfiguration>
419 template<
typename LoggingConfigurationT = LoggingConfiguration>
420 void SetLoggingConfiguration(LoggingConfigurationT&& value) { m_loggingConfigurationHasBeenSet =
true; m_loggingConfiguration = std::forward<LoggingConfigurationT>(value); }
421 template<
typename LoggingConfigurationT = LoggingConfiguration>
431 template<
typename LastUpdateT = LastUpdate>
432 void SetLastUpdate(LastUpdateT&& value) { m_lastUpdateHasBeenSet =
true; m_lastUpdate = std::forward<LastUpdateT>(value); }
433 template<
typename LastUpdateT = LastUpdate>
445 template<
typename WeeklyMa
intenanceWindowStartT = Aws::String>
446 void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) { m_weeklyMaintenanceWindowStartHasBeenSet =
true; m_weeklyMaintenanceWindowStart = std::forward<WeeklyMaintenanceWindowStartT>(value); }
447 template<
typename WeeklyMa
intenanceWindowStartT = Aws::String>
460 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
461 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
462 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
464 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
466 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
490 inline void SetMinWorkers(
int value) { m_minWorkersHasBeenSet =
true; m_minWorkers = value; }
501 inline void SetSchedulers(
int value) { m_schedulersHasBeenSet =
true; m_schedulers = value; }
511 template<
typename WebserverVpcEndpo
intServiceT = Aws::String>
512 void SetWebserverVpcEndpointService(WebserverVpcEndpointServiceT&& value) { m_webserverVpcEndpointServiceHasBeenSet =
true; m_webserverVpcEndpointService = std::forward<WebserverVpcEndpointServiceT>(value); }
513 template<
typename WebserverVpcEndpo
intServiceT = Aws::String>
523 template<
typename DatabaseVpcEndpo
intServiceT = Aws::String>
524 void SetDatabaseVpcEndpointService(DatabaseVpcEndpointServiceT&& value) { m_databaseVpcEndpointServiceHasBeenSet =
true; m_databaseVpcEndpointService = std::forward<DatabaseVpcEndpointServiceT>(value); }
525 template<
typename DatabaseVpcEndpo
intServiceT = Aws::String>
539 template<
typename CeleryExecutorQueueT = Aws::String>
540 void SetCeleryExecutorQueue(CeleryExecutorQueueT&& value) { m_celeryExecutorQueueHasBeenSet =
true; m_celeryExecutorQueue = std::forward<CeleryExecutorQueueT>(value); }
541 template<
typename CeleryExecutorQueueT = Aws::String>
574 inline void SetMinWebservers(
int value) { m_minWebserversHasBeenSet =
true; m_minWebservers = value; }
596 inline void SetMaxWebservers(
int value) { m_maxWebserversHasBeenSet =
true; m_maxWebservers = value; }
602 bool m_nameHasBeenSet =
false;
605 bool m_statusHasBeenSet =
false;
608 bool m_arnHasBeenSet =
false;
611 bool m_createdAtHasBeenSet =
false;
614 bool m_webserverUrlHasBeenSet =
false;
617 bool m_executionRoleArnHasBeenSet =
false;
620 bool m_serviceRoleArnHasBeenSet =
false;
623 bool m_kmsKeyHasBeenSet =
false;
626 bool m_airflowVersionHasBeenSet =
false;
629 bool m_sourceBucketArnHasBeenSet =
false;
632 bool m_dagS3PathHasBeenSet =
false;
635 bool m_pluginsS3PathHasBeenSet =
false;
638 bool m_pluginsS3ObjectVersionHasBeenSet =
false;
641 bool m_requirementsS3PathHasBeenSet =
false;
644 bool m_requirementsS3ObjectVersionHasBeenSet =
false;
647 bool m_startupScriptS3PathHasBeenSet =
false;
650 bool m_startupScriptS3ObjectVersionHasBeenSet =
false;
653 bool m_airflowConfigurationOptionsHasBeenSet =
false;
656 bool m_environmentClassHasBeenSet =
false;
659 bool m_maxWorkersHasBeenSet =
false;
661 NetworkConfiguration m_networkConfiguration;
662 bool m_networkConfigurationHasBeenSet =
false;
664 LoggingConfiguration m_loggingConfiguration;
665 bool m_loggingConfigurationHasBeenSet =
false;
667 LastUpdate m_lastUpdate;
668 bool m_lastUpdateHasBeenSet =
false;
671 bool m_weeklyMaintenanceWindowStartHasBeenSet =
false;
674 bool m_tagsHasBeenSet =
false;
677 bool m_webserverAccessModeHasBeenSet =
false;
680 bool m_minWorkersHasBeenSet =
false;
683 bool m_schedulersHasBeenSet =
false;
686 bool m_webserverVpcEndpointServiceHasBeenSet =
false;
689 bool m_databaseVpcEndpointServiceHasBeenSet =
false;
692 bool m_celeryExecutorQueueHasBeenSet =
false;
695 bool m_endpointManagementHasBeenSet =
false;
697 int m_minWebservers{0};
698 bool m_minWebserversHasBeenSet =
false;
700 int m_maxWebservers{0};
701 bool m_maxWebserversHasBeenSet =
false;
Environment & WithPluginsS3ObjectVersion(PluginsS3ObjectVersionT &&value)
bool LoggingConfigurationHasBeenSet() const
Environment & WithArn(ArnT &&value)
void SetTags(TagsT &&value)
bool PluginsS3ObjectVersionHasBeenSet() const
void SetLoggingConfiguration(LoggingConfigurationT &&value)
void SetSourceBucketArn(SourceBucketArnT &&value)
Environment & WithSourceBucketArn(SourceBucketArnT &&value)
const Aws::String & GetKmsKey() const
Environment & WithWebserverAccessMode(WebserverAccessMode value)
const Aws::String & GetArn() const
bool WebserverAccessModeHasBeenSet() const
const Aws::String & GetDatabaseVpcEndpointService() const
bool RequirementsS3PathHasBeenSet() const
void SetCeleryExecutorQueue(CeleryExecutorQueueT &&value)
int GetMinWorkers() const
bool CreatedAtHasBeenSet() const
Environment & WithWebserverUrl(WebserverUrlT &&value)
bool NetworkConfigurationHasBeenSet() const
const Aws::String & GetCeleryExecutorQueue() const
bool ArnHasBeenSet() const
void SetLastUpdate(LastUpdateT &&value)
Environment & WithPluginsS3Path(PluginsS3PathT &&value)
void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT &&value)
bool WebserverVpcEndpointServiceHasBeenSet() const
Environment & WithAirflowVersion(AirflowVersionT &&value)
Environment & WithWebserverVpcEndpointService(WebserverVpcEndpointServiceT &&value)
int GetMaxWebservers() const
void SetServiceRoleArn(ServiceRoleArnT &&value)
Environment & WithEndpointManagement(EndpointManagement value)
void SetKmsKey(KmsKeyT &&value)
Environment & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetAirflowVersion() const
bool KmsKeyHasBeenSet() const
void SetStatus(EnvironmentStatus value)
int GetSchedulers() const
Environment & WithDagS3Path(DagS3PathT &&value)
Environment & WithNetworkConfiguration(NetworkConfigurationT &&value)
bool AirflowConfigurationOptionsHasBeenSet() const
Environment & WithStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT &&value)
const Aws::String & GetPluginsS3ObjectVersion() const
const Aws::String & GetStartupScriptS3Path() const
Environment & WithWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT &&value)
void SetAirflowVersion(AirflowVersionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAirflowConfigurationOptions() const
void SetEnvironmentClass(EnvironmentClassT &&value)
Environment & WithMaxWorkers(int value)
Environment & WithStatus(EnvironmentStatus value)
bool TagsHasBeenSet() const
bool ServiceRoleArnHasBeenSet() const
bool EndpointManagementHasBeenSet() const
Environment & WithMinWebservers(int value)
Environment & WithMaxWebservers(int value)
bool WeeklyMaintenanceWindowStartHasBeenSet() const
bool SchedulersHasBeenSet() const
void SetWebserverVpcEndpointService(WebserverVpcEndpointServiceT &&value)
Environment & WithTags(TagsT &&value)
const Aws::String & GetRequirementsS3Path() const
void SetAirflowConfigurationOptions(AirflowConfigurationOptionsT &&value)
const Aws::String & GetPluginsS3Path() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetDagS3Path() const
bool WebserverUrlHasBeenSet() const
bool PluginsS3PathHasBeenSet() const
bool CeleryExecutorQueueHasBeenSet() const
void SetMinWorkers(int value)
void SetStartupScriptS3ObjectVersion(StartupScriptS3ObjectVersionT &&value)
Environment & WithExecutionRoleArn(ExecutionRoleArnT &&value)
void SetRequirementsS3Path(RequirementsS3PathT &&value)
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEnvironmentClass() const
void SetArn(ArnT &&value)
bool MinWebserversHasBeenSet() const
const Aws::String & GetWebserverVpcEndpointService() const
const Aws::String & GetName() const
Environment & WithEnvironmentClass(EnvironmentClassT &&value)
bool DatabaseVpcEndpointServiceHasBeenSet() const
void SetDatabaseVpcEndpointService(DatabaseVpcEndpointServiceT &&value)
Environment & WithCreatedAt(CreatedAtT &&value)
Environment & WithAirflowConfigurationOptions(AirflowConfigurationOptionsT &&value)
WebserverAccessMode GetWebserverAccessMode() const
Environment & WithStartupScriptS3Path(StartupScriptS3PathT &&value)
const LoggingConfiguration & GetLoggingConfiguration() const
AWS_MWAA_API Environment()=default
void SetStartupScriptS3Path(StartupScriptS3PathT &&value)
bool RequirementsS3ObjectVersionHasBeenSet() const
bool NameHasBeenSet() const
Environment & AddAirflowConfigurationOptions(AirflowConfigurationOptionsKeyT &&key, AirflowConfigurationOptionsValueT &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT &&value)
Environment & WithSchedulers(int value)
Environment & WithRequirementsS3Path(RequirementsS3PathT &&value)
void SetName(NameT &&value)
void SetMinWebservers(int value)
bool AirflowVersionHasBeenSet() const
Environment & WithLoggingConfiguration(LoggingConfigurationT &&value)
const Aws::String & GetExecutionRoleArn() const
EnvironmentStatus GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetMaxWebservers(int value)
const Aws::String & GetSourceBucketArn() const
bool MaxWebserversHasBeenSet() const
Environment & WithDatabaseVpcEndpointService(DatabaseVpcEndpointServiceT &&value)
int GetMaxWorkers() const
bool StartupScriptS3PathHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
bool StatusHasBeenSet() const
const Aws::String & GetWebserverUrl() const
bool EnvironmentClassHasBeenSet() const
const Aws::String & GetWeeklyMaintenanceWindowStart() const
void SetPluginsS3ObjectVersion(PluginsS3ObjectVersionT &&value)
EndpointManagement GetEndpointManagement() const
bool DagS3PathHasBeenSet() const
bool MinWorkersHasBeenSet() const
int GetMinWebservers() const
Environment & WithMinWorkers(int value)
bool MaxWorkersHasBeenSet() const
const Aws::String & GetStartupScriptS3ObjectVersion() const
Environment & WithRequirementsS3ObjectVersion(RequirementsS3ObjectVersionT &&value)
bool LastUpdateHasBeenSet() const
void SetWebserverUrl(WebserverUrlT &&value)
AWS_MWAA_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
const LastUpdate & GetLastUpdate() const
Environment & WithCeleryExecutorQueue(CeleryExecutorQueueT &&value)
void SetDagS3Path(DagS3PathT &&value)
void SetMaxWorkers(int value)
const Aws::String & GetRequirementsS3ObjectVersion() const
AWS_MWAA_API Environment(Aws::Utils::Json::JsonView jsonValue)
bool StartupScriptS3ObjectVersionHasBeenSet() const
Environment & WithKmsKey(KmsKeyT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::String & GetServiceRoleArn() const
void SetEndpointManagement(EndpointManagement value)
void SetPluginsS3Path(PluginsS3PathT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetSchedulers(int value)
bool SourceBucketArnHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
void SetWebserverAccessMode(WebserverAccessMode value)
Environment & WithName(NameT &&value)
Environment & WithServiceRoleArn(ServiceRoleArnT &&value)
Environment & WithLastUpdate(LastUpdateT &&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
Aws::Utils::Json::JsonValue JsonValue