Struct aws_sdk_memorydb::model::reserved_node::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ReservedNode
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn reservation_id(self, input: impl Into<String>) -> Self
pub fn reservation_id(self, input: impl Into<String>) -> Self
A customer-specified identifier to track this reservation.
sourcepub fn set_reservation_id(self, input: Option<String>) -> Self
pub fn set_reservation_id(self, input: Option<String>) -> Self
A customer-specified identifier to track this reservation.
sourcepub fn reserved_nodes_offering_id(self, input: impl Into<String>) -> Self
pub fn reserved_nodes_offering_id(self, input: impl Into<String>) -> Self
The ID of the reserved node offering to purchase.
sourcepub fn set_reserved_nodes_offering_id(self, input: Option<String>) -> Self
pub fn set_reserved_nodes_offering_id(self, input: Option<String>) -> Self
The ID of the reserved node offering to purchase.
sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
The node type for the reserved nodes.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time the reservation started.
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.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
The duration of the reservation in seconds.
sourcepub fn fixed_price(self, input: f64) -> Self
pub fn fixed_price(self, input: f64) -> Self
The fixed price charged 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 price charged for this reserved node.
sourcepub fn node_count(self, input: i32) -> Self
pub fn node_count(self, input: i32) -> Self
The number of nodes that have been reserved.
sourcepub fn set_node_count(self, input: Option<i32>) -> Self
pub fn set_node_count(self, input: Option<i32>) -> Self
The number of nodes that have been reserved.
sourcepub fn offering_type(self, input: impl Into<String>) -> Self
pub fn offering_type(self, input: impl Into<String>) -> Self
The offering type of this reserved node.
sourcepub fn set_offering_type(self, input: Option<String>) -> Self
pub fn set_offering_type(self, input: Option<String>) -> Self
The offering type of this reserved node.
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 price charged to run this 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 price charged to run this reserved node.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the reserved node.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the reserved node.
sourcepub fn build(self) -> ReservedNode
pub fn build(self) -> ReservedNode
Consumes the builder and constructs a ReservedNode
.