#[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
impl StructuralPartialEq for ReservedNodeOfferingBuilder
Auto Trait Implementations§
impl Freeze for ReservedNodeOfferingBuilder
impl RefUnwindSafe for ReservedNodeOfferingBuilder
impl Send for ReservedNodeOfferingBuilder
impl Sync for ReservedNodeOfferingBuilder
impl Unpin for ReservedNodeOfferingBuilder
impl UnwindSafe for ReservedNodeOfferingBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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