aws-sdk-textract 1.99.0

AWS SDK for Amazon Textract
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 DeleteAdapterVersionInput {
    /// <p>A string containing a unique ID for the adapter version that will be deleted.</p>
    pub adapter_id: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the adapter version to be deleted.</p>
    pub adapter_version: ::std::option::Option<::std::string::String>,
}
impl DeleteAdapterVersionInput {
    /// <p>A string containing a unique ID for the adapter version that will be deleted.</p>
    pub fn adapter_id(&self) -> ::std::option::Option<&str> {
        self.adapter_id.as_deref()
    }
    /// <p>Specifies the adapter version to be deleted.</p>
    pub fn adapter_version(&self) -> ::std::option::Option<&str> {
        self.adapter_version.as_deref()
    }
}
impl DeleteAdapterVersionInput {
    /// Creates a new builder-style object to manufacture [`DeleteAdapterVersionInput`](crate::operation::delete_adapter_version::DeleteAdapterVersionInput).
    pub fn builder() -> crate::operation::delete_adapter_version::builders::DeleteAdapterVersionInputBuilder {
        crate::operation::delete_adapter_version::builders::DeleteAdapterVersionInputBuilder::default()
    }
}

/// A builder for [`DeleteAdapterVersionInput`](crate::operation::delete_adapter_version::DeleteAdapterVersionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAdapterVersionInputBuilder {
    pub(crate) adapter_id: ::std::option::Option<::std::string::String>,
    pub(crate) adapter_version: ::std::option::Option<::std::string::String>,
}
impl DeleteAdapterVersionInputBuilder {
    /// <p>A string containing a unique ID for the adapter version that will be deleted.</p>
    /// This field is required.
    pub fn adapter_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.adapter_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A string containing a unique ID for the adapter version that will be deleted.</p>
    pub fn set_adapter_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.adapter_id = input;
        self
    }
    /// <p>A string containing a unique ID for the adapter version that will be deleted.</p>
    pub fn get_adapter_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.adapter_id
    }
    /// <p>Specifies the adapter version to be deleted.</p>
    /// This field is required.
    pub fn adapter_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.adapter_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the adapter version to be deleted.</p>
    pub fn set_adapter_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.adapter_version = input;
        self
    }
    /// <p>Specifies the adapter version to be deleted.</p>
    pub fn get_adapter_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.adapter_version
    }
    /// Consumes the builder and constructs a [`DeleteAdapterVersionInput`](crate::operation::delete_adapter_version::DeleteAdapterVersionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_adapter_version::DeleteAdapterVersionInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_adapter_version::DeleteAdapterVersionInput {
            adapter_id: self.adapter_id,
            adapter_version: self.adapter_version,
        })
    }
}