All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mwaa.model.UpdateEnvironmentRequest Maven / Gradle / Ivy

/*
 * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.mwaa.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateEnvironmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. *

*/ private java.util.Map airflowConfigurationOptions; /** *

* The Apache Airflow version for your environment. If no value is specified, defaults to the latest version. Valid * values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. *

*/ private String airflowVersion; /** *

* The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more, see * Adding or updating * DAGs. *

*/ private String dagS3Path; /** *

* The environment class type. Valid values: mw1.small, mw1.medium, mw1.large * . To learn more, see Amazon * MWAA environment class. *

*/ private String environmentClass; /** *

* The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services * resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn * more, see Amazon MWAA Execution * role. *

*/ private String executionRoleArn; /** *

* The Apache Airflow log types to send to CloudWatch Logs. *

*/ private LoggingConfigurationInput loggingConfiguration; /** *

* The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. For example, 20. When * there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one * worker that is included with your environment, or the number you specify in MinWorkers. *

*/ private Integer maxWorkers; /** *

* The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, * and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the * MinWorkers field. For example, 2. *

*/ private Integer minWorkers; /** *

* The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. *

*/ private String name; /** *

* The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources * for your environment. To learn more, see About networking on Amazon * MWAA. *

*/ private UpdateNetworkConfigurationInput networkConfiguration; /** *

* The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip * file is updated. To learn more, see How S3 Versioning * works. *

*/ private String pluginsS3ObjectVersion; /** *

* The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing custom * plugins. *

*/ private String pluginsS3Path; /** *

* The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a * requirements.txt file is updated. To learn more, see How S3 Versioning * works. *

*/ private String requirementsS3ObjectVersion; /** *

* The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. *

*/ private String requirementsS3Path; /** *

* The number of Apache Airflow schedulers to run in your Amazon MWAA environment. *

*/ private Integer schedulers; /** *

* The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For * example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket for * Amazon MWAA. *

*/ private String sourceBucketArn; /** *

* The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. *

*/ private String webserverAccessMode; /** *

* The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. *

*/ private String weeklyMaintenanceWindowStart; /** *

* A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. *

* * @return A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. */ public java.util.Map getAirflowConfigurationOptions() { return airflowConfigurationOptions; } /** *

* A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. *

* * @param airflowConfigurationOptions * A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. */ public void setAirflowConfigurationOptions(java.util.Map airflowConfigurationOptions) { this.airflowConfigurationOptions = airflowConfigurationOptions; } /** *

* A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. *

* * @param airflowConfigurationOptions * A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your * environment. To learn more, see Apache Airflow * configuration options. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withAirflowConfigurationOptions(java.util.Map airflowConfigurationOptions) { setAirflowConfigurationOptions(airflowConfigurationOptions); return this; } /** * Add a single AirflowConfigurationOptions entry * * @see UpdateEnvironmentRequest#withAirflowConfigurationOptions * @returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest addAirflowConfigurationOptionsEntry(String key, String value) { if (null == this.airflowConfigurationOptions) { this.airflowConfigurationOptions = new java.util.HashMap(); } if (this.airflowConfigurationOptions.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.airflowConfigurationOptions.put(key, value); return this; } /** * Removes all the entries added into AirflowConfigurationOptions. * * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest clearAirflowConfigurationOptionsEntries() { this.airflowConfigurationOptions = null; return this; } /** *

* The Apache Airflow version for your environment. If no value is specified, defaults to the latest version. Valid * values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. *

* * @param airflowVersion * The Apache Airflow version for your environment. If no value is specified, defaults to the latest version. * Valid values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. */ public void setAirflowVersion(String airflowVersion) { this.airflowVersion = airflowVersion; } /** *

* The Apache Airflow version for your environment. If no value is specified, defaults to the latest version. Valid * values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. *

* * @return The Apache Airflow version for your environment. If no value is specified, defaults to the latest * version. Valid values: 1.10.12, 2.0.2, 2.2.2, and * 2.4.3. */ public String getAirflowVersion() { return this.airflowVersion; } /** *

* The Apache Airflow version for your environment. If no value is specified, defaults to the latest version. Valid * values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. *

* * @param airflowVersion * The Apache Airflow version for your environment. If no value is specified, defaults to the latest version. * Valid values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withAirflowVersion(String airflowVersion) { setAirflowVersion(airflowVersion); return this; } /** *

* The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more, see * Adding or updating * DAGs. *

* * @param dagS3Path * The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn * more, see Adding * or updating DAGs. */ public void setDagS3Path(String dagS3Path) { this.dagS3Path = dagS3Path; } /** *

* The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more, see * Adding or updating * DAGs. *

* * @return The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn * more, see Adding * or updating DAGs. */ public String getDagS3Path() { return this.dagS3Path; } /** *

* The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more, see * Adding or updating * DAGs. *

* * @param dagS3Path * The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn * more, see Adding * or updating DAGs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withDagS3Path(String dagS3Path) { setDagS3Path(dagS3Path); return this; } /** *

* The environment class type. Valid values: mw1.small, mw1.medium, mw1.large * . To learn more, see Amazon * MWAA environment class. *

* * @param environmentClass * The environment class type. Valid values: mw1.small, mw1.medium, * mw1.large. To learn more, see Amazon MWAA environment * class. */ public void setEnvironmentClass(String environmentClass) { this.environmentClass = environmentClass; } /** *

* The environment class type. Valid values: mw1.small, mw1.medium, mw1.large * . To learn more, see Amazon * MWAA environment class. *

* * @return The environment class type. Valid values: mw1.small, mw1.medium, * mw1.large. To learn more, see Amazon MWAA environment * class. */ public String getEnvironmentClass() { return this.environmentClass; } /** *

* The environment class type. Valid values: mw1.small, mw1.medium, mw1.large * . To learn more, see Amazon * MWAA environment class. *

* * @param environmentClass * The environment class type. Valid values: mw1.small, mw1.medium, * mw1.large. To learn more, see Amazon MWAA environment * class. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withEnvironmentClass(String environmentClass) { setEnvironmentClass(environmentClass); return this; } /** *

* The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services * resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn * more, see Amazon MWAA Execution * role. *

* * @param executionRoleArn * The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services * resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To * learn more, see Amazon * MWAA Execution role. */ public void setExecutionRoleArn(String executionRoleArn) { this.executionRoleArn = executionRoleArn; } /** *

* The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services * resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn * more, see Amazon MWAA Execution * role. *

* * @return The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web * Services resources in your environment. For example, * arn:aws:iam::123456789:role/my-execution-role. To learn more, see Amazon MWAA Execution * role. */ public String getExecutionRoleArn() { return this.executionRoleArn; } /** *

* The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services * resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn * more, see Amazon MWAA Execution * role. *

* * @param executionRoleArn * The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services * resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To * learn more, see Amazon * MWAA Execution role. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withExecutionRoleArn(String executionRoleArn) { setExecutionRoleArn(executionRoleArn); return this; } /** *

* The Apache Airflow log types to send to CloudWatch Logs. *

* * @param loggingConfiguration * The Apache Airflow log types to send to CloudWatch Logs. */ public void setLoggingConfiguration(LoggingConfigurationInput loggingConfiguration) { this.loggingConfiguration = loggingConfiguration; } /** *

* The Apache Airflow log types to send to CloudWatch Logs. *

* * @return The Apache Airflow log types to send to CloudWatch Logs. */ public LoggingConfigurationInput getLoggingConfiguration() { return this.loggingConfiguration; } /** *

* The Apache Airflow log types to send to CloudWatch Logs. *

* * @param loggingConfiguration * The Apache Airflow log types to send to CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withLoggingConfiguration(LoggingConfigurationInput loggingConfiguration) { setLoggingConfiguration(loggingConfiguration); return this; } /** *

* The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. For example, 20. When * there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one * worker that is included with your environment, or the number you specify in MinWorkers. *

* * @param maxWorkers * The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache * Airflow workers up to the number you specify in the MaxWorkers field. For example, * 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the * extra workers leaving the one worker that is included with your environment, or the number you specify in * MinWorkers. */ public void setMaxWorkers(Integer maxWorkers) { this.maxWorkers = maxWorkers; } /** *

* The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. For example, 20. When * there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one * worker that is included with your environment, or the number you specify in MinWorkers. *

* * @return The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache * Airflow workers up to the number you specify in the MaxWorkers field. For example, * 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the * extra workers leaving the one worker that is included with your environment, or the number you specify in * MinWorkers. */ public Integer getMaxWorkers() { return this.maxWorkers; } /** *

* The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. For example, 20. When * there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one * worker that is included with your environment, or the number you specify in MinWorkers. *

* * @param maxWorkers * The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache * Airflow workers up to the number you specify in the MaxWorkers field. For example, * 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the * extra workers leaving the one worker that is included with your environment, or the number you specify in * MinWorkers. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withMaxWorkers(Integer maxWorkers) { setMaxWorkers(maxWorkers); return this; } /** *

* The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, * and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the * MinWorkers field. For example, 2. *

* * @param minWorkers * The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache * Airflow workers up to the number you specify in the MaxWorkers field. When there are no more * tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you * specify in the MinWorkers field. For example, 2. */ public void setMinWorkers(Integer minWorkers) { this.minWorkers = minWorkers; } /** *

* The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, * and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the * MinWorkers field. For example, 2. *

* * @return The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache * Airflow workers up to the number you specify in the MaxWorkers field. When there are no more * tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you * specify in the MinWorkers field. For example, 2. */ public Integer getMinWorkers() { return this.minWorkers; } /** *

* The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow * workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, * and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the * MinWorkers field. For example, 2. *

* * @param minWorkers * The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache * Airflow workers up to the number you specify in the MaxWorkers field. When there are no more * tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you * specify in the MinWorkers field. For example, 2. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withMinWorkers(Integer minWorkers) { setMinWorkers(minWorkers); return this; } /** *

* The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. *

* * @param name * The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. */ public void setName(String name) { this.name = name; } /** *

* The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. *

* * @return The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. */ public String getName() { return this.name; } /** *

* The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. *

* * @param name * The name of your Amazon MWAA environment. For example, MyMWAAEnvironment. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withName(String name) { setName(name); return this; } /** *

* The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources * for your environment. To learn more, see About networking on Amazon * MWAA. *

* * @param networkConfiguration * The VPC networking components used to secure and enable network traffic between the Amazon Web Services * resources for your environment. To learn more, see About networking on Amazon * MWAA. */ public void setNetworkConfiguration(UpdateNetworkConfigurationInput networkConfiguration) { this.networkConfiguration = networkConfiguration; } /** *

* The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources * for your environment. To learn more, see About networking on Amazon * MWAA. *

* * @return The VPC networking components used to secure and enable network traffic between the Amazon Web Services * resources for your environment. To learn more, see About networking on Amazon * MWAA. */ public UpdateNetworkConfigurationInput getNetworkConfiguration() { return this.networkConfiguration; } /** *

* The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources * for your environment. To learn more, see About networking on Amazon * MWAA. *

* * @param networkConfiguration * The VPC networking components used to secure and enable network traffic between the Amazon Web Services * resources for your environment. To learn more, see About networking on Amazon * MWAA. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withNetworkConfiguration(UpdateNetworkConfigurationInput networkConfiguration) { setNetworkConfiguration(networkConfiguration); return this; } /** *

* The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip * file is updated. To learn more, see How S3 Versioning * works. *

* * @param pluginsS3ObjectVersion * The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a * plugins.zip file is updated. To learn more, see How S3 Versioning * works. */ public void setPluginsS3ObjectVersion(String pluginsS3ObjectVersion) { this.pluginsS3ObjectVersion = pluginsS3ObjectVersion; } /** *

* The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip * file is updated. To learn more, see How S3 Versioning * works. *

* * @return The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a * plugins.zip file is updated. To learn more, see How S3 Versioning * works. */ public String getPluginsS3ObjectVersion() { return this.pluginsS3ObjectVersion; } /** *

* The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip * file is updated. To learn more, see How S3 Versioning * works. *

* * @param pluginsS3ObjectVersion * The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a * plugins.zip file is updated. To learn more, see How S3 Versioning * works. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withPluginsS3ObjectVersion(String pluginsS3ObjectVersion) { setPluginsS3ObjectVersion(pluginsS3ObjectVersion); return this; } /** *

* The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing custom * plugins. *

* * @param pluginsS3Path * The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing * custom plugins. */ public void setPluginsS3Path(String pluginsS3Path) { this.pluginsS3Path = pluginsS3Path; } /** *

* The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing custom * plugins. *

* * @return The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing * custom plugins. */ public String getPluginsS3Path() { return this.pluginsS3Path; } /** *

* The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing custom * plugins. *

* * @param pluginsS3Path * The relative path to the plugins.zip file on your Amazon S3 bucket. For example, * plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing * custom plugins. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withPluginsS3Path(String pluginsS3Path) { setPluginsS3Path(pluginsS3Path); return this; } /** *

* The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a * requirements.txt file is updated. To learn more, see How S3 Versioning * works. *

* * @param requirementsS3ObjectVersion * The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a * requirements.txt file is updated. To learn more, see How S3 Versioning * works. */ public void setRequirementsS3ObjectVersion(String requirementsS3ObjectVersion) { this.requirementsS3ObjectVersion = requirementsS3ObjectVersion; } /** *

* The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a * requirements.txt file is updated. To learn more, see How S3 Versioning * works. *

* * @return The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time * a requirements.txt file is updated. To learn more, see How S3 Versioning * works. */ public String getRequirementsS3ObjectVersion() { return this.requirementsS3ObjectVersion; } /** *

* The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a * requirements.txt file is updated. To learn more, see How S3 Versioning * works. *

* * @param requirementsS3ObjectVersion * The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a * requirements.txt file is updated. To learn more, see How S3 Versioning * works. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withRequirementsS3ObjectVersion(String requirementsS3ObjectVersion) { setRequirementsS3ObjectVersion(requirementsS3ObjectVersion); return this; } /** *

* The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. *

* * @param requirementsS3Path * The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. */ public void setRequirementsS3Path(String requirementsS3Path) { this.requirementsS3Path = requirementsS3Path; } /** *

* The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. *

* * @return The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. */ public String getRequirementsS3Path() { return this.requirementsS3Path; } /** *

* The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. *

* * @param requirementsS3Path * The relative path to the requirements.txt file on your Amazon S3 bucket. For example, * requirements.txt. If specified, then a file version is required. To learn more, see Installing Python * dependencies. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withRequirementsS3Path(String requirementsS3Path) { setRequirementsS3Path(requirementsS3Path); return this; } /** *

* The number of Apache Airflow schedulers to run in your Amazon MWAA environment. *

* * @param schedulers * The number of Apache Airflow schedulers to run in your Amazon MWAA environment. */ public void setSchedulers(Integer schedulers) { this.schedulers = schedulers; } /** *

* The number of Apache Airflow schedulers to run in your Amazon MWAA environment. *

* * @return The number of Apache Airflow schedulers to run in your Amazon MWAA environment. */ public Integer getSchedulers() { return this.schedulers; } /** *

* The number of Apache Airflow schedulers to run in your Amazon MWAA environment. *

* * @param schedulers * The number of Apache Airflow schedulers to run in your Amazon MWAA environment. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withSchedulers(Integer schedulers) { setSchedulers(schedulers); return this; } /** *

* The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For * example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket for * Amazon MWAA. *

* * @param sourceBucketArn * The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are * stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket * for Amazon MWAA. */ public void setSourceBucketArn(String sourceBucketArn) { this.sourceBucketArn = sourceBucketArn; } /** *

* The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For * example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket for * Amazon MWAA. *

* * @return The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are * stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket * for Amazon MWAA. */ public String getSourceBucketArn() { return this.sourceBucketArn; } /** *

* The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For * example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket for * Amazon MWAA. *

* * @param sourceBucketArn * The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are * stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket * for Amazon MWAA. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withSourceBucketArn(String sourceBucketArn) { setSourceBucketArn(sourceBucketArn); return this; } /** *

* The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. *

* * @param webserverAccessMode * The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. * @see WebserverAccessMode */ public void setWebserverAccessMode(String webserverAccessMode) { this.webserverAccessMode = webserverAccessMode; } /** *

* The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. *

* * @return The Apache Airflow Web server access mode. To learn more, see Apache Airflow * access modes. * @see WebserverAccessMode */ public String getWebserverAccessMode() { return this.webserverAccessMode; } /** *

* The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. *

* * @param webserverAccessMode * The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. * @return Returns a reference to this object so that method calls can be chained together. * @see WebserverAccessMode */ public UpdateEnvironmentRequest withWebserverAccessMode(String webserverAccessMode) { setWebserverAccessMode(webserverAccessMode); return this; } /** *

* The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. *

* * @param webserverAccessMode * The Apache Airflow Web server access mode. To learn more, see Apache Airflow access * modes. * @return Returns a reference to this object so that method calls can be chained together. * @see WebserverAccessMode */ public UpdateEnvironmentRequest withWebserverAccessMode(WebserverAccessMode webserverAccessMode) { this.webserverAccessMode = webserverAccessMode.toString(); return this; } /** *

* The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. *

* * @param weeklyMaintenanceWindowStart * The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. */ public void setWeeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart) { this.weeklyMaintenanceWindowStart = weeklyMaintenanceWindowStart; } /** *

* The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. *

* * @return The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. */ public String getWeeklyMaintenanceWindowStart() { return this.weeklyMaintenanceWindowStart; } /** *

* The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. *

* * @param weeklyMaintenanceWindowStart * The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly * maintenance updates of your environment in the following format: DAY:HH:MM. For example: * TUE:03:30. You can specify a start time in 30 minute increments only. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEnvironmentRequest withWeeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart) { setWeeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAirflowConfigurationOptions() != null) sb.append("AirflowConfigurationOptions: ").append("***Sensitive Data Redacted***").append(","); if (getAirflowVersion() != null) sb.append("AirflowVersion: ").append(getAirflowVersion()).append(","); if (getDagS3Path() != null) sb.append("DagS3Path: ").append(getDagS3Path()).append(","); if (getEnvironmentClass() != null) sb.append("EnvironmentClass: ").append(getEnvironmentClass()).append(","); if (getExecutionRoleArn() != null) sb.append("ExecutionRoleArn: ").append(getExecutionRoleArn()).append(","); if (getLoggingConfiguration() != null) sb.append("LoggingConfiguration: ").append(getLoggingConfiguration()).append(","); if (getMaxWorkers() != null) sb.append("MaxWorkers: ").append(getMaxWorkers()).append(","); if (getMinWorkers() != null) sb.append("MinWorkers: ").append(getMinWorkers()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getNetworkConfiguration() != null) sb.append("NetworkConfiguration: ").append(getNetworkConfiguration()).append(","); if (getPluginsS3ObjectVersion() != null) sb.append("PluginsS3ObjectVersion: ").append(getPluginsS3ObjectVersion()).append(","); if (getPluginsS3Path() != null) sb.append("PluginsS3Path: ").append(getPluginsS3Path()).append(","); if (getRequirementsS3ObjectVersion() != null) sb.append("RequirementsS3ObjectVersion: ").append(getRequirementsS3ObjectVersion()).append(","); if (getRequirementsS3Path() != null) sb.append("RequirementsS3Path: ").append(getRequirementsS3Path()).append(","); if (getSchedulers() != null) sb.append("Schedulers: ").append(getSchedulers()).append(","); if (getSourceBucketArn() != null) sb.append("SourceBucketArn: ").append(getSourceBucketArn()).append(","); if (getWebserverAccessMode() != null) sb.append("WebserverAccessMode: ").append(getWebserverAccessMode()).append(","); if (getWeeklyMaintenanceWindowStart() != null) sb.append("WeeklyMaintenanceWindowStart: ").append(getWeeklyMaintenanceWindowStart()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateEnvironmentRequest == false) return false; UpdateEnvironmentRequest other = (UpdateEnvironmentRequest) obj; if (other.getAirflowConfigurationOptions() == null ^ this.getAirflowConfigurationOptions() == null) return false; if (other.getAirflowConfigurationOptions() != null && other.getAirflowConfigurationOptions().equals(this.getAirflowConfigurationOptions()) == false) return false; if (other.getAirflowVersion() == null ^ this.getAirflowVersion() == null) return false; if (other.getAirflowVersion() != null && other.getAirflowVersion().equals(this.getAirflowVersion()) == false) return false; if (other.getDagS3Path() == null ^ this.getDagS3Path() == null) return false; if (other.getDagS3Path() != null && other.getDagS3Path().equals(this.getDagS3Path()) == false) return false; if (other.getEnvironmentClass() == null ^ this.getEnvironmentClass() == null) return false; if (other.getEnvironmentClass() != null && other.getEnvironmentClass().equals(this.getEnvironmentClass()) == false) return false; if (other.getExecutionRoleArn() == null ^ this.getExecutionRoleArn() == null) return false; if (other.getExecutionRoleArn() != null && other.getExecutionRoleArn().equals(this.getExecutionRoleArn()) == false) return false; if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null) return false; if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false) return false; if (other.getMaxWorkers() == null ^ this.getMaxWorkers() == null) return false; if (other.getMaxWorkers() != null && other.getMaxWorkers().equals(this.getMaxWorkers()) == false) return false; if (other.getMinWorkers() == null ^ this.getMinWorkers() == null) return false; if (other.getMinWorkers() != null && other.getMinWorkers().equals(this.getMinWorkers()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getNetworkConfiguration() == null ^ this.getNetworkConfiguration() == null) return false; if (other.getNetworkConfiguration() != null && other.getNetworkConfiguration().equals(this.getNetworkConfiguration()) == false) return false; if (other.getPluginsS3ObjectVersion() == null ^ this.getPluginsS3ObjectVersion() == null) return false; if (other.getPluginsS3ObjectVersion() != null && other.getPluginsS3ObjectVersion().equals(this.getPluginsS3ObjectVersion()) == false) return false; if (other.getPluginsS3Path() == null ^ this.getPluginsS3Path() == null) return false; if (other.getPluginsS3Path() != null && other.getPluginsS3Path().equals(this.getPluginsS3Path()) == false) return false; if (other.getRequirementsS3ObjectVersion() == null ^ this.getRequirementsS3ObjectVersion() == null) return false; if (other.getRequirementsS3ObjectVersion() != null && other.getRequirementsS3ObjectVersion().equals(this.getRequirementsS3ObjectVersion()) == false) return false; if (other.getRequirementsS3Path() == null ^ this.getRequirementsS3Path() == null) return false; if (other.getRequirementsS3Path() != null && other.getRequirementsS3Path().equals(this.getRequirementsS3Path()) == false) return false; if (other.getSchedulers() == null ^ this.getSchedulers() == null) return false; if (other.getSchedulers() != null && other.getSchedulers().equals(this.getSchedulers()) == false) return false; if (other.getSourceBucketArn() == null ^ this.getSourceBucketArn() == null) return false; if (other.getSourceBucketArn() != null && other.getSourceBucketArn().equals(this.getSourceBucketArn()) == false) return false; if (other.getWebserverAccessMode() == null ^ this.getWebserverAccessMode() == null) return false; if (other.getWebserverAccessMode() != null && other.getWebserverAccessMode().equals(this.getWebserverAccessMode()) == false) return false; if (other.getWeeklyMaintenanceWindowStart() == null ^ this.getWeeklyMaintenanceWindowStart() == null) return false; if (other.getWeeklyMaintenanceWindowStart() != null && other.getWeeklyMaintenanceWindowStart().equals(this.getWeeklyMaintenanceWindowStart()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAirflowConfigurationOptions() == null) ? 0 : getAirflowConfigurationOptions().hashCode()); hashCode = prime * hashCode + ((getAirflowVersion() == null) ? 0 : getAirflowVersion().hashCode()); hashCode = prime * hashCode + ((getDagS3Path() == null) ? 0 : getDagS3Path().hashCode()); hashCode = prime * hashCode + ((getEnvironmentClass() == null) ? 0 : getEnvironmentClass().hashCode()); hashCode = prime * hashCode + ((getExecutionRoleArn() == null) ? 0 : getExecutionRoleArn().hashCode()); hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode()); hashCode = prime * hashCode + ((getMaxWorkers() == null) ? 0 : getMaxWorkers().hashCode()); hashCode = prime * hashCode + ((getMinWorkers() == null) ? 0 : getMinWorkers().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getNetworkConfiguration() == null) ? 0 : getNetworkConfiguration().hashCode()); hashCode = prime * hashCode + ((getPluginsS3ObjectVersion() == null) ? 0 : getPluginsS3ObjectVersion().hashCode()); hashCode = prime * hashCode + ((getPluginsS3Path() == null) ? 0 : getPluginsS3Path().hashCode()); hashCode = prime * hashCode + ((getRequirementsS3ObjectVersion() == null) ? 0 : getRequirementsS3ObjectVersion().hashCode()); hashCode = prime * hashCode + ((getRequirementsS3Path() == null) ? 0 : getRequirementsS3Path().hashCode()); hashCode = prime * hashCode + ((getSchedulers() == null) ? 0 : getSchedulers().hashCode()); hashCode = prime * hashCode + ((getSourceBucketArn() == null) ? 0 : getSourceBucketArn().hashCode()); hashCode = prime * hashCode + ((getWebserverAccessMode() == null) ? 0 : getWebserverAccessMode().hashCode()); hashCode = prime * hashCode + ((getWeeklyMaintenanceWindowStart() == null) ? 0 : getWeeklyMaintenanceWindowStart().hashCode()); return hashCode; } @Override public UpdateEnvironmentRequest clone() { return (UpdateEnvironmentRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy