#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateRenewalOutput {
pub payment_option: ::std::option::Option<crate::types::PaymentOption>,
pub payment_term: ::std::option::Option<crate::types::PaymentTerm>,
pub outpost_id: ::std::option::Option<::std::string::String>,
pub upfront_price: ::std::option::Option<f32>,
pub monthly_recurring_price: ::std::option::Option<f32>,
_request_id: Option<String>,
}
impl CreateRenewalOutput {
pub fn payment_option(&self) -> ::std::option::Option<&crate::types::PaymentOption> {
self.payment_option.as_ref()
}
pub fn payment_term(&self) -> ::std::option::Option<&crate::types::PaymentTerm> {
self.payment_term.as_ref()
}
pub fn outpost_id(&self) -> ::std::option::Option<&str> {
self.outpost_id.as_deref()
}
pub fn upfront_price(&self) -> ::std::option::Option<f32> {
self.upfront_price
}
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 {
pub fn builder() -> crate::operation::create_renewal::builders::CreateRenewalOutputBuilder {
crate::operation::create_renewal::builders::CreateRenewalOutputBuilder::default()
}
}
#[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 {
pub fn payment_option(mut self, input: crate::types::PaymentOption) -> Self {
self.payment_option = ::std::option::Option::Some(input);
self
}
pub fn set_payment_option(mut self, input: ::std::option::Option<crate::types::PaymentOption>) -> Self {
self.payment_option = input;
self
}
pub fn get_payment_option(&self) -> &::std::option::Option<crate::types::PaymentOption> {
&self.payment_option
}
pub fn payment_term(mut self, input: crate::types::PaymentTerm) -> Self {
self.payment_term = ::std::option::Option::Some(input);
self
}
pub fn set_payment_term(mut self, input: ::std::option::Option<crate::types::PaymentTerm>) -> Self {
self.payment_term = input;
self
}
pub fn get_payment_term(&self) -> &::std::option::Option<crate::types::PaymentTerm> {
&self.payment_term
}
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
}
pub fn set_outpost_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.outpost_id = input;
self
}
pub fn get_outpost_id(&self) -> &::std::option::Option<::std::string::String> {
&self.outpost_id
}
pub fn upfront_price(mut self, input: f32) -> Self {
self.upfront_price = ::std::option::Option::Some(input);
self
}
pub fn set_upfront_price(mut self, input: ::std::option::Option<f32>) -> Self {
self.upfront_price = input;
self
}
pub fn get_upfront_price(&self) -> &::std::option::Option<f32> {
&self.upfront_price
}
pub fn monthly_recurring_price(mut self, input: f32) -> Self {
self.monthly_recurring_price = ::std::option::Option::Some(input);
self
}
pub fn set_monthly_recurring_price(mut self, input: ::std::option::Option<f32>) -> Self {
self.monthly_recurring_price = input;
self
}
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
}
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,
}
}
}