#[non_exhaustive]pub struct ReservedElasticsearchInstanceBuilder { /* private fields */ }
Expand description
A builder for ReservedElasticsearchInstance
.
Implementations§
source§impl ReservedElasticsearchInstanceBuilder
impl ReservedElasticsearchInstanceBuilder
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_elasticsearch_instance_id(
self,
input: impl Into<String>
) -> Self
pub fn reserved_elasticsearch_instance_id( self, input: impl Into<String> ) -> Self
The unique identifier for the reservation.
sourcepub fn set_reserved_elasticsearch_instance_id(
self,
input: Option<String>
) -> Self
pub fn set_reserved_elasticsearch_instance_id( self, input: Option<String> ) -> Self
The unique identifier for the reservation.
sourcepub fn get_reserved_elasticsearch_instance_id(&self) -> &Option<String>
pub fn get_reserved_elasticsearch_instance_id(&self) -> &Option<String>
The unique identifier for the reservation.
sourcepub fn reserved_elasticsearch_instance_offering_id(
self,
input: impl Into<String>
) -> Self
pub fn reserved_elasticsearch_instance_offering_id( self, input: impl Into<String> ) -> Self
The offering identifier.
sourcepub fn set_reserved_elasticsearch_instance_offering_id(
self,
input: Option<String>
) -> Self
pub fn set_reserved_elasticsearch_instance_offering_id( self, input: Option<String> ) -> Self
The offering identifier.
sourcepub fn get_reserved_elasticsearch_instance_offering_id(&self) -> &Option<String>
pub fn get_reserved_elasticsearch_instance_offering_id(&self) -> &Option<String>
The offering identifier.
sourcepub fn elasticsearch_instance_type(self, input: EsPartitionInstanceType) -> Self
pub fn elasticsearch_instance_type(self, input: EsPartitionInstanceType) -> Self
The Elasticsearch instance type offered by the reserved instance offering.
sourcepub fn set_elasticsearch_instance_type(
self,
input: Option<EsPartitionInstanceType>
) -> Self
pub fn set_elasticsearch_instance_type( self, input: Option<EsPartitionInstanceType> ) -> Self
The Elasticsearch instance type offered by the reserved instance offering.
sourcepub fn get_elasticsearch_instance_type(
&self
) -> &Option<EsPartitionInstanceType>
pub fn get_elasticsearch_instance_type( &self ) -> &Option<EsPartitionInstanceType>
The Elasticsearch instance type offered by the reserved instance offering.
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 get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The time the reservation started.
sourcepub fn duration(self, input: i32) -> Self
pub fn duration(self, input: i32) -> Self
The duration, in seconds, for which the Elasticsearch 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 Elasticsearch instance is reserved.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The duration, in seconds, for which the Elasticsearch 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 Elasticsearch 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 Elasticsearch 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 Elasticsearch instance 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 for the domain that is 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 rate you are charged for each hour for the domain that is using this reserved instance.
sourcepub fn get_usage_price(&self) -> &Option<f64>
pub fn get_usage_price(&self) -> &Option<f64>
The rate you are charged for each hour for the domain that is 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 reserved Elasticsearch instance 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 reserved Elasticsearch instance offering.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The currency code for the reserved Elasticsearch instance offering.
sourcepub fn elasticsearch_instance_count(self, input: i32) -> Self
pub fn elasticsearch_instance_count(self, input: i32) -> Self
The number of Elasticsearch instances that have been reserved.
sourcepub fn set_elasticsearch_instance_count(self, input: Option<i32>) -> Self
pub fn set_elasticsearch_instance_count(self, input: Option<i32>) -> Self
The number of Elasticsearch instances that have been reserved.
sourcepub fn get_elasticsearch_instance_count(&self) -> &Option<i32>
pub fn get_elasticsearch_instance_count(&self) -> &Option<i32>
The number of Elasticsearch instances that have been reserved.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
The state of the reserved Elasticsearch instance.
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
The state of the reserved Elasticsearch instance.
sourcepub fn payment_option(
self,
input: ReservedElasticsearchInstancePaymentOption
) -> Self
pub fn payment_option( self, input: ReservedElasticsearchInstancePaymentOption ) -> Self
The payment option as defined in the reserved Elasticsearch instance offering.
sourcepub fn set_payment_option(
self,
input: Option<ReservedElasticsearchInstancePaymentOption>
) -> Self
pub fn set_payment_option( self, input: Option<ReservedElasticsearchInstancePaymentOption> ) -> Self
The payment option as defined in the reserved Elasticsearch instance offering.
sourcepub fn get_payment_option(
&self
) -> &Option<ReservedElasticsearchInstancePaymentOption>
pub fn get_payment_option( &self ) -> &Option<ReservedElasticsearchInstancePaymentOption>
The payment option as defined in the reserved Elasticsearch 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 charge to your account regardless of whether you are creating any domains using the 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 charge to your account regardless of whether you are creating any domains using the instance offering.
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 domains using the instance offering.
sourcepub fn build(self) -> ReservedElasticsearchInstance
pub fn build(self) -> ReservedElasticsearchInstance
Consumes the builder and constructs a ReservedElasticsearchInstance
.
Trait Implementations§
source§impl Clone for ReservedElasticsearchInstanceBuilder
impl Clone for ReservedElasticsearchInstanceBuilder
source§fn clone(&self) -> ReservedElasticsearchInstanceBuilder
fn clone(&self) -> ReservedElasticsearchInstanceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ReservedElasticsearchInstanceBuilder
impl Default for ReservedElasticsearchInstanceBuilder
source§fn default() -> ReservedElasticsearchInstanceBuilder
fn default() -> ReservedElasticsearchInstanceBuilder
source§impl PartialEq for ReservedElasticsearchInstanceBuilder
impl PartialEq for ReservedElasticsearchInstanceBuilder
source§fn eq(&self, other: &ReservedElasticsearchInstanceBuilder) -> bool
fn eq(&self, other: &ReservedElasticsearchInstanceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.