Struct aws_sdk_opensearch::types::builders::ReservedInstanceBuilder
source · #[non_exhaustive]pub struct ReservedInstanceBuilder { /* private fields */ }
Expand description
A builder for ReservedInstance
.
Implementations§
source§impl ReservedInstanceBuilder
impl ReservedInstanceBuilder
sourcepub fn reservation_name(self, input: impl Into<String>) -> Self
pub fn reservation_name(self, input: impl Into<String>) -> Self
The customer-specified identifier to track this reservation.
sourcepub fn set_reservation_name(self, input: Option<String>) -> Self
pub fn set_reservation_name(self, input: Option<String>) -> Self
The customer-specified identifier to track this reservation.
sourcepub fn get_reservation_name(&self) -> &Option<String>
pub fn get_reservation_name(&self) -> &Option<String>
The customer-specified identifier to track this reservation.
sourcepub fn reserved_instance_id(self, input: impl Into<String>) -> Self
pub fn reserved_instance_id(self, input: impl Into<String>) -> Self
The unique identifier for the reservation.
sourcepub fn set_reserved_instance_id(self, input: Option<String>) -> Self
pub fn set_reserved_instance_id(self, input: Option<String>) -> Self
The unique identifier for the reservation.
sourcepub fn get_reserved_instance_id(&self) -> &Option<String>
pub fn get_reserved_instance_id(&self) -> &Option<String>
The unique identifier for the reservation.
sourcepub fn billing_subscription_id(self, input: i64) -> Self
pub fn billing_subscription_id(self, input: i64) -> Self
The unique identifier of the billing subscription.
sourcepub fn set_billing_subscription_id(self, input: Option<i64>) -> Self
pub fn set_billing_subscription_id(self, input: Option<i64>) -> Self
The unique identifier of the billing subscription.
sourcepub fn get_billing_subscription_id(&self) -> &Option<i64>
pub fn get_billing_subscription_id(&self) -> &Option<i64>
The unique identifier of the billing subscription.
sourcepub fn reserved_instance_offering_id(self, input: impl Into<String>) -> Self
pub fn reserved_instance_offering_id(self, input: impl Into<String>) -> Self
The unique identifier of the Reserved Instance offering.
sourcepub fn set_reserved_instance_offering_id(self, input: Option<String>) -> Self
pub fn set_reserved_instance_offering_id(self, input: Option<String>) -> Self
The unique identifier of the Reserved Instance offering.
sourcepub fn get_reserved_instance_offering_id(&self) -> &Option<String>
pub fn get_reserved_instance_offering_id(&self) -> &Option<String>
The unique identifier of the Reserved Instance offering.
sourcepub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
pub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
The OpenSearch instance type offered by theReserved Instance offering.
sourcepub fn set_instance_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
pub fn set_instance_type( self, input: Option<OpenSearchPartitionInstanceType> ) -> Self
The OpenSearch instance type offered by theReserved Instance offering.
sourcepub fn get_instance_type(&self) -> &Option<OpenSearchPartitionInstanceType>
pub fn get_instance_type(&self) -> &Option<OpenSearchPartitionInstanceType>
The OpenSearch instance type offered by theReserved Instance offering.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The date and time when the reservation was purchased.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The date and time when the reservation was purchased.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The date and time when the reservation was purchased.
sourcepub fn duration(self, input: i32) -> Self
pub fn duration(self, input: i32) -> Self
The duration, in seconds, for which the OpenSearch instance is reserved.
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 OpenSearch instance is reserved.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The duration, in seconds, for which the OpenSearch instance is reserved.
sourcepub fn fixed_price(self, input: f64) -> Self
pub fn fixed_price(self, input: f64) -> Self
The upfront fixed charge you will paid to purchase the specific Reserved Instance 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 paid to purchase the specific Reserved Instance offering.
sourcepub fn get_fixed_price(&self) -> &Option<f64>
pub fn get_fixed_price(&self) -> &Option<f64>
The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.
sourcepub fn usage_price(self, input: f64) -> Self
pub fn usage_price(self, input: f64) -> Self
The hourly rate at which you're charged for the domain using this Reserved Instance.
sourcepub fn set_usage_price(self, input: Option<f64>) -> Self
pub fn set_usage_price(self, input: Option<f64>) -> Self
The hourly rate at which you're charged for the domain using this Reserved Instance.
sourcepub fn get_usage_price(&self) -> &Option<f64>
pub fn get_usage_price(&self) -> &Option<f64>
The hourly rate at which you're charged for the domain using this Reserved Instance.
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 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 offering.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The currency code for the offering.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of OpenSearch instances that have been reserved.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of OpenSearch instances that have been reserved.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of OpenSearch instances that have been reserved.
sourcepub fn payment_option(self, input: ReservedInstancePaymentOption) -> Self
pub fn payment_option(self, input: ReservedInstancePaymentOption) -> Self
The payment option as defined in the Reserved Instance offering.
sourcepub fn set_payment_option(
self,
input: Option<ReservedInstancePaymentOption>
) -> Self
pub fn set_payment_option( self, input: Option<ReservedInstancePaymentOption> ) -> Self
The payment option as defined in the Reserved Instance offering.
sourcepub fn get_payment_option(&self) -> &Option<ReservedInstancePaymentOption>
pub fn get_payment_option(&self) -> &Option<ReservedInstancePaymentOption>
The payment option as defined in the Reserved Instance 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 charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
sourcepub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
pub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
sourcepub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
pub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
sourcepub fn build(self) -> ReservedInstance
pub fn build(self) -> ReservedInstance
Consumes the builder and constructs a ReservedInstance
.
Trait Implementations§
source§impl Clone for ReservedInstanceBuilder
impl Clone for ReservedInstanceBuilder
source§fn clone(&self) -> ReservedInstanceBuilder
fn clone(&self) -> ReservedInstanceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReservedInstanceBuilder
impl Debug for ReservedInstanceBuilder
source§impl Default for ReservedInstanceBuilder
impl Default for ReservedInstanceBuilder
source§fn default() -> ReservedInstanceBuilder
fn default() -> ReservedInstanceBuilder
source§impl PartialEq for ReservedInstanceBuilder
impl PartialEq for ReservedInstanceBuilder
source§fn eq(&self, other: &ReservedInstanceBuilder) -> bool
fn eq(&self, other: &ReservedInstanceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.