#[non_exhaustive]pub struct SavingsPlanOfferingRateBuilder { /* private fields */ }
Expand description
A builder for SavingsPlanOfferingRate
.
Implementations§
source§impl SavingsPlanOfferingRateBuilder
impl SavingsPlanOfferingRateBuilder
sourcepub fn savings_plan_offering(self, input: ParentSavingsPlanOffering) -> Self
pub fn savings_plan_offering(self, input: ParentSavingsPlanOffering) -> Self
The Savings Plan offering.
sourcepub fn set_savings_plan_offering(
self,
input: Option<ParentSavingsPlanOffering>
) -> Self
pub fn set_savings_plan_offering( self, input: Option<ParentSavingsPlanOffering> ) -> Self
The Savings Plan offering.
sourcepub fn get_savings_plan_offering(&self) -> &Option<ParentSavingsPlanOffering>
pub fn get_savings_plan_offering(&self) -> &Option<ParentSavingsPlanOffering>
The Savings Plan offering.
sourcepub fn unit(self, input: SavingsPlanRateUnit) -> Self
pub fn unit(self, input: SavingsPlanRateUnit) -> Self
The unit.
sourcepub fn set_unit(self, input: Option<SavingsPlanRateUnit>) -> Self
pub fn set_unit(self, input: Option<SavingsPlanRateUnit>) -> Self
The unit.
sourcepub fn get_unit(&self) -> &Option<SavingsPlanRateUnit>
pub fn get_unit(&self) -> &Option<SavingsPlanRateUnit>
The unit.
sourcepub fn product_type(self, input: SavingsPlanProductType) -> Self
pub fn product_type(self, input: SavingsPlanProductType) -> Self
The product type.
sourcepub fn set_product_type(self, input: Option<SavingsPlanProductType>) -> Self
pub fn set_product_type(self, input: Option<SavingsPlanProductType>) -> Self
The product type.
sourcepub fn get_product_type(&self) -> &Option<SavingsPlanProductType>
pub fn get_product_type(&self) -> &Option<SavingsPlanProductType>
The product type.
sourcepub fn service_code(self, input: SavingsPlanRateServiceCode) -> Self
pub fn service_code(self, input: SavingsPlanRateServiceCode) -> Self
The service.
sourcepub fn set_service_code(self, input: Option<SavingsPlanRateServiceCode>) -> Self
pub fn set_service_code(self, input: Option<SavingsPlanRateServiceCode>) -> Self
The service.
sourcepub fn get_service_code(&self) -> &Option<SavingsPlanRateServiceCode>
pub fn get_service_code(&self) -> &Option<SavingsPlanRateServiceCode>
The service.
sourcepub fn usage_type(self, input: impl Into<String>) -> Self
pub fn usage_type(self, input: impl Into<String>) -> Self
The usage details of the line item in the billing report.
sourcepub fn set_usage_type(self, input: Option<String>) -> Self
pub fn set_usage_type(self, input: Option<String>) -> Self
The usage details of the line item in the billing report.
sourcepub fn get_usage_type(&self) -> &Option<String>
pub fn get_usage_type(&self) -> &Option<String>
The usage details of the line item in the billing report.
sourcepub fn operation(self, input: impl Into<String>) -> Self
pub fn operation(self, input: impl Into<String>) -> Self
The specific Amazon Web Services operation for the line item in the billing report.
sourcepub fn set_operation(self, input: Option<String>) -> Self
pub fn set_operation(self, input: Option<String>) -> Self
The specific Amazon Web Services operation for the line item in the billing report.
sourcepub fn get_operation(&self) -> &Option<String>
pub fn get_operation(&self) -> &Option<String>
The specific Amazon Web Services operation for the line item in the billing report.
sourcepub fn properties(self, input: SavingsPlanOfferingRateProperty) -> Self
pub fn properties(self, input: SavingsPlanOfferingRateProperty) -> Self
Appends an item to properties
.
To override the contents of this collection use set_properties
.
The properties.
sourcepub fn set_properties(
self,
input: Option<Vec<SavingsPlanOfferingRateProperty>>
) -> Self
pub fn set_properties( self, input: Option<Vec<SavingsPlanOfferingRateProperty>> ) -> Self
The properties.
sourcepub fn get_properties(&self) -> &Option<Vec<SavingsPlanOfferingRateProperty>>
pub fn get_properties(&self) -> &Option<Vec<SavingsPlanOfferingRateProperty>>
The properties.
sourcepub fn build(self) -> SavingsPlanOfferingRate
pub fn build(self) -> SavingsPlanOfferingRate
Consumes the builder and constructs a SavingsPlanOfferingRate
.
Trait Implementations§
source§impl Clone for SavingsPlanOfferingRateBuilder
impl Clone for SavingsPlanOfferingRateBuilder
source§fn clone(&self) -> SavingsPlanOfferingRateBuilder
fn clone(&self) -> SavingsPlanOfferingRateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SavingsPlanOfferingRateBuilder
impl Default for SavingsPlanOfferingRateBuilder
source§fn default() -> SavingsPlanOfferingRateBuilder
fn default() -> SavingsPlanOfferingRateBuilder
source§impl PartialEq for SavingsPlanOfferingRateBuilder
impl PartialEq for SavingsPlanOfferingRateBuilder
source§fn eq(&self, other: &SavingsPlanOfferingRateBuilder) -> bool
fn eq(&self, other: &SavingsPlanOfferingRateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SavingsPlanOfferingRateBuilder
Auto Trait Implementations§
impl Freeze for SavingsPlanOfferingRateBuilder
impl RefUnwindSafe for SavingsPlanOfferingRateBuilder
impl Send for SavingsPlanOfferingRateBuilder
impl Sync for SavingsPlanOfferingRateBuilder
impl Unpin for SavingsPlanOfferingRateBuilder
impl UnwindSafe for SavingsPlanOfferingRateBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more