#[non_exhaustive]pub struct RdsdbRecommendationBuilder { /* private fields */ }
Expand description
A builder for RdsdbRecommendation
.
Implementations§
Source§impl RdsdbRecommendationBuilder
impl RdsdbRecommendationBuilder
Sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN of the current Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
Sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN of the current Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
Sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN of the current Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
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 Amazon Aurora or RDS database.
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 Amazon Aurora or RDS database.
Sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID of the Amazon Aurora or RDS database.
Sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The engine of the DB instance.
Sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The engine of the DB instance.
Sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The database engine version.
Sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The database engine version.
Sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
The database engine version.
Sourcepub fn promotion_tier(self, input: i32) -> Self
pub fn promotion_tier(self, input: i32) -> Self
The promotion tier for the Aurora instance.
Sourcepub fn set_promotion_tier(self, input: Option<i32>) -> Self
pub fn set_promotion_tier(self, input: Option<i32>) -> Self
The promotion tier for the Aurora instance.
Sourcepub fn get_promotion_tier(&self) -> &Option<i32>
pub fn get_promotion_tier(&self) -> &Option<i32>
The promotion tier for the Aurora instance.
Sourcepub fn current_db_instance_class(self, input: impl Into<String>) -> Self
pub fn current_db_instance_class(self, input: impl Into<String>) -> Self
The DB instance class of the current Aurora or RDS DB instance.
Sourcepub fn set_current_db_instance_class(self, input: Option<String>) -> Self
pub fn set_current_db_instance_class(self, input: Option<String>) -> Self
The DB instance class of the current Aurora or RDS DB instance.
Sourcepub fn get_current_db_instance_class(&self) -> &Option<String>
pub fn get_current_db_instance_class(&self) -> &Option<String>
The DB instance class of the current Aurora or RDS DB instance.
Sourcepub fn current_storage_configuration(
self,
input: DbStorageConfiguration,
) -> Self
pub fn current_storage_configuration( self, input: DbStorageConfiguration, ) -> Self
The configuration of the current DB storage.
Sourcepub fn set_current_storage_configuration(
self,
input: Option<DbStorageConfiguration>,
) -> Self
pub fn set_current_storage_configuration( self, input: Option<DbStorageConfiguration>, ) -> Self
The configuration of the current DB storage.
Sourcepub fn get_current_storage_configuration(
&self,
) -> &Option<DbStorageConfiguration>
pub fn get_current_storage_configuration( &self, ) -> &Option<DbStorageConfiguration>
The configuration of the current DB storage.
Sourcepub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier for DB cluster.
Sourcepub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
The identifier for DB cluster.
Sourcepub fn get_db_cluster_identifier(&self) -> &Option<String>
pub fn get_db_cluster_identifier(&self) -> &Option<String>
The identifier for DB cluster.
Sourcepub fn set_idle(self, input: Option<Idle>) -> Self
pub fn set_idle(self, input: Option<Idle>) -> Self
This indicates if the DB instance is idle or not.
Sourcepub fn instance_finding(self, input: RdsInstanceFinding) -> Self
pub fn instance_finding(self, input: RdsInstanceFinding) -> Self
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
Sourcepub fn set_instance_finding(self, input: Option<RdsInstanceFinding>) -> Self
pub fn set_instance_finding(self, input: Option<RdsInstanceFinding>) -> Self
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
Sourcepub fn get_instance_finding(&self) -> &Option<RdsInstanceFinding>
pub fn get_instance_finding(&self) -> &Option<RdsInstanceFinding>
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
Sourcepub fn storage_finding(self, input: RdsStorageFinding) -> Self
pub fn storage_finding(self, input: RdsStorageFinding) -> Self
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
Sourcepub fn set_storage_finding(self, input: Option<RdsStorageFinding>) -> Self
pub fn set_storage_finding(self, input: Option<RdsStorageFinding>) -> Self
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
Sourcepub fn get_storage_finding(&self) -> &Option<RdsStorageFinding>
pub fn get_storage_finding(&self) -> &Option<RdsStorageFinding>
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
Sourcepub fn instance_finding_reason_codes(
self,
input: RdsInstanceFindingReasonCode,
) -> Self
pub fn instance_finding_reason_codes( self, input: RdsInstanceFindingReasonCode, ) -> Self
Appends an item to instance_finding_reason_codes
.
To override the contents of this collection use set_instance_finding_reason_codes
.
The reason for the finding classification of a DB instance.
Sourcepub fn set_instance_finding_reason_codes(
self,
input: Option<Vec<RdsInstanceFindingReasonCode>>,
) -> Self
pub fn set_instance_finding_reason_codes( self, input: Option<Vec<RdsInstanceFindingReasonCode>>, ) -> Self
The reason for the finding classification of a DB instance.
Sourcepub fn get_instance_finding_reason_codes(
&self,
) -> &Option<Vec<RdsInstanceFindingReasonCode>>
pub fn get_instance_finding_reason_codes( &self, ) -> &Option<Vec<RdsInstanceFindingReasonCode>>
The reason for the finding classification of a DB instance.
Sourcepub fn current_instance_performance_risk(
self,
input: RdsCurrentInstancePerformanceRisk,
) -> Self
pub fn current_instance_performance_risk( self, input: RdsCurrentInstancePerformanceRisk, ) -> Self
The performance risk for the current DB instance.
Sourcepub fn set_current_instance_performance_risk(
self,
input: Option<RdsCurrentInstancePerformanceRisk>,
) -> Self
pub fn set_current_instance_performance_risk( self, input: Option<RdsCurrentInstancePerformanceRisk>, ) -> Self
The performance risk for the current DB instance.
Sourcepub fn get_current_instance_performance_risk(
&self,
) -> &Option<RdsCurrentInstancePerformanceRisk>
pub fn get_current_instance_performance_risk( &self, ) -> &Option<RdsCurrentInstancePerformanceRisk>
The performance risk for the current DB instance.
Sourcepub fn current_storage_estimated_monthly_volume_iops_cost_variation(
self,
input: RdsEstimatedMonthlyVolumeIoPsCostVariation,
) -> Self
pub fn current_storage_estimated_monthly_volume_iops_cost_variation( self, input: RdsEstimatedMonthlyVolumeIoPsCostVariation, ) -> Self
The level of variation in monthly I/O costs for the current DB storage configuration.
Sourcepub fn set_current_storage_estimated_monthly_volume_iops_cost_variation(
self,
input: Option<RdsEstimatedMonthlyVolumeIoPsCostVariation>,
) -> Self
pub fn set_current_storage_estimated_monthly_volume_iops_cost_variation( self, input: Option<RdsEstimatedMonthlyVolumeIoPsCostVariation>, ) -> Self
The level of variation in monthly I/O costs for the current DB storage configuration.
Sourcepub fn get_current_storage_estimated_monthly_volume_iops_cost_variation(
&self,
) -> &Option<RdsEstimatedMonthlyVolumeIoPsCostVariation>
pub fn get_current_storage_estimated_monthly_volume_iops_cost_variation( &self, ) -> &Option<RdsEstimatedMonthlyVolumeIoPsCostVariation>
The level of variation in monthly I/O costs for the current DB storage configuration.
Sourcepub fn storage_finding_reason_codes(
self,
input: RdsStorageFindingReasonCode,
) -> Self
pub fn storage_finding_reason_codes( self, input: RdsStorageFindingReasonCode, ) -> Self
Appends an item to storage_finding_reason_codes
.
To override the contents of this collection use set_storage_finding_reason_codes
.
The reason for the finding classification of RDS DB instance storage.
Sourcepub fn set_storage_finding_reason_codes(
self,
input: Option<Vec<RdsStorageFindingReasonCode>>,
) -> Self
pub fn set_storage_finding_reason_codes( self, input: Option<Vec<RdsStorageFindingReasonCode>>, ) -> Self
The reason for the finding classification of RDS DB instance storage.
Sourcepub fn get_storage_finding_reason_codes(
&self,
) -> &Option<Vec<RdsStorageFindingReasonCode>>
pub fn get_storage_finding_reason_codes( &self, ) -> &Option<Vec<RdsStorageFindingReasonCode>>
The reason for the finding classification of RDS DB instance storage.
Sourcepub fn instance_recommendation_options(
self,
input: RdsdbInstanceRecommendationOption,
) -> Self
pub fn instance_recommendation_options( self, input: RdsdbInstanceRecommendationOption, ) -> Self
Appends an item to instance_recommendation_options
.
To override the contents of this collection use set_instance_recommendation_options
.
An array of objects that describe the recommendation options for the RDS DB instance.
Sourcepub fn set_instance_recommendation_options(
self,
input: Option<Vec<RdsdbInstanceRecommendationOption>>,
) -> Self
pub fn set_instance_recommendation_options( self, input: Option<Vec<RdsdbInstanceRecommendationOption>>, ) -> Self
An array of objects that describe the recommendation options for the RDS DB instance.
Sourcepub fn get_instance_recommendation_options(
&self,
) -> &Option<Vec<RdsdbInstanceRecommendationOption>>
pub fn get_instance_recommendation_options( &self, ) -> &Option<Vec<RdsdbInstanceRecommendationOption>>
An array of objects that describe the recommendation options for the RDS DB instance.
Sourcepub fn storage_recommendation_options(
self,
input: RdsdbStorageRecommendationOption,
) -> Self
pub fn storage_recommendation_options( self, input: RdsdbStorageRecommendationOption, ) -> Self
Appends an item to storage_recommendation_options
.
To override the contents of this collection use set_storage_recommendation_options
.
An array of objects that describe the recommendation options for DB instance storage.
Sourcepub fn set_storage_recommendation_options(
self,
input: Option<Vec<RdsdbStorageRecommendationOption>>,
) -> Self
pub fn set_storage_recommendation_options( self, input: Option<Vec<RdsdbStorageRecommendationOption>>, ) -> Self
An array of objects that describe the recommendation options for DB instance storage.
Sourcepub fn get_storage_recommendation_options(
&self,
) -> &Option<Vec<RdsdbStorageRecommendationOption>>
pub fn get_storage_recommendation_options( &self, ) -> &Option<Vec<RdsdbStorageRecommendationOption>>
An array of objects that describe the recommendation options for DB instance storage.
Sourcepub fn utilization_metrics(self, input: RdsdbUtilizationMetric) -> Self
pub fn utilization_metrics(self, input: RdsdbUtilizationMetric) -> 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 DB instance.
Sourcepub fn set_utilization_metrics(
self,
input: Option<Vec<RdsdbUtilizationMetric>>,
) -> Self
pub fn set_utilization_metrics( self, input: Option<Vec<RdsdbUtilizationMetric>>, ) -> Self
An array of objects that describe the utilization metrics of the DB instance.
Sourcepub fn get_utilization_metrics(&self) -> &Option<Vec<RdsdbUtilizationMetric>>
pub fn get_utilization_metrics(&self) -> &Option<Vec<RdsdbUtilizationMetric>>
An array of objects that describe the utilization metrics of the DB instance.
Sourcepub fn effective_recommendation_preferences(
self,
input: RdsEffectiveRecommendationPreferences,
) -> Self
pub fn effective_recommendation_preferences( self, input: RdsEffectiveRecommendationPreferences, ) -> Self
Describes the effective recommendation preferences for DB instances.
Sourcepub fn set_effective_recommendation_preferences(
self,
input: Option<RdsEffectiveRecommendationPreferences>,
) -> Self
pub fn set_effective_recommendation_preferences( self, input: Option<RdsEffectiveRecommendationPreferences>, ) -> Self
Describes the effective recommendation preferences for DB instances.
Sourcepub fn get_effective_recommendation_preferences(
&self,
) -> &Option<RdsEffectiveRecommendationPreferences>
pub fn get_effective_recommendation_preferences( &self, ) -> &Option<RdsEffectiveRecommendationPreferences>
Describes the effective recommendation preferences for DB instances.
Sourcepub fn lookback_period_in_days(self, input: f64) -> Self
pub fn lookback_period_in_days(self, input: f64) -> Self
The number of days the DB instance utilization metrics were analyzed.
Sourcepub fn set_lookback_period_in_days(self, input: Option<f64>) -> Self
pub fn set_lookback_period_in_days(self, input: Option<f64>) -> Self
The number of days the DB instance utilization metrics were analyzed.
Sourcepub fn get_lookback_period_in_days(&self) -> &Option<f64>
pub fn get_lookback_period_in_days(&self) -> &Option<f64>
The number of days the DB instance utilization metrics were analyzed.
Sourcepub fn last_refresh_timestamp(self, input: DateTime) -> Self
pub fn last_refresh_timestamp(self, input: DateTime) -> Self
The timestamp of when the DB instance 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 DB instance recommendation was last generated.
Sourcepub fn get_last_refresh_timestamp(&self) -> &Option<DateTime>
pub fn get_last_refresh_timestamp(&self) -> &Option<DateTime>
The timestamp of when the DB instance recommendation was last generated.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tags assigned to your DB instance recommendations.
A list of tags assigned to your DB instance recommendations.
A list of tags assigned to your DB instance recommendations.
Sourcepub fn build(self) -> RdsdbRecommendation
pub fn build(self) -> RdsdbRecommendation
Consumes the builder and constructs a RdsdbRecommendation
.
Trait Implementations§
Source§impl Clone for RdsdbRecommendationBuilder
impl Clone for RdsdbRecommendationBuilder
Source§fn clone(&self) -> RdsdbRecommendationBuilder
fn clone(&self) -> RdsdbRecommendationBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RdsdbRecommendationBuilder
impl Debug for RdsdbRecommendationBuilder
Source§impl Default for RdsdbRecommendationBuilder
impl Default for RdsdbRecommendationBuilder
Source§fn default() -> RdsdbRecommendationBuilder
fn default() -> RdsdbRecommendationBuilder
impl StructuralPartialEq for RdsdbRecommendationBuilder
Auto Trait Implementations§
impl Freeze for RdsdbRecommendationBuilder
impl RefUnwindSafe for RdsdbRecommendationBuilder
impl Send for RdsdbRecommendationBuilder
impl Sync for RdsdbRecommendationBuilder
impl Unpin for RdsdbRecommendationBuilder
impl UnwindSafe for RdsdbRecommendationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);