#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for VolumeRecommendation
Implementations
sourceimpl Builder
impl Builder
sourcepub fn volume_arn(self, input: impl Into<String>) -> Self
pub fn volume_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the current volume.
sourcepub fn set_volume_arn(self, input: Option<String>) -> Self
pub fn set_volume_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the current volume.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the volume.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the volume.
sourcepub fn current_configuration(self, input: VolumeConfiguration) -> Self
pub fn current_configuration(self, input: VolumeConfiguration) -> Self
An array of objects that describe the current configuration of the volume.
sourcepub fn set_current_configuration(
self,
input: Option<VolumeConfiguration>
) -> Self
pub fn set_current_configuration(
self,
input: Option<VolumeConfiguration>
) -> Self
An array of objects that describe the current configuration of the volume.
sourcepub fn finding(self, input: EbsFinding) -> Self
pub fn finding(self, input: EbsFinding) -> Self
The finding classification of the volume.
Findings for volumes include:
-
NotOptimized
—A volume is considered not optimized when Compute Optimizer identifies a recommendation that can provide better performance for your workload. -
Optimized
—An volume is considered optimized when Compute Optimizer determines that the volume is correctly provisioned to run your workload based on the chosen volume type. For optimized resources, Compute Optimizer might recommend a new generation volume type.
sourcepub fn set_finding(self, input: Option<EbsFinding>) -> Self
pub fn set_finding(self, input: Option<EbsFinding>) -> Self
The finding classification of the volume.
Findings for volumes include:
-
NotOptimized
—A volume is considered not optimized when Compute Optimizer identifies a recommendation that can provide better performance for your workload. -
Optimized
—An volume is considered optimized when Compute Optimizer determines that the volume is correctly provisioned to run your workload based on the chosen volume type. For optimized resources, Compute Optimizer might recommend a new generation volume type.
sourcepub fn utilization_metrics(self, input: EbsUtilizationMetric) -> Self
pub fn utilization_metrics(self, input: EbsUtilizationMetric) -> Self
Appends an item to utilization_metrics
.
To override the contents of this collection use set_utilization_metrics
.
An array of objects that describe the utilization metrics of the volume.
sourcepub fn set_utilization_metrics(
self,
input: Option<Vec<EbsUtilizationMetric>>
) -> Self
pub fn set_utilization_metrics(
self,
input: Option<Vec<EbsUtilizationMetric>>
) -> Self
An array of objects that describe the utilization metrics of the volume.
sourcepub fn look_back_period_in_days(self, input: f64) -> Self
pub fn look_back_period_in_days(self, input: f64) -> Self
The number of days for which utilization metrics were analyzed for the volume.
sourcepub fn set_look_back_period_in_days(self, input: Option<f64>) -> Self
pub fn set_look_back_period_in_days(self, input: Option<f64>) -> Self
The number of days for which utilization metrics were analyzed for the volume.
sourcepub fn volume_recommendation_options(
self,
input: VolumeRecommendationOption
) -> Self
pub fn volume_recommendation_options(
self,
input: VolumeRecommendationOption
) -> Self
Appends an item to volume_recommendation_options
.
To override the contents of this collection use set_volume_recommendation_options
.
An array of objects that describe the recommendation options for the volume.
sourcepub fn set_volume_recommendation_options(
self,
input: Option<Vec<VolumeRecommendationOption>>
) -> Self
pub fn set_volume_recommendation_options(
self,
input: Option<Vec<VolumeRecommendationOption>>
) -> Self
An array of objects that describe the recommendation options for the volume.
sourcepub fn last_refresh_timestamp(self, input: DateTime) -> Self
pub fn last_refresh_timestamp(self, input: DateTime) -> Self
The timestamp of when the volume recommendation was last generated.
sourcepub fn set_last_refresh_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_refresh_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when the volume recommendation was last generated.
sourcepub fn current_performance_risk(self, input: CurrentPerformanceRisk) -> Self
pub fn current_performance_risk(self, input: CurrentPerformanceRisk) -> Self
The risk of the current EBS volume not meeting the performance needs of its workloads. The higher the risk, the more likely the current EBS volume doesn't have sufficient capacity.
sourcepub fn set_current_performance_risk(
self,
input: Option<CurrentPerformanceRisk>
) -> Self
pub fn set_current_performance_risk(
self,
input: Option<CurrentPerformanceRisk>
) -> Self
The risk of the current EBS volume not meeting the performance needs of its workloads. The higher the risk, the more likely the current EBS volume doesn't have sufficient capacity.
sourcepub fn build(self) -> VolumeRecommendation
pub fn build(self) -> VolumeRecommendation
Consumes the builder and constructs a VolumeRecommendation
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more