Struct aws_sdk_computeoptimizer::operation::get_rds_database_recommendation_projected_metrics::builders::GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
source · pub struct GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetRDSDatabaseRecommendationProjectedMetrics.
Returns the projected metrics of Amazon RDS recommendations.
Implementations§
source§impl GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
sourcepub fn as_input(
&self,
) -> &GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
pub fn as_input( &self, ) -> &GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
Access the GetRDSDatabaseRecommendationProjectedMetrics as a reference.
sourcepub async fn send(
self,
) -> Result<GetRdsDatabaseRecommendationProjectedMetricsOutput, SdkError<GetRDSDatabaseRecommendationProjectedMetricsError, HttpResponse>>
pub async fn send( self, ) -> Result<GetRdsDatabaseRecommendationProjectedMetricsOutput, SdkError<GetRDSDatabaseRecommendationProjectedMetricsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<GetRdsDatabaseRecommendationProjectedMetricsOutput, GetRDSDatabaseRecommendationProjectedMetricsError, Self>
pub fn customize( self, ) -> CustomizableOperation<GetRdsDatabaseRecommendationProjectedMetricsOutput, GetRDSDatabaseRecommendationProjectedMetricsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN that identifies the Amazon RDS.
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 that identifies the Amazon RDS.
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 that identifies the Amazon RDS.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
sourcepub fn stat(self, input: MetricStatistic) -> Self
pub fn stat(self, input: MetricStatistic) -> Self
The statistic of the projected metrics.
sourcepub fn set_stat(self, input: Option<MetricStatistic>) -> Self
pub fn set_stat(self, input: Option<MetricStatistic>) -> Self
The statistic of the projected metrics.
sourcepub fn get_stat(&self) -> &Option<MetricStatistic>
pub fn get_stat(&self) -> &Option<MetricStatistic>
The statistic of the projected metrics.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The granularity, in seconds, of the projected metrics data points.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The granularity, in seconds, of the projected metrics data points.
sourcepub fn get_period(&self) -> &Option<i32>
pub fn get_period(&self) -> &Option<i32>
The granularity, in seconds, of the projected metrics data points.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The timestamp of the first projected metrics data point to return.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The timestamp of the first projected metrics data point to return.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The timestamp of the first projected metrics data point to return.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The timestamp of the last projected metrics data point to return.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The timestamp of the last projected metrics data point to return.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The timestamp of the last projected metrics data point to return.
sourcepub fn recommendation_preferences(
self,
input: RecommendationPreferences,
) -> Self
pub fn recommendation_preferences( self, input: RecommendationPreferences, ) -> Self
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations, GetEC2RecommendationProjectedMetrics, GetRDSDatabaseRecommendations, and GetRDSDatabaseRecommendationProjectedMetrics request.
sourcepub fn set_recommendation_preferences(
self,
input: Option<RecommendationPreferences>,
) -> Self
pub fn set_recommendation_preferences( self, input: Option<RecommendationPreferences>, ) -> Self
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations, GetEC2RecommendationProjectedMetrics, GetRDSDatabaseRecommendations, and GetRDSDatabaseRecommendationProjectedMetrics request.
sourcepub fn get_recommendation_preferences(
&self,
) -> &Option<RecommendationPreferences>
pub fn get_recommendation_preferences( &self, ) -> &Option<RecommendationPreferences>
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations, GetEC2RecommendationProjectedMetrics, GetRDSDatabaseRecommendations, and GetRDSDatabaseRecommendationProjectedMetrics request.
Trait Implementations§
source§impl Clone for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl Clone for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
source§fn clone(&self) -> GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
fn clone(&self) -> GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl !RefUnwindSafe for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl Send for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl Sync for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl Unpin for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
impl !UnwindSafe for GetRDSDatabaseRecommendationProjectedMetricsFluentBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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