aws-sdk-odb 1.32.0

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

pub use crate::operation::update_odb_network::_update_odb_network_output::UpdateOdbNetworkOutputBuilder;

impl crate::operation::update_odb_network::builders::UpdateOdbNetworkInputBuilder {
    /// 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_odb_network::UpdateOdbNetworkOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_odb_network::UpdateOdbNetworkError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_odb_network();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateOdbNetwork`.
///
/// <p>Updates properties of a specified ODB network.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateOdbNetworkFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_odb_network::builders::UpdateOdbNetworkInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_odb_network::UpdateOdbNetworkOutput,
        crate::operation::update_odb_network::UpdateOdbNetworkError,
    > for UpdateOdbNetworkFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_odb_network::UpdateOdbNetworkOutput,
            crate::operation::update_odb_network::UpdateOdbNetworkError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateOdbNetworkFluentBuilder {
    /// Creates a new `UpdateOdbNetworkFluentBuilder`.
    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 UpdateOdbNetwork as a reference.
    pub fn as_input(&self) -> &crate::operation::update_odb_network::builders::UpdateOdbNetworkInputBuilder {
        &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_odb_network::UpdateOdbNetworkOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_odb_network::UpdateOdbNetworkError,
            ::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_odb_network::UpdateOdbNetwork::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_odb_network::UpdateOdbNetwork::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_odb_network::UpdateOdbNetworkOutput,
        crate::operation::update_odb_network::UpdateOdbNetworkError,
        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 ODB network to update.</p>
    pub fn odb_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.odb_network_id(input.into());
        self
    }
    /// <p>The unique identifier of the ODB network to update.</p>
    pub fn set_odb_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_odb_network_id(input);
        self
    }
    /// <p>The unique identifier of the ODB network to update.</p>
    pub fn get_odb_network_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_odb_network_id()
    }
    /// <p>The new user-friendly name of the ODB network.</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>The new user-friendly name of the ODB network.</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>The new user-friendly name of the ODB network.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_display_name()
    }
    ///
    /// Appends an item to `peeredCidrsToBeAdded`.
    ///
    /// To override the contents of this collection use [`set_peered_cidrs_to_be_added`](Self::set_peered_cidrs_to_be_added).
    ///
    /// <p>The list of CIDR ranges from the peered VPC that allow access to the ODB network.</p>
    pub fn peered_cidrs_to_be_added(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.peered_cidrs_to_be_added(input.into());
        self
    }
    /// <p>The list of CIDR ranges from the peered VPC that allow access to the ODB network.</p>
    pub fn set_peered_cidrs_to_be_added(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inner = self.inner.set_peered_cidrs_to_be_added(input);
        self
    }
    /// <p>The list of CIDR ranges from the peered VPC that allow access to the ODB network.</p>
    pub fn get_peered_cidrs_to_be_added(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        self.inner.get_peered_cidrs_to_be_added()
    }
    ///
    /// Appends an item to `peeredCidrsToBeRemoved`.
    ///
    /// To override the contents of this collection use [`set_peered_cidrs_to_be_removed`](Self::set_peered_cidrs_to_be_removed).
    ///
    /// <p>The list of CIDR ranges from the peered VPC to remove from the ODB network.</p>
    pub fn peered_cidrs_to_be_removed(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.peered_cidrs_to_be_removed(input.into());
        self
    }
    /// <p>The list of CIDR ranges from the peered VPC to remove from the ODB network.</p>
    pub fn set_peered_cidrs_to_be_removed(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inner = self.inner.set_peered_cidrs_to_be_removed(input);
        self
    }
    /// <p>The list of CIDR ranges from the peered VPC to remove from the ODB network.</p>
    pub fn get_peered_cidrs_to_be_removed(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        self.inner.get_peered_cidrs_to_be_removed()
    }
    /// <p>Specifies the updated configuration for Amazon S3 access from the ODB network.</p>
    pub fn s3_access(mut self, input: crate::types::Access) -> Self {
        self.inner = self.inner.s3_access(input);
        self
    }
    /// <p>Specifies the updated configuration for Amazon S3 access from the ODB network.</p>
    pub fn set_s3_access(mut self, input: ::std::option::Option<crate::types::Access>) -> Self {
        self.inner = self.inner.set_s3_access(input);
        self
    }
    /// <p>Specifies the updated configuration for Amazon S3 access from the ODB network.</p>
    pub fn get_s3_access(&self) -> &::std::option::Option<crate::types::Access> {
        self.inner.get_s3_access()
    }
    /// <p>Specifies the updated configuration for Zero-ETL access from the ODB network.</p>
    pub fn zero_etl_access(mut self, input: crate::types::Access) -> Self {
        self.inner = self.inner.zero_etl_access(input);
        self
    }
    /// <p>Specifies the updated configuration for Zero-ETL access from the ODB network.</p>
    pub fn set_zero_etl_access(mut self, input: ::std::option::Option<crate::types::Access>) -> Self {
        self.inner = self.inner.set_zero_etl_access(input);
        self
    }
    /// <p>Specifies the updated configuration for Zero-ETL access from the ODB network.</p>
    pub fn get_zero_etl_access(&self) -> &::std::option::Option<crate::types::Access> {
        self.inner.get_zero_etl_access()
    }
    /// <p>The Amazon Web Services Security Token Service (STS) access configuration for the ODB network.</p>
    pub fn sts_access(mut self, input: crate::types::Access) -> Self {
        self.inner = self.inner.sts_access(input);
        self
    }
    /// <p>The Amazon Web Services Security Token Service (STS) access configuration for the ODB network.</p>
    pub fn set_sts_access(mut self, input: ::std::option::Option<crate::types::Access>) -> Self {
        self.inner = self.inner.set_sts_access(input);
        self
    }
    /// <p>The Amazon Web Services Security Token Service (STS) access configuration for the ODB network.</p>
    pub fn get_sts_access(&self) -> &::std::option::Option<crate::types::Access> {
        self.inner.get_sts_access()
    }
    /// <p>The Amazon Web Services Key Management Service (KMS) access configuration for the ODB network.</p>
    pub fn kms_access(mut self, input: crate::types::Access) -> Self {
        self.inner = self.inner.kms_access(input);
        self
    }
    /// <p>The Amazon Web Services Key Management Service (KMS) access configuration for the ODB network.</p>
    pub fn set_kms_access(mut self, input: ::std::option::Option<crate::types::Access>) -> Self {
        self.inner = self.inner.set_kms_access(input);
        self
    }
    /// <p>The Amazon Web Services Key Management Service (KMS) access configuration for the ODB network.</p>
    pub fn get_kms_access(&self) -> &::std::option::Option<crate::types::Access> {
        self.inner.get_kms_access()
    }
    /// <p>Specifies the updated endpoint policy for Amazon S3 access from the ODB network.</p>
    pub fn s3_policy_document(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.s3_policy_document(input.into());
        self
    }
    /// <p>Specifies the updated endpoint policy for Amazon S3 access from the ODB network.</p>
    pub fn set_s3_policy_document(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_s3_policy_document(input);
        self
    }
    /// <p>Specifies the updated endpoint policy for Amazon S3 access from the ODB network.</p>
    pub fn get_s3_policy_document(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_s3_policy_document()
    }
    /// <p>The Amazon Web Services Security Token Service (STS) policy document that defines permissions for token service usage within the ODB network.</p>
    pub fn sts_policy_document(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.sts_policy_document(input.into());
        self
    }
    /// <p>The Amazon Web Services Security Token Service (STS) policy document that defines permissions for token service usage within the ODB network.</p>
    pub fn set_sts_policy_document(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_sts_policy_document(input);
        self
    }
    /// <p>The Amazon Web Services Security Token Service (STS) policy document that defines permissions for token service usage within the ODB network.</p>
    pub fn get_sts_policy_document(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_sts_policy_document()
    }
    /// <p>The Amazon Web Services Key Management Service (KMS) policy document that defines permissions for key usage within the ODB network.</p>
    pub fn kms_policy_document(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.kms_policy_document(input.into());
        self
    }
    /// <p>The Amazon Web Services Key Management Service (KMS) policy document that defines permissions for key usage within the ODB network.</p>
    pub fn set_kms_policy_document(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_kms_policy_document(input);
        self
    }
    /// <p>The Amazon Web Services Key Management Service (KMS) policy document that defines permissions for key usage within the ODB network.</p>
    pub fn get_kms_policy_document(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_kms_policy_document()
    }
    ///
    /// Appends an item to `crossRegionS3RestoreSourcesToEnable`.
    ///
    /// To override the contents of this collection use [`set_cross_region_s3_restore_sources_to_enable`](Self::set_cross_region_s3_restore_sources_to_enable).
    ///
    /// <p>The cross-Region Amazon S3 restore sources to enable for the ODB network.</p>
    pub fn cross_region_s3_restore_sources_to_enable(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.cross_region_s3_restore_sources_to_enable(input.into());
        self
    }
    /// <p>The cross-Region Amazon S3 restore sources to enable for the ODB network.</p>
    pub fn set_cross_region_s3_restore_sources_to_enable(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inner = self.inner.set_cross_region_s3_restore_sources_to_enable(input);
        self
    }
    /// <p>The cross-Region Amazon S3 restore sources to enable for the ODB network.</p>
    pub fn get_cross_region_s3_restore_sources_to_enable(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        self.inner.get_cross_region_s3_restore_sources_to_enable()
    }
    ///
    /// Appends an item to `crossRegionS3RestoreSourcesToDisable`.
    ///
    /// To override the contents of this collection use [`set_cross_region_s3_restore_sources_to_disable`](Self::set_cross_region_s3_restore_sources_to_disable).
    ///
    /// <p>The cross-Region Amazon S3 restore sources to disable for the ODB network.</p>
    pub fn cross_region_s3_restore_sources_to_disable(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.cross_region_s3_restore_sources_to_disable(input.into());
        self
    }
    /// <p>The cross-Region Amazon S3 restore sources to disable for the ODB network.</p>
    pub fn set_cross_region_s3_restore_sources_to_disable(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inner = self.inner.set_cross_region_s3_restore_sources_to_disable(input);
        self
    }
    /// <p>The cross-Region Amazon S3 restore sources to disable for the ODB network.</p>
    pub fn get_cross_region_s3_restore_sources_to_disable(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        self.inner.get_cross_region_s3_restore_sources_to_disable()
    }
}