Struct aws_sdk_redshift::types::builders::ReservedNodeBuilder
source · #[non_exhaustive]pub struct ReservedNodeBuilder { /* private fields */ }
Expand description
A builder for ReservedNode
.
Implementations§
source§impl ReservedNodeBuilder
impl ReservedNodeBuilder
sourcepub fn reserved_node_id(self, input: impl Into<String>) -> Self
pub fn reserved_node_id(self, input: impl Into<String>) -> Self
The unique identifier for the reservation.
sourcepub fn set_reserved_node_id(self, input: Option<String>) -> Self
pub fn set_reserved_node_id(self, input: Option<String>) -> Self
The unique identifier for the reservation.
sourcepub fn get_reserved_node_id(&self) -> &Option<String>
pub fn get_reserved_node_id(&self) -> &Option<String>
The unique identifier for the reservation.
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 identifier for the reserved node offering.
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 identifier for the reserved node offering.
sourcepub fn get_reserved_node_offering_id(&self) -> &Option<String>
pub fn get_reserved_node_offering_id(&self) -> &Option<String>
The identifier for 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 of the reserved node.
sourcepub fn get_node_type(&self) -> &Option<String>
pub fn get_node_type(&self) -> &Option<String>
The node type of the reserved node.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
The duration of the node reservation in seconds.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The duration of the node reservation in seconds.
sourcepub fn fixed_price(self, input: f64) -> Self
pub fn fixed_price(self, input: f64) -> Self
The fixed cost Amazon Redshift charges you for this reserved node.
sourcepub fn set_fixed_price(self, input: Option<f64>) -> Self
pub fn set_fixed_price(self, input: Option<f64>) -> Self
The fixed cost Amazon Redshift charges you for this reserved node.
sourcepub fn get_fixed_price(&self) -> &Option<f64>
pub fn get_fixed_price(&self) -> &Option<f64>
The fixed cost Amazon Redshift charges you for this reserved node.
sourcepub fn usage_price(self, input: f64) -> Self
pub fn usage_price(self, input: f64) -> Self
The hourly rate Amazon Redshift charges you for this reserved node.
sourcepub fn set_usage_price(self, input: Option<f64>) -> Self
pub fn set_usage_price(self, input: Option<f64>) -> Self
The hourly rate Amazon Redshift charges you for this reserved node.
sourcepub fn get_usage_price(&self) -> &Option<f64>
pub fn get_usage_price(&self) -> &Option<f64>
The hourly rate Amazon Redshift charges you for this reserved node.
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 reserved cluster.
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 reserved cluster.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The currency code for the reserved cluster.
sourcepub fn node_count(self, input: i32) -> Self
pub fn node_count(self, input: i32) -> Self
The number of reserved compute nodes.
sourcepub fn set_node_count(self, input: Option<i32>) -> Self
pub fn set_node_count(self, input: Option<i32>) -> Self
The number of reserved compute nodes.
sourcepub fn get_node_count(&self) -> &Option<i32>
pub fn get_node_count(&self) -> &Option<i32>
The number of reserved compute nodes.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
The state of the reserved compute node.
Possible Values:
-
pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
-
active-This reserved node is owned by the caller and is available for use.
-
payment-failed-Payment failed for the purchase attempt.
-
retired-The reserved node is no longer available.
-
exchanging-The owner is exchanging the reserved node for another reserved node.
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
The state of the reserved compute node.
Possible Values:
-
pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
-
active-This reserved node is owned by the caller and is available for use.
-
payment-failed-Payment failed for the purchase attempt.
-
retired-The reserved node is no longer available.
-
exchanging-The owner is exchanging the reserved node for another reserved node.
sourcepub fn get_state(&self) -> &Option<String>
pub fn get_state(&self) -> &Option<String>
The state of the reserved compute node.
Possible Values:
-
pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
-
active-This reserved node is owned by the caller and is available for use.
-
payment-failed-Payment failed for the purchase attempt.
-
retired-The reserved node is no longer available.
-
exchanging-The owner is exchanging the reserved node for another reserved node.
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 recurring charges for the reserved node.
sourcepub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
pub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
The recurring charges for the reserved node.
sourcepub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
pub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
The recurring charges for the reserved node.
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) -> ReservedNode
pub fn build(self) -> ReservedNode
Consumes the builder and constructs a ReservedNode
.
Trait Implementations§
source§impl Clone for ReservedNodeBuilder
impl Clone for ReservedNodeBuilder
source§fn clone(&self) -> ReservedNodeBuilder
fn clone(&self) -> ReservedNodeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReservedNodeBuilder
impl Debug for ReservedNodeBuilder
source§impl Default for ReservedNodeBuilder
impl Default for ReservedNodeBuilder
source§fn default() -> ReservedNodeBuilder
fn default() -> ReservedNodeBuilder
source§impl PartialEq for ReservedNodeBuilder
impl PartialEq for ReservedNodeBuilder
source§fn eq(&self, other: &ReservedNodeBuilder) -> bool
fn eq(&self, other: &ReservedNodeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.