Struct aws_sdk_costoptimizationhub::types::builders::OpenSearchReservedInstancesConfigurationBuilder
source · #[non_exhaustive]pub struct OpenSearchReservedInstancesConfigurationBuilder { /* private fields */ }Expand description
A builder for OpenSearchReservedInstancesConfiguration.
Implementations§
source§impl OpenSearchReservedInstancesConfigurationBuilder
impl OpenSearchReservedInstancesConfigurationBuilder
sourcepub fn account_scope(self, input: impl Into<String>) -> Self
pub fn account_scope(self, input: impl Into<String>) -> Self
The account scope that you want your recommendations for.
sourcepub fn set_account_scope(self, input: Option<String>) -> Self
pub fn set_account_scope(self, input: Option<String>) -> Self
The account scope that you want your recommendations for.
sourcepub fn get_account_scope(&self) -> &Option<String>
pub fn get_account_scope(&self) -> &Option<String>
The account scope that you want your recommendations for.
sourcepub fn service(self, input: impl Into<String>) -> Self
pub fn service(self, input: impl Into<String>) -> Self
The service that you want your recommendations for.
sourcepub fn set_service(self, input: Option<String>) -> Self
pub fn set_service(self, input: Option<String>) -> Self
The service that you want your recommendations for.
sourcepub fn get_service(&self) -> &Option<String>
pub fn get_service(&self) -> &Option<String>
The service that you want your recommendations for.
sourcepub fn normalized_units_to_purchase(self, input: impl Into<String>) -> Self
pub fn normalized_units_to_purchase(self, input: impl Into<String>) -> Self
The number of normalized units that Amazon Web Services recommends that you purchase.
sourcepub fn set_normalized_units_to_purchase(self, input: Option<String>) -> Self
pub fn set_normalized_units_to_purchase(self, input: Option<String>) -> Self
The number of normalized units that Amazon Web Services recommends that you purchase.
sourcepub fn get_normalized_units_to_purchase(&self) -> &Option<String>
pub fn get_normalized_units_to_purchase(&self) -> &Option<String>
The number of normalized units that Amazon Web Services recommends that you purchase.
sourcepub fn term(self, input: impl Into<String>) -> Self
pub fn term(self, input: impl Into<String>) -> Self
The reserved instances recommendation term in years.
sourcepub fn set_term(self, input: Option<String>) -> Self
pub fn set_term(self, input: Option<String>) -> Self
The reserved instances recommendation term in years.
sourcepub fn payment_option(self, input: impl Into<String>) -> Self
pub fn payment_option(self, input: impl Into<String>) -> Self
The payment option for the commitment.
sourcepub fn set_payment_option(self, input: Option<String>) -> Self
pub fn set_payment_option(self, input: Option<String>) -> Self
The payment option for the commitment.
sourcepub fn get_payment_option(&self) -> &Option<String>
pub fn get_payment_option(&self) -> &Option<String>
The payment option for the commitment.
sourcepub fn number_of_instances_to_purchase(self, input: impl Into<String>) -> Self
pub fn number_of_instances_to_purchase(self, input: impl Into<String>) -> Self
The number of instances that Amazon Web Services recommends that you purchase.
sourcepub fn set_number_of_instances_to_purchase(self, input: Option<String>) -> Self
pub fn set_number_of_instances_to_purchase(self, input: Option<String>) -> Self
The number of instances that Amazon Web Services recommends that you purchase.
sourcepub fn get_number_of_instances_to_purchase(&self) -> &Option<String>
pub fn get_number_of_instances_to_purchase(&self) -> &Option<String>
The number of instances that Amazon Web Services recommends that you purchase.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The type of instance that Amazon Web Services recommends.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The type of instance that Amazon Web Services recommends.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The type of instance that Amazon Web Services recommends.
sourcepub fn reserved_instances_region(self, input: impl Into<String>) -> Self
pub fn reserved_instances_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region of the commitment.
sourcepub fn set_reserved_instances_region(self, input: Option<String>) -> Self
pub fn set_reserved_instances_region(self, input: Option<String>) -> Self
The Amazon Web Services Region of the commitment.
sourcepub fn get_reserved_instances_region(&self) -> &Option<String>
pub fn get_reserved_instances_region(&self) -> &Option<String>
The Amazon Web Services Region of the commitment.
sourcepub fn current_generation(self, input: impl Into<String>) -> Self
pub fn current_generation(self, input: impl Into<String>) -> Self
Determines whether the recommendation is for a current generation instance.
sourcepub fn set_current_generation(self, input: Option<String>) -> Self
pub fn set_current_generation(self, input: Option<String>) -> Self
Determines whether the recommendation is for a current generation instance.
sourcepub fn get_current_generation(&self) -> &Option<String>
pub fn get_current_generation(&self) -> &Option<String>
Determines whether the recommendation is for a current generation instance.
sourcepub fn size_flex_eligible(self, input: bool) -> Self
pub fn size_flex_eligible(self, input: bool) -> Self
Determines whether the recommendation is size flexible.
sourcepub fn set_size_flex_eligible(self, input: Option<bool>) -> Self
pub fn set_size_flex_eligible(self, input: Option<bool>) -> Self
Determines whether the recommendation is size flexible.
sourcepub fn get_size_flex_eligible(&self) -> &Option<bool>
pub fn get_size_flex_eligible(&self) -> &Option<bool>
Determines whether the recommendation is size flexible.
sourcepub fn upfront_cost(self, input: impl Into<String>) -> Self
pub fn upfront_cost(self, input: impl Into<String>) -> Self
How much purchasing this instance costs you upfront.
sourcepub fn set_upfront_cost(self, input: Option<String>) -> Self
pub fn set_upfront_cost(self, input: Option<String>) -> Self
How much purchasing this instance costs you upfront.
sourcepub fn get_upfront_cost(&self) -> &Option<String>
pub fn get_upfront_cost(&self) -> &Option<String>
How much purchasing this instance costs you upfront.
sourcepub fn monthly_recurring_cost(self, input: impl Into<String>) -> Self
pub fn monthly_recurring_cost(self, input: impl Into<String>) -> Self
How much purchasing reserved instances costs you on a monthly basis.
sourcepub fn set_monthly_recurring_cost(self, input: Option<String>) -> Self
pub fn set_monthly_recurring_cost(self, input: Option<String>) -> Self
How much purchasing reserved instances costs you on a monthly basis.
sourcepub fn get_monthly_recurring_cost(&self) -> &Option<String>
pub fn get_monthly_recurring_cost(&self) -> &Option<String>
How much purchasing reserved instances costs you on a monthly basis.
sourcepub fn build(self) -> OpenSearchReservedInstancesConfiguration
pub fn build(self) -> OpenSearchReservedInstancesConfiguration
Consumes the builder and constructs a OpenSearchReservedInstancesConfiguration.
Trait Implementations§
source§impl Clone for OpenSearchReservedInstancesConfigurationBuilder
impl Clone for OpenSearchReservedInstancesConfigurationBuilder
source§fn clone(&self) -> OpenSearchReservedInstancesConfigurationBuilder
fn clone(&self) -> OpenSearchReservedInstancesConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OpenSearchReservedInstancesConfigurationBuilder
impl Default for OpenSearchReservedInstancesConfigurationBuilder
source§fn default() -> OpenSearchReservedInstancesConfigurationBuilder
fn default() -> OpenSearchReservedInstancesConfigurationBuilder
source§impl PartialEq for OpenSearchReservedInstancesConfigurationBuilder
impl PartialEq for OpenSearchReservedInstancesConfigurationBuilder
source§fn eq(&self, other: &OpenSearchReservedInstancesConfigurationBuilder) -> bool
fn eq(&self, other: &OpenSearchReservedInstancesConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.