Struct aws_sdk_redshift::model::reserved_node::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ReservedNode
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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 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 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 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 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 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 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 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 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 build(self) -> ReservedNode
pub fn build(self) -> ReservedNode
Consumes the builder and constructs a ReservedNode
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more