aws-sdk-lexmodelsv2 1.111.0

AWS SDK for Amazon Lex Model Building V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteBotReplicaInput {
    /// <p>The unique ID of the replicated bot to be deleted from the secondary region</p>
    pub bot_id: ::std::option::Option<::std::string::String>,
    /// <p>The secondary region of the replicated bot that will be deleted.</p>
    pub replica_region: ::std::option::Option<::std::string::String>,
}
impl DeleteBotReplicaInput {
    /// <p>The unique ID of the replicated bot to be deleted from the secondary region</p>
    pub fn bot_id(&self) -> ::std::option::Option<&str> {
        self.bot_id.as_deref()
    }
    /// <p>The secondary region of the replicated bot that will be deleted.</p>
    pub fn replica_region(&self) -> ::std::option::Option<&str> {
        self.replica_region.as_deref()
    }
}
impl DeleteBotReplicaInput {
    /// Creates a new builder-style object to manufacture [`DeleteBotReplicaInput`](crate::operation::delete_bot_replica::DeleteBotReplicaInput).
    pub fn builder() -> crate::operation::delete_bot_replica::builders::DeleteBotReplicaInputBuilder {
        crate::operation::delete_bot_replica::builders::DeleteBotReplicaInputBuilder::default()
    }
}

/// A builder for [`DeleteBotReplicaInput`](crate::operation::delete_bot_replica::DeleteBotReplicaInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteBotReplicaInputBuilder {
    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
    pub(crate) replica_region: ::std::option::Option<::std::string::String>,
}
impl DeleteBotReplicaInputBuilder {
    /// <p>The unique ID of the replicated bot to be deleted from the secondary region</p>
    /// This field is required.
    pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID of the replicated bot to be deleted from the secondary region</p>
    pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_id = input;
        self
    }
    /// <p>The unique ID of the replicated bot to be deleted from the secondary region</p>
    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_id
    }
    /// <p>The secondary region of the replicated bot that will be deleted.</p>
    /// This field is required.
    pub fn replica_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.replica_region = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The secondary region of the replicated bot that will be deleted.</p>
    pub fn set_replica_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.replica_region = input;
        self
    }
    /// <p>The secondary region of the replicated bot that will be deleted.</p>
    pub fn get_replica_region(&self) -> &::std::option::Option<::std::string::String> {
        &self.replica_region
    }
    /// Consumes the builder and constructs a [`DeleteBotReplicaInput`](crate::operation::delete_bot_replica::DeleteBotReplicaInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_bot_replica::DeleteBotReplicaInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_bot_replica::DeleteBotReplicaInput {
            bot_id: self.bot_id,
            replica_region: self.replica_region,
        })
    }
}