#[non_exhaustive]pub struct ModifyInstanceMaintenanceOptionsInput { /* private fields */ }
Implementations§
source§impl ModifyInstanceMaintenanceOptionsInput
impl ModifyInstanceMaintenanceOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyInstanceMaintenanceOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyInstanceMaintenanceOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyInstanceMaintenanceOptions
>
Examples found in repository?
src/client.rs (line 65426)
65412 65413 65414 65415 65416 65417 65418 65419 65420 65421 65422 65423 65424 65425 65426 65427 65428 65429 65430 65431 65432 65433 65434 65435 65436 65437 65438 65439 65440 65441 65442 65443 65444 65445 65446 65447 65448 65449 65450 65451 65452 65453 65454
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyInstanceMaintenanceOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyInstanceMaintenanceOptionsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifyInstanceMaintenanceOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyInstanceMaintenanceOptionsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyInstanceMaintenanceOptionsInput
.
source§impl ModifyInstanceMaintenanceOptionsInput
impl ModifyInstanceMaintenanceOptionsInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn auto_recovery(&self) -> Option<&InstanceAutoRecoveryState>
pub fn auto_recovery(&self) -> Option<&InstanceAutoRecoveryState>
Disables the automatic recovery behavior of your instance or sets it to default.
Trait Implementations§
source§impl Clone for ModifyInstanceMaintenanceOptionsInput
impl Clone for ModifyInstanceMaintenanceOptionsInput
source§fn clone(&self) -> ModifyInstanceMaintenanceOptionsInput
fn clone(&self) -> ModifyInstanceMaintenanceOptionsInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more