#[non_exhaustive]pub struct ReservedNodeOfferingBuilder { /* private fields */ }
Expand description
A builder for ReservedNodeOffering
.
Implementations§
source§impl ReservedNodeOfferingBuilder
impl ReservedNodeOfferingBuilder
sourcepub fn reserved_node_offering_id(self, input: impl Into<String>) -> Self
pub fn reserved_node_offering_id(self, input: impl Into<String>) -> Self
The offering identifier.
sourcepub fn set_reserved_node_offering_id(self, input: Option<String>) -> Self
pub fn set_reserved_node_offering_id(self, input: Option<String>) -> Self
The offering identifier.
sourcepub fn get_reserved_node_offering_id(&self) -> &Option<String>
pub fn get_reserved_node_offering_id(&self) -> &Option<String>
The offering identifier.
sourcepub fn node_type(self, input: impl Into<String>) -> Self
pub fn node_type(self, input: impl Into<String>) -> Self
The node type offered by the reserved node offering.
sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
The node type offered by the reserved node offering.
sourcepub fn get_node_type(&self) -> &Option<String>
pub fn get_node_type(&self) -> &Option<String>
The node type offered by the reserved node offering.
sourcepub fn duration(self, input: i32) -> Self
pub fn duration(self, input: i32) -> Self
The duration, in seconds, for which the offering will reserve the node.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
The duration, in seconds, for which the offering will reserve the node.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The duration, in seconds, for which the offering will reserve the node.
sourcepub fn fixed_price(self, input: f64) -> Self
pub fn fixed_price(self, input: f64) -> Self
The upfront fixed charge you will pay to purchase the specific reserved node offering.
sourcepub fn set_fixed_price(self, input: Option<f64>) -> Self
pub fn set_fixed_price(self, input: Option<f64>) -> Self
The upfront fixed charge you will pay to purchase the specific reserved node offering.
sourcepub fn get_fixed_price(&self) -> &Option<f64>
pub fn get_fixed_price(&self) -> &Option<f64>
The upfront fixed charge you will pay to purchase the specific reserved node offering.
sourcepub fn usage_price(self, input: f64) -> Self
pub fn usage_price(self, input: f64) -> Self
The rate you are charged for each hour the cluster that is using the offering is running.
sourcepub fn set_usage_price(self, input: Option<f64>) -> Self
pub fn set_usage_price(self, input: Option<f64>) -> Self
The rate you are charged for each hour the cluster that is using the offering is running.
sourcepub fn get_usage_price(&self) -> &Option<f64>
pub fn get_usage_price(&self) -> &Option<f64>
The rate you are charged for each hour the cluster that is using the offering is running.
sourcepub fn currency_code(self, input: impl Into<String>) -> Self
pub fn currency_code(self, input: impl Into<String>) -> Self
The currency code for the compute nodes offering.
sourcepub fn set_currency_code(self, input: Option<String>) -> Self
pub fn set_currency_code(self, input: Option<String>) -> Self
The currency code for the compute nodes offering.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The currency code for the compute nodes offering.
sourcepub fn offering_type(self, input: impl Into<String>) -> Self
pub fn offering_type(self, input: impl Into<String>) -> Self
The anticipated utilization of the reserved node, as defined in the reserved node offering.
sourcepub fn set_offering_type(self, input: Option<String>) -> Self
pub fn set_offering_type(self, input: Option<String>) -> Self
The anticipated utilization of the reserved node, as defined in the reserved node offering.
sourcepub fn get_offering_type(&self) -> &Option<String>
pub fn get_offering_type(&self) -> &Option<String>
The anticipated utilization of the reserved node, as defined in the reserved node offering.
sourcepub fn recurring_charges(self, input: RecurringCharge) -> Self
pub fn recurring_charges(self, input: RecurringCharge) -> Self
Appends an item to recurring_charges
.
To override the contents of this collection use set_recurring_charges
.
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
sourcepub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
pub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
sourcepub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
pub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
sourcepub fn reserved_node_offering_type(
self,
input: ReservedNodeOfferingType
) -> Self
pub fn reserved_node_offering_type( self, input: ReservedNodeOfferingType ) -> Self
sourcepub fn set_reserved_node_offering_type(
self,
input: Option<ReservedNodeOfferingType>
) -> Self
pub fn set_reserved_node_offering_type( self, input: Option<ReservedNodeOfferingType> ) -> Self
sourcepub fn get_reserved_node_offering_type(
&self
) -> &Option<ReservedNodeOfferingType>
pub fn get_reserved_node_offering_type( &self ) -> &Option<ReservedNodeOfferingType>
sourcepub fn build(self) -> ReservedNodeOffering
pub fn build(self) -> ReservedNodeOffering
Consumes the builder and constructs a ReservedNodeOffering
.
Trait Implementations§
source§impl Clone for ReservedNodeOfferingBuilder
impl Clone for ReservedNodeOfferingBuilder
source§fn clone(&self) -> ReservedNodeOfferingBuilder
fn clone(&self) -> ReservedNodeOfferingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReservedNodeOfferingBuilder
impl Debug for ReservedNodeOfferingBuilder
source§impl Default for ReservedNodeOfferingBuilder
impl Default for ReservedNodeOfferingBuilder
source§fn default() -> ReservedNodeOfferingBuilder
fn default() -> ReservedNodeOfferingBuilder
source§impl PartialEq for ReservedNodeOfferingBuilder
impl PartialEq for ReservedNodeOfferingBuilder
source§fn eq(&self, other: &ReservedNodeOfferingBuilder) -> bool
fn eq(&self, other: &ReservedNodeOfferingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.