Struct aws_sdk_computeoptimizer::operation::get_rds_database_recommendation_projected_metrics::builders::GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
source · #[non_exhaustive]pub struct GetRdsDatabaseRecommendationProjectedMetricsInputBuilder { /* private fields */ }
Expand description
A builder for GetRdsDatabaseRecommendationProjectedMetricsInput
.
Implementations§
source§impl GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
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.
This field is required.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.
This field is required.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.
This field is required.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.
This field is required.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.
sourcepub fn build(
self,
) -> Result<GetRdsDatabaseRecommendationProjectedMetricsInput, BuildError>
pub fn build( self, ) -> Result<GetRdsDatabaseRecommendationProjectedMetricsInput, BuildError>
Consumes the builder and constructs a GetRdsDatabaseRecommendationProjectedMetricsInput
.
source§impl GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetRdsDatabaseRecommendationProjectedMetricsOutput, SdkError<GetRDSDatabaseRecommendationProjectedMetricsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetRdsDatabaseRecommendationProjectedMetricsOutput, SdkError<GetRDSDatabaseRecommendationProjectedMetricsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl Clone for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
source§fn clone(&self) -> GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
fn clone(&self) -> GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl Default for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
source§fn default() -> GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
fn default() -> GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
source§impl PartialEq for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl PartialEq for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
source§fn eq(
&self,
other: &GetRdsDatabaseRecommendationProjectedMetricsInputBuilder,
) -> bool
fn eq( &self, other: &GetRdsDatabaseRecommendationProjectedMetricsInputBuilder, ) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
Auto Trait Implementations§
impl Freeze for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl RefUnwindSafe for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl Send for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl Sync for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl Unpin for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
impl UnwindSafe for GetRdsDatabaseRecommendationProjectedMetricsInputBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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