pub struct UpdateEnvironmentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateEnvironment
.
Updates the configuration details for a specific runtime environment.
Implementations§
source§impl UpdateEnvironmentFluentBuilder
impl UpdateEnvironmentFluentBuilder
sourcepub fn as_input(&self) -> &UpdateEnvironmentInputBuilder
pub fn as_input(&self) -> &UpdateEnvironmentInputBuilder
Access the UpdateEnvironment as a reference.
sourcepub async fn send(
self
) -> Result<UpdateEnvironmentOutput, SdkError<UpdateEnvironmentError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateEnvironmentOutput, SdkError<UpdateEnvironmentError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateEnvironmentOutput, UpdateEnvironmentError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateEnvironmentOutput, UpdateEnvironmentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn environment_id(self, input: impl Into<String>) -> Self
pub fn environment_id(self, input: impl Into<String>) -> Self
The unique identifier of the runtime environment that you want to update.
sourcepub fn set_environment_id(self, input: Option<String>) -> Self
pub fn set_environment_id(self, input: Option<String>) -> Self
The unique identifier of the runtime environment that you want to update.
sourcepub fn get_environment_id(&self) -> &Option<String>
pub fn get_environment_id(&self) -> &Option<String>
The unique identifier of the runtime environment that you want to update.
sourcepub fn desired_capacity(self, input: i32) -> Self
pub fn desired_capacity(self, input: i32) -> Self
The desired capacity for the runtime environment to update. The minimum possible value is 0 and the maximum is 100.
sourcepub fn set_desired_capacity(self, input: Option<i32>) -> Self
pub fn set_desired_capacity(self, input: Option<i32>) -> Self
The desired capacity for the runtime environment to update. The minimum possible value is 0 and the maximum is 100.
sourcepub fn get_desired_capacity(&self) -> &Option<i32>
pub fn get_desired_capacity(&self) -> &Option<i32>
The desired capacity for the runtime environment to update. The minimum possible value is 0 and the maximum is 100.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type for the runtime environment to update.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type for the runtime environment to update.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type for the runtime environment to update.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The version of the runtime engine for the runtime environment.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The version of the runtime engine for the runtime environment.
sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
The version of the runtime engine for the runtime environment.
sourcepub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
pub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
If you do not provide a value, a random system-generated value will be assigned.
sourcepub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
pub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
If you do not provide a value, a random system-generated value will be assigned.
sourcepub fn get_preferred_maintenance_window(&self) -> &Option<String>
pub fn get_preferred_maintenance_window(&self) -> &Option<String>
Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
If you do not provide a value, a random system-generated value will be assigned.
sourcepub fn apply_during_maintenance_window(self, input: bool) -> Self
pub fn apply_during_maintenance_window(self, input: bool) -> Self
Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion
parameter only if applyDuringMaintenanceWindow
is true. If any parameter other than engineVersion
is provided in UpdateEnvironmentRequest
, it will fail if applyDuringMaintenanceWindow
is set to true.
sourcepub fn set_apply_during_maintenance_window(self, input: Option<bool>) -> Self
pub fn set_apply_during_maintenance_window(self, input: Option<bool>) -> Self
Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion
parameter only if applyDuringMaintenanceWindow
is true. If any parameter other than engineVersion
is provided in UpdateEnvironmentRequest
, it will fail if applyDuringMaintenanceWindow
is set to true.
sourcepub fn get_apply_during_maintenance_window(&self) -> &Option<bool>
pub fn get_apply_during_maintenance_window(&self) -> &Option<bool>
Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion
parameter only if applyDuringMaintenanceWindow
is true. If any parameter other than engineVersion
is provided in UpdateEnvironmentRequest
, it will fail if applyDuringMaintenanceWindow
is set to true.
sourcepub fn force_update(self, input: bool) -> Self
pub fn force_update(self, input: bool) -> Self
Forces the updates on the environment. This option is needed if the applications in the environment are not stopped or if there are ongoing application-related activities in the environment.
If you use this option, be aware that it could lead to data corruption in the applications, and that you might need to perform repair and recovery procedures for the applications.
This option is not needed if the attribute being updated is preferredMaintenanceWindow
.
sourcepub fn set_force_update(self, input: Option<bool>) -> Self
pub fn set_force_update(self, input: Option<bool>) -> Self
Forces the updates on the environment. This option is needed if the applications in the environment are not stopped or if there are ongoing application-related activities in the environment.
If you use this option, be aware that it could lead to data corruption in the applications, and that you might need to perform repair and recovery procedures for the applications.
This option is not needed if the attribute being updated is preferredMaintenanceWindow
.
sourcepub fn get_force_update(&self) -> &Option<bool>
pub fn get_force_update(&self) -> &Option<bool>
Forces the updates on the environment. This option is needed if the applications in the environment are not stopped or if there are ongoing application-related activities in the environment.
If you use this option, be aware that it could lead to data corruption in the applications, and that you might need to perform repair and recovery procedures for the applications.
This option is not needed if the attribute being updated is preferredMaintenanceWindow
.
Trait Implementations§
source§impl Clone for UpdateEnvironmentFluentBuilder
impl Clone for UpdateEnvironmentFluentBuilder
source§fn clone(&self) -> UpdateEnvironmentFluentBuilder
fn clone(&self) -> UpdateEnvironmentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateEnvironmentFluentBuilder
impl !RefUnwindSafe for UpdateEnvironmentFluentBuilder
impl Send for UpdateEnvironmentFluentBuilder
impl Sync for UpdateEnvironmentFluentBuilder
impl Unpin for UpdateEnvironmentFluentBuilder
impl !UnwindSafe for UpdateEnvironmentFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more