// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`UpdateEnvironment`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`environment_id(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_environment_id): <p>The unique identifier of the runtime environment that you want to update.</p>
/// - [`desired_capacity(i32)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::desired_capacity) / [`set_desired_capacity(Option<i32>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_desired_capacity): <p>The desired capacity for the runtime environment to update.</p>
/// - [`instance_type(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::instance_type) / [`set_instance_type(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_instance_type): <p>The instance type for the runtime environment to update.</p>
/// - [`engine_version(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::engine_version) / [`set_engine_version(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_engine_version): <p>The version of the runtime engine for the runtime environment.</p>
/// - [`preferred_maintenance_window(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::preferred_maintenance_window) / [`set_preferred_maintenance_window(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_preferred_maintenance_window): <p>Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.</p>
/// - [`apply_during_maintenance_window(bool)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::apply_during_maintenance_window) / [`set_apply_during_maintenance_window(bool)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_apply_during_maintenance_window): <p>Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the <code>engineVersion</code> parameter only if <code>applyDuringMaintenanceWindow</code> is true. If any parameter other than <code>engineVersion</code> is provided in <code>UpdateEnvironmentRequest</code>, it will fail if <code>applyDuringMaintenanceWindow</code> is set to true.</p>
/// - On success, responds with [`UpdateEnvironmentOutput`](crate::operation::update_environment::UpdateEnvironmentOutput) with field(s):
/// - [`environment_id(Option<String>)`](crate::operation::update_environment::UpdateEnvironmentOutput::environment_id): <p>The unique identifier of the runtime environment that was updated.</p>
/// - On failure, responds with [`SdkError<UpdateEnvironmentError>`](crate::operation::update_environment::UpdateEnvironmentError)
pub fn update_environment(
&self,
) -> crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder {
crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::new(
self.handle.clone(),
)
}
}