Struct aws_sdk_mediaconnect::types::builders::OfferingBuilder
source · #[non_exhaustive]pub struct OfferingBuilder { /* private fields */ }Expand description
A builder for Offering.
Implementations§
source§impl OfferingBuilder
impl OfferingBuilder
sourcepub fn currency_code(self, input: impl Into<String>) -> Self
pub fn currency_code(self, input: impl Into<String>) -> Self
The type of currency that is used for billing. The currencyCode used for all reservations is US dollars. This field is required.
sourcepub fn set_currency_code(self, input: Option<String>) -> Self
pub fn set_currency_code(self, input: Option<String>) -> Self
The type of currency that is used for billing. The currencyCode used for all reservations is US dollars.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The type of currency that is used for billing. The currencyCode used for all reservations is US dollars.
sourcepub fn duration(self, input: i32) -> Self
pub fn duration(self, input: i32) -> Self
The length of time that your reservation would be active. This field is required.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
The length of time that your reservation would be active.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The length of time that your reservation would be active.
sourcepub fn duration_units(self, input: DurationUnits) -> Self
pub fn duration_units(self, input: DurationUnits) -> Self
The unit of measurement for the duration of the offering. This field is required.
sourcepub fn set_duration_units(self, input: Option<DurationUnits>) -> Self
pub fn set_duration_units(self, input: Option<DurationUnits>) -> Self
The unit of measurement for the duration of the offering.
sourcepub fn get_duration_units(&self) -> &Option<DurationUnits>
pub fn get_duration_units(&self) -> &Option<DurationUnits>
The unit of measurement for the duration of the offering.
sourcepub fn offering_arn(self, input: impl Into<String>) -> Self
pub fn offering_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that MediaConnect assigns to the offering. This field is required.
sourcepub fn set_offering_arn(self, input: Option<String>) -> Self
pub fn set_offering_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that MediaConnect assigns to the offering.
sourcepub fn get_offering_arn(&self) -> &Option<String>
pub fn get_offering_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) that MediaConnect assigns to the offering.
sourcepub fn offering_description(self, input: impl Into<String>) -> Self
pub fn offering_description(self, input: impl Into<String>) -> Self
A description of the offering. This field is required.
sourcepub fn set_offering_description(self, input: Option<String>) -> Self
pub fn set_offering_description(self, input: Option<String>) -> Self
A description of the offering.
sourcepub fn get_offering_description(&self) -> &Option<String>
pub fn get_offering_description(&self) -> &Option<String>
A description of the offering.
sourcepub fn price_per_unit(self, input: impl Into<String>) -> Self
pub fn price_per_unit(self, input: impl Into<String>) -> Self
The cost of a single unit. This value, in combination with priceUnits, makes up the rate. This field is required.
sourcepub fn set_price_per_unit(self, input: Option<String>) -> Self
pub fn set_price_per_unit(self, input: Option<String>) -> Self
The cost of a single unit. This value, in combination with priceUnits, makes up the rate.
sourcepub fn get_price_per_unit(&self) -> &Option<String>
pub fn get_price_per_unit(&self) -> &Option<String>
The cost of a single unit. This value, in combination with priceUnits, makes up the rate.
sourcepub fn price_units(self, input: PriceUnits) -> Self
pub fn price_units(self, input: PriceUnits) -> Self
The unit of measurement that is used for billing. This value, in combination with pricePerUnit, makes up the rate. This field is required.
sourcepub fn set_price_units(self, input: Option<PriceUnits>) -> Self
pub fn set_price_units(self, input: Option<PriceUnits>) -> Self
The unit of measurement that is used for billing. This value, in combination with pricePerUnit, makes up the rate.
sourcepub fn get_price_units(&self) -> &Option<PriceUnits>
pub fn get_price_units(&self) -> &Option<PriceUnits>
The unit of measurement that is used for billing. This value, in combination with pricePerUnit, makes up the rate.
sourcepub fn resource_specification(self, input: ResourceSpecification) -> Self
pub fn resource_specification(self, input: ResourceSpecification) -> Self
A definition of the amount of outbound bandwidth that you would be reserving if you purchase the offering. This field is required.
sourcepub fn set_resource_specification(
self,
input: Option<ResourceSpecification>
) -> Self
pub fn set_resource_specification( self, input: Option<ResourceSpecification> ) -> Self
A definition of the amount of outbound bandwidth that you would be reserving if you purchase the offering.
sourcepub fn get_resource_specification(&self) -> &Option<ResourceSpecification>
pub fn get_resource_specification(&self) -> &Option<ResourceSpecification>
A definition of the amount of outbound bandwidth that you would be reserving if you purchase the offering.
Trait Implementations§
source§impl Clone for OfferingBuilder
impl Clone for OfferingBuilder
source§fn clone(&self) -> OfferingBuilder
fn clone(&self) -> OfferingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OfferingBuilder
impl Debug for OfferingBuilder
source§impl Default for OfferingBuilder
impl Default for OfferingBuilder
source§fn default() -> OfferingBuilder
fn default() -> OfferingBuilder
source§impl PartialEq for OfferingBuilder
impl PartialEq for OfferingBuilder
source§fn eq(&self, other: &OfferingBuilder) -> bool
fn eq(&self, other: &OfferingBuilder) -> bool
self and other values to be equal, and is used
by ==.