Struct aws_sdk_applicationdiscovery::types::builders::Ec2RecommendationsExportPreferencesBuilder
source · #[non_exhaustive]pub struct Ec2RecommendationsExportPreferencesBuilder { /* private fields */ }
Expand description
A builder for Ec2RecommendationsExportPreferences
.
Implementations§
source§impl Ec2RecommendationsExportPreferencesBuilder
impl Ec2RecommendationsExportPreferencesBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
sourcepub fn cpu_performance_metric_basis(self, input: UsageMetricBasis) -> Self
pub fn cpu_performance_metric_basis(self, input: UsageMetricBasis) -> Self
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
sourcepub fn set_cpu_performance_metric_basis(
self,
input: Option<UsageMetricBasis>
) -> Self
pub fn set_cpu_performance_metric_basis( self, input: Option<UsageMetricBasis> ) -> Self
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
sourcepub fn get_cpu_performance_metric_basis(&self) -> &Option<UsageMetricBasis>
pub fn get_cpu_performance_metric_basis(&self) -> &Option<UsageMetricBasis>
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
sourcepub fn ram_performance_metric_basis(self, input: UsageMetricBasis) -> Self
pub fn ram_performance_metric_basis(self, input: UsageMetricBasis) -> Self
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
sourcepub fn set_ram_performance_metric_basis(
self,
input: Option<UsageMetricBasis>
) -> Self
pub fn set_ram_performance_metric_basis( self, input: Option<UsageMetricBasis> ) -> Self
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
sourcepub fn get_ram_performance_metric_basis(&self) -> &Option<UsageMetricBasis>
pub fn get_ram_performance_metric_basis(&self) -> &Option<UsageMetricBasis>
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
sourcepub fn tenancy(self, input: Tenancy) -> Self
pub fn tenancy(self, input: Tenancy) -> Self
The target tenancy to use for your recommended EC2 instances.
sourcepub fn set_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_tenancy(self, input: Option<Tenancy>) -> Self
The target tenancy to use for your recommended EC2 instances.
sourcepub fn get_tenancy(&self) -> &Option<Tenancy>
pub fn get_tenancy(&self) -> &Option<Tenancy>
The target tenancy to use for your recommended EC2 instances.
sourcepub fn excluded_instance_types(self, input: impl Into<String>) -> Self
pub fn excluded_instance_types(self, input: impl Into<String>) -> Self
Appends an item to excluded_instance_types
.
To override the contents of this collection use set_excluded_instance_types
.
An array of instance types to exclude from recommendations.
sourcepub fn set_excluded_instance_types(self, input: Option<Vec<String>>) -> Self
pub fn set_excluded_instance_types(self, input: Option<Vec<String>>) -> Self
An array of instance types to exclude from recommendations.
sourcepub fn get_excluded_instance_types(&self) -> &Option<Vec<String>>
pub fn get_excluded_instance_types(&self) -> &Option<Vec<String>>
An array of instance types to exclude from recommendations.
sourcepub fn preferred_region(self, input: impl Into<String>) -> Self
pub fn preferred_region(self, input: impl Into<String>) -> Self
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
sourcepub fn set_preferred_region(self, input: Option<String>) -> Self
pub fn set_preferred_region(self, input: Option<String>) -> Self
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
sourcepub fn get_preferred_region(&self) -> &Option<String>
pub fn get_preferred_region(&self) -> &Option<String>
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
sourcepub fn reserved_instance_options(self, input: ReservedInstanceOptions) -> Self
pub fn reserved_instance_options(self, input: ReservedInstanceOptions) -> Self
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
sourcepub fn set_reserved_instance_options(
self,
input: Option<ReservedInstanceOptions>
) -> Self
pub fn set_reserved_instance_options( self, input: Option<ReservedInstanceOptions> ) -> Self
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
sourcepub fn get_reserved_instance_options(&self) -> &Option<ReservedInstanceOptions>
pub fn get_reserved_instance_options(&self) -> &Option<ReservedInstanceOptions>
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
sourcepub fn build(self) -> Ec2RecommendationsExportPreferences
pub fn build(self) -> Ec2RecommendationsExportPreferences
Consumes the builder and constructs a Ec2RecommendationsExportPreferences
.
Trait Implementations§
source§impl Clone for Ec2RecommendationsExportPreferencesBuilder
impl Clone for Ec2RecommendationsExportPreferencesBuilder
source§fn clone(&self) -> Ec2RecommendationsExportPreferencesBuilder
fn clone(&self) -> Ec2RecommendationsExportPreferencesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for Ec2RecommendationsExportPreferencesBuilder
impl Default for Ec2RecommendationsExportPreferencesBuilder
source§fn default() -> Ec2RecommendationsExportPreferencesBuilder
fn default() -> Ec2RecommendationsExportPreferencesBuilder
source§impl PartialEq for Ec2RecommendationsExportPreferencesBuilder
impl PartialEq for Ec2RecommendationsExportPreferencesBuilder
source§fn eq(&self, other: &Ec2RecommendationsExportPreferencesBuilder) -> bool
fn eq(&self, other: &Ec2RecommendationsExportPreferencesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.