aws-sdk-odb 1.42.0

AWS SDK for odb
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::update_exascale_db_storage_vault::_update_exascale_db_storage_vault_input::UpdateExascaleDbStorageVaultInputBuilder;

pub use crate::operation::update_exascale_db_storage_vault::_update_exascale_db_storage_vault_output::UpdateExascaleDbStorageVaultOutputBuilder;

impl crate::operation::update_exascale_db_storage_vault::builders::UpdateExascaleDbStorageVaultInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_exascale_db_storage_vault();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateExascaleDbStorageVault`.
///
/// <p>Updates the specified Exascale storage vault.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateExascaleDbStorageVaultFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_exascale_db_storage_vault::builders::UpdateExascaleDbStorageVaultInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultOutput,
        crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultError,
    > for UpdateExascaleDbStorageVaultFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultOutput,
            crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateExascaleDbStorageVaultFluentBuilder {
    /// Creates a new `UpdateExascaleDbStorageVaultFluentBuilder`.
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
        Self {
            handle,
            inner: ::std::default::Default::default(),
            config_override: ::std::option::Option::None,
        }
    }
    /// Access the UpdateExascaleDbStorageVault as a reference.
    pub fn as_input(&self) -> &crate::operation::update_exascale_db_storage_vault::builders::UpdateExascaleDbStorageVaultInputBuilder {
        &self.inner
    }
    /// 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::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let input = self
            .inner
            .build()
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
        let runtime_plugins = crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVault::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVault::orchestrate(&runtime_plugins, input).await
    }

    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
    pub fn customize(
        self,
    ) -> crate::client::customize::CustomizableOperation<
        crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultOutput,
        crate::operation::update_exascale_db_storage_vault::UpdateExascaleDbStorageVaultError,
        Self,
    > {
        crate::client::customize::CustomizableOperation::new(self)
    }
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
        self.set_config_override(::std::option::Option::Some(config_override.into()));
        self
    }

    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
        self.config_override = config_override;
        self
    }
    /// <p>The unique identifier of the Exascale storage vault to update.</p>
    pub fn exascale_db_storage_vault_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.exascale_db_storage_vault_id(input.into());
        self
    }
    /// <p>The unique identifier of the Exascale storage vault to update.</p>
    pub fn set_exascale_db_storage_vault_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_exascale_db_storage_vault_id(input);
        self
    }
    /// <p>The unique identifier of the Exascale storage vault to update.</p>
    pub fn get_exascale_db_storage_vault_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_exascale_db_storage_vault_id()
    }
    /// <p>The additional flash cache percentage for the Exascale storage vault.</p>
    pub fn additional_flash_cache_in_percent(mut self, input: i32) -> Self {
        self.inner = self.inner.additional_flash_cache_in_percent(input);
        self
    }
    /// <p>The additional flash cache percentage for the Exascale storage vault.</p>
    pub fn set_additional_flash_cache_in_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_additional_flash_cache_in_percent(input);
        self
    }
    /// <p>The additional flash cache percentage for the Exascale storage vault.</p>
    pub fn get_additional_flash_cache_in_percent(&self) -> &::std::option::Option<i32> {
        self.inner.get_additional_flash_cache_in_percent()
    }
    /// <p>The autoscale limit in gigabytes (GB) for the Exascale storage vault.</p>
    pub fn autoscale_limit_in_gbs(mut self, input: i32) -> Self {
        self.inner = self.inner.autoscale_limit_in_gbs(input);
        self
    }
    /// <p>The autoscale limit in gigabytes (GB) for the Exascale storage vault.</p>
    pub fn set_autoscale_limit_in_gbs(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_autoscale_limit_in_gbs(input);
        self
    }
    /// <p>The autoscale limit in gigabytes (GB) for the Exascale storage vault.</p>
    pub fn get_autoscale_limit_in_gbs(&self) -> &::std::option::Option<i32> {
        self.inner.get_autoscale_limit_in_gbs()
    }
    /// <p>A new description for the Exascale storage vault.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.description(input.into());
        self
    }
    /// <p>A new description for the Exascale storage vault.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_description(input);
        self
    }
    /// <p>A new description for the Exascale storage vault.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_description()
    }
    /// <p>A new user-friendly name for the Exascale storage vault.</p>
    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.display_name(input.into());
        self
    }
    /// <p>A new user-friendly name for the Exascale storage vault.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_display_name(input);
        self
    }
    /// <p>A new user-friendly name for the Exascale storage vault.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_display_name()
    }
    /// <p>The total size of the high-capacity database storage, in gigabytes (GB), for the Exascale storage vault.</p>
    pub fn high_capacity_database_storage_total_size_in_gbs(mut self, input: i32) -> Self {
        self.inner = self.inner.high_capacity_database_storage_total_size_in_gbs(input);
        self
    }
    /// <p>The total size of the high-capacity database storage, in gigabytes (GB), for the Exascale storage vault.</p>
    pub fn set_high_capacity_database_storage_total_size_in_gbs(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_high_capacity_database_storage_total_size_in_gbs(input);
        self
    }
    /// <p>The total size of the high-capacity database storage, in gigabytes (GB), for the Exascale storage vault.</p>
    pub fn get_high_capacity_database_storage_total_size_in_gbs(&self) -> &::std::option::Option<i32> {
        self.inner.get_high_capacity_database_storage_total_size_in_gbs()
    }
    /// <p>Specifies whether autoscaling is enabled for the Exascale storage vault.</p>
    pub fn is_autoscale_enabled(mut self, input: bool) -> Self {
        self.inner = self.inner.is_autoscale_enabled(input);
        self
    }
    /// <p>Specifies whether autoscaling is enabled for the Exascale storage vault.</p>
    pub fn set_is_autoscale_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.inner = self.inner.set_is_autoscale_enabled(input);
        self
    }
    /// <p>Specifies whether autoscaling is enabled for the Exascale storage vault.</p>
    pub fn get_is_autoscale_enabled(&self) -> &::std::option::Option<bool> {
        self.inner.get_is_autoscale_enabled()
    }
}