#[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 ==
.impl StructuralPartialEq for RecommendedOptionProjectedMetricBuilder
Auto Trait Implementations§
impl Freeze for RecommendedOptionProjectedMetricBuilder
impl RefUnwindSafe for RecommendedOptionProjectedMetricBuilder
impl Send for RecommendedOptionProjectedMetricBuilder
impl Sync for RecommendedOptionProjectedMetricBuilder
impl Unpin for RecommendedOptionProjectedMetricBuilder
impl UnwindSafe for RecommendedOptionProjectedMetricBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more