aws-sdk-outposts 1.115.0

AWS SDK for AWS Outposts
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 DeleteQuoteInput {
    /// <p>The ID or ARN of the quote.</p>
    pub quote_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteQuoteInput {
    /// <p>The ID or ARN of the quote.</p>
    pub fn quote_identifier(&self) -> ::std::option::Option<&str> {
        self.quote_identifier.as_deref()
    }
}
impl DeleteQuoteInput {
    /// Creates a new builder-style object to manufacture [`DeleteQuoteInput`](crate::operation::delete_quote::DeleteQuoteInput).
    pub fn builder() -> crate::operation::delete_quote::builders::DeleteQuoteInputBuilder {
        crate::operation::delete_quote::builders::DeleteQuoteInputBuilder::default()
    }
}

/// A builder for [`DeleteQuoteInput`](crate::operation::delete_quote::DeleteQuoteInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteQuoteInputBuilder {
    pub(crate) quote_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteQuoteInputBuilder {
    /// <p>The ID or ARN of the quote.</p>
    /// This field is required.
    pub fn quote_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.quote_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID or ARN of the quote.</p>
    pub fn set_quote_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.quote_identifier = input;
        self
    }
    /// <p>The ID or ARN of the quote.</p>
    pub fn get_quote_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.quote_identifier
    }
    /// Consumes the builder and constructs a [`DeleteQuoteInput`](crate::operation::delete_quote::DeleteQuoteInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_quote::DeleteQuoteInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_quote::DeleteQuoteInput {
            quote_identifier: self.quote_identifier,
        })
    }
}