aws-sdk-outposts 1.109.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 CreateRenewalOutput {
    /// <p>The payment option.</p>
    pub payment_option: ::std::option::Option<crate::types::PaymentOption>,
    /// <p>The payment term.</p>
    pub payment_term: ::std::option::Option<crate::types::PaymentTerm>,
    /// <p>The ID of the Outpost.</p>
    pub outpost_id: ::std::option::Option<::std::string::String>,
    /// <p>The upfront price of the renewal.</p>
    pub upfront_price: ::std::option::Option<f32>,
    /// <p>The monthly recurring price of the renewal.</p>
    pub monthly_recurring_price: ::std::option::Option<f32>,
    _request_id: Option<String>,
}
impl CreateRenewalOutput {
    /// <p>The payment option.</p>
    pub fn payment_option(&self) -> ::std::option::Option<&crate::types::PaymentOption> {
        self.payment_option.as_ref()
    }
    /// <p>The payment term.</p>
    pub fn payment_term(&self) -> ::std::option::Option<&crate::types::PaymentTerm> {
        self.payment_term.as_ref()
    }
    /// <p>The ID of the Outpost.</p>
    pub fn outpost_id(&self) -> ::std::option::Option<&str> {
        self.outpost_id.as_deref()
    }
    /// <p>The upfront price of the renewal.</p>
    pub fn upfront_price(&self) -> ::std::option::Option<f32> {
        self.upfront_price
    }
    /// <p>The monthly recurring price of the renewal.</p>
    pub fn monthly_recurring_price(&self) -> ::std::option::Option<f32> {
        self.monthly_recurring_price
    }
}
impl ::aws_types::request_id::RequestId for CreateRenewalOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateRenewalOutput {
    /// Creates a new builder-style object to manufacture [`CreateRenewalOutput`](crate::operation::create_renewal::CreateRenewalOutput).
    pub fn builder() -> crate::operation::create_renewal::builders::CreateRenewalOutputBuilder {
        crate::operation::create_renewal::builders::CreateRenewalOutputBuilder::default()
    }
}

/// A builder for [`CreateRenewalOutput`](crate::operation::create_renewal::CreateRenewalOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateRenewalOutputBuilder {
    pub(crate) payment_option: ::std::option::Option<crate::types::PaymentOption>,
    pub(crate) payment_term: ::std::option::Option<crate::types::PaymentTerm>,
    pub(crate) outpost_id: ::std::option::Option<::std::string::String>,
    pub(crate) upfront_price: ::std::option::Option<f32>,
    pub(crate) monthly_recurring_price: ::std::option::Option<f32>,
    _request_id: Option<String>,
}
impl CreateRenewalOutputBuilder {
    /// <p>The payment option.</p>
    pub fn payment_option(mut self, input: crate::types::PaymentOption) -> Self {
        self.payment_option = ::std::option::Option::Some(input);
        self
    }
    /// <p>The payment option.</p>
    pub fn set_payment_option(mut self, input: ::std::option::Option<crate::types::PaymentOption>) -> Self {
        self.payment_option = input;
        self
    }
    /// <p>The payment option.</p>
    pub fn get_payment_option(&self) -> &::std::option::Option<crate::types::PaymentOption> {
        &self.payment_option
    }
    /// <p>The payment term.</p>
    pub fn payment_term(mut self, input: crate::types::PaymentTerm) -> Self {
        self.payment_term = ::std::option::Option::Some(input);
        self
    }
    /// <p>The payment term.</p>
    pub fn set_payment_term(mut self, input: ::std::option::Option<crate::types::PaymentTerm>) -> Self {
        self.payment_term = input;
        self
    }
    /// <p>The payment term.</p>
    pub fn get_payment_term(&self) -> &::std::option::Option<crate::types::PaymentTerm> {
        &self.payment_term
    }
    /// <p>The ID of the Outpost.</p>
    pub fn outpost_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.outpost_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Outpost.</p>
    pub fn set_outpost_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.outpost_id = input;
        self
    }
    /// <p>The ID of the Outpost.</p>
    pub fn get_outpost_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.outpost_id
    }
    /// <p>The upfront price of the renewal.</p>
    pub fn upfront_price(mut self, input: f32) -> Self {
        self.upfront_price = ::std::option::Option::Some(input);
        self
    }
    /// <p>The upfront price of the renewal.</p>
    pub fn set_upfront_price(mut self, input: ::std::option::Option<f32>) -> Self {
        self.upfront_price = input;
        self
    }
    /// <p>The upfront price of the renewal.</p>
    pub fn get_upfront_price(&self) -> &::std::option::Option<f32> {
        &self.upfront_price
    }
    /// <p>The monthly recurring price of the renewal.</p>
    pub fn monthly_recurring_price(mut self, input: f32) -> Self {
        self.monthly_recurring_price = ::std::option::Option::Some(input);
        self
    }
    /// <p>The monthly recurring price of the renewal.</p>
    pub fn set_monthly_recurring_price(mut self, input: ::std::option::Option<f32>) -> Self {
        self.monthly_recurring_price = input;
        self
    }
    /// <p>The monthly recurring price of the renewal.</p>
    pub fn get_monthly_recurring_price(&self) -> &::std::option::Option<f32> {
        &self.monthly_recurring_price
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateRenewalOutput`](crate::operation::create_renewal::CreateRenewalOutput).
    pub fn build(self) -> crate::operation::create_renewal::CreateRenewalOutput {
        crate::operation::create_renewal::CreateRenewalOutput {
            payment_option: self.payment_option,
            payment_term: self.payment_term,
            outpost_id: self.outpost_id,
            upfront_price: self.upfront_price,
            monthly_recurring_price: self.monthly_recurring_price,
            _request_id: self._request_id,
        }
    }
}