#[non_exhaustive]pub struct RecommendedOptionProjectedMetricBuilder { /* private fields */ }
Expand description
A builder for RecommendedOptionProjectedMetric
.
Implementations§
source§impl RecommendedOptionProjectedMetricBuilder
impl RecommendedOptionProjectedMetricBuilder
sourcepub fn recommended_instance_type(self, input: impl Into<String>) -> Self
pub fn recommended_instance_type(self, input: impl Into<String>) -> Self
The recommended instance type.
sourcepub fn set_recommended_instance_type(self, input: Option<String>) -> Self
pub fn set_recommended_instance_type(self, input: Option<String>) -> Self
The recommended instance type.
sourcepub fn get_recommended_instance_type(&self) -> &Option<String>
pub fn get_recommended_instance_type(&self) -> &Option<String>
The recommended instance type.
sourcepub fn rank(self, input: i32) -> Self
pub fn rank(self, input: i32) -> Self
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1
is related to the recommendation option that is also ranked as 1
in the same response.
sourcepub fn set_rank(self, input: Option<i32>) -> Self
pub fn set_rank(self, input: Option<i32>) -> Self
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1
is related to the recommendation option that is also ranked as 1
in the same response.
sourcepub fn get_rank(&self) -> &Option<i32>
pub fn get_rank(&self) -> &Option<i32>
The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1
is related to the recommendation option that is also ranked as 1
in the same response.
sourcepub fn projected_metrics(self, input: ProjectedMetric) -> Self
pub fn projected_metrics(self, input: ProjectedMetric) -> Self
Appends an item to projected_metrics
.
To override the contents of this collection use set_projected_metrics
.
An array of objects that describe a projected utilization metric.
sourcepub fn set_projected_metrics(self, input: Option<Vec<ProjectedMetric>>) -> Self
pub fn set_projected_metrics(self, input: Option<Vec<ProjectedMetric>>) -> Self
An array of objects that describe a projected utilization metric.
sourcepub fn get_projected_metrics(&self) -> &Option<Vec<ProjectedMetric>>
pub fn get_projected_metrics(&self) -> &Option<Vec<ProjectedMetric>>
An array of objects that describe a projected utilization metric.
sourcepub fn build(self) -> RecommendedOptionProjectedMetric
pub fn build(self) -> RecommendedOptionProjectedMetric
Consumes the builder and constructs a RecommendedOptionProjectedMetric
.
Trait Implementations§
source§impl Clone for RecommendedOptionProjectedMetricBuilder
impl Clone for RecommendedOptionProjectedMetricBuilder
source§fn clone(&self) -> RecommendedOptionProjectedMetricBuilder
fn clone(&self) -> RecommendedOptionProjectedMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RecommendedOptionProjectedMetricBuilder
impl Default for RecommendedOptionProjectedMetricBuilder
source§fn default() -> RecommendedOptionProjectedMetricBuilder
fn default() -> RecommendedOptionProjectedMetricBuilder
source§impl PartialEq for RecommendedOptionProjectedMetricBuilder
impl PartialEq for RecommendedOptionProjectedMetricBuilder
source§fn eq(&self, other: &RecommendedOptionProjectedMetricBuilder) -> bool
fn eq(&self, other: &RecommendedOptionProjectedMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.