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::create_exascale_db_storage_vault::_create_exascale_db_storage_vault_input::CreateExascaleDbStorageVaultInputBuilder;

pub use crate::operation::create_exascale_db_storage_vault::_create_exascale_db_storage_vault_output::CreateExascaleDbStorageVaultOutputBuilder;

impl crate::operation::create_exascale_db_storage_vault::builders::CreateExascaleDbStorageVaultInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.create_exascale_db_storage_vault();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `CreateExascaleDbStorageVault`.
///
/// <p>Creates an Exascale storage vault.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateExascaleDbStorageVaultFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::create_exascale_db_storage_vault::builders::CreateExascaleDbStorageVaultInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultOutput,
        crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultError,
    > for CreateExascaleDbStorageVaultFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultOutput,
            crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl CreateExascaleDbStorageVaultFluentBuilder {
    /// Creates a new `CreateExascaleDbStorageVaultFluentBuilder`.
    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 CreateExascaleDbStorageVault as a reference.
    pub fn as_input(&self) -> &crate::operation::create_exascale_db_storage_vault::builders::CreateExascaleDbStorageVaultInputBuilder {
        &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::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultError,
            ::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::create_exascale_db_storage_vault::CreateExascaleDbStorageVault::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVault::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::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultOutput,
        crate::operation::create_exascale_db_storage_vault::CreateExascaleDbStorageVaultError,
        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>A 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 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 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>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>The Availability Zone ID for the Exascale storage vault.</p>
    pub fn availability_zone_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.availability_zone_id(input.into());
        self
    }
    /// <p>The Availability Zone ID for the Exascale storage vault.</p>
    pub fn set_availability_zone_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_availability_zone_id(input);
        self
    }
    /// <p>The Availability Zone ID for the Exascale storage vault.</p>
    pub fn get_availability_zone_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_availability_zone_id()
    }
    /// <p>The Availability Zone for the Exascale storage vault.</p>
    pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.availability_zone(input.into());
        self
    }
    /// <p>The Availability Zone for the Exascale storage vault.</p>
    pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_availability_zone(input);
        self
    }
    /// <p>The Availability Zone for the Exascale storage vault.</p>
    pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_availability_zone()
    }
    /// <p>A description of 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 description of 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 description of the Exascale storage vault.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_description()
    }
    /// <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()
    }
    ///
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>The list of resource tags to apply to the Exascale storage vault.</p>
    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.tags(k.into(), v.into());
        self
    }
    /// <p>The list of resource tags to apply to the Exascale storage vault.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.inner = self.inner.set_tags(input);
        self
    }
    /// <p>The list of resource tags to apply to the Exascale storage vault.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.inner.get_tags()
    }
    /// <p>The time zone for the Exascale storage vault.</p>
    pub fn time_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.time_zone(input.into());
        self
    }
    /// <p>The time zone for the Exascale storage vault.</p>
    pub fn set_time_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_time_zone(input);
        self
    }
    /// <p>The time zone for the Exascale storage vault.</p>
    pub fn get_time_zone(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_time_zone()
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, the Amazon Web Services SDK automatically generates one and uses it for the request to ensure idempotency. The client token is valid for up to 24 hours after it's first used.</p>
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.client_token(input.into());
        self
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, the Amazon Web Services SDK automatically generates one and uses it for the request to ensure idempotency. The client token is valid for up to 24 hours after it's first used.</p>
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_client_token(input);
        self
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, the Amazon Web Services SDK automatically generates one and uses it for the request to ensure idempotency. The client token is valid for up to 24 hours after it's first used.</p>
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_client_token()
    }
}