Struct aws_sdk_computeoptimizer::operation::get_ecs_service_recommendation_projected_metrics::builders::GetECSServiceRecommendationProjectedMetricsFluentBuilder
source · pub struct GetECSServiceRecommendationProjectedMetricsFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetECSServiceRecommendationProjectedMetrics.
Returns the projected metrics of Amazon ECS service recommendations.
Implementations§
source§impl GetECSServiceRecommendationProjectedMetricsFluentBuilder
impl GetECSServiceRecommendationProjectedMetricsFluentBuilder
sourcepub fn as_input(
&self
) -> &GetEcsServiceRecommendationProjectedMetricsInputBuilder
pub fn as_input( &self ) -> &GetEcsServiceRecommendationProjectedMetricsInputBuilder
Access the GetECSServiceRecommendationProjectedMetrics as a reference.
sourcepub async fn send(
self
) -> Result<GetEcsServiceRecommendationProjectedMetricsOutput, SdkError<GetECSServiceRecommendationProjectedMetricsError, HttpResponse>>
pub async fn send( self ) -> Result<GetEcsServiceRecommendationProjectedMetricsOutput, SdkError<GetECSServiceRecommendationProjectedMetricsError, 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<GetEcsServiceRecommendationProjectedMetricsOutput, GetECSServiceRecommendationProjectedMetricsError, Self>
pub fn customize( self ) -> CustomizableOperation<GetEcsServiceRecommendationProjectedMetricsOutput, GetECSServiceRecommendationProjectedMetricsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn service_arn(self, input: impl Into<String>) -> Self
pub fn service_arn(self, input: impl Into<String>) -> Self
The ARN that identifies the Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
sourcepub fn set_service_arn(self, input: Option<String>) -> Self
pub fn set_service_arn(self, input: Option<String>) -> Self
The ARN that identifies the Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
sourcepub fn get_service_arn(&self) -> &Option<String>
pub fn get_service_arn(&self) -> &Option<String>
The ARN that identifies the Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
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.
Trait Implementations§
source§impl Clone for GetECSServiceRecommendationProjectedMetricsFluentBuilder
impl Clone for GetECSServiceRecommendationProjectedMetricsFluentBuilder
source§fn clone(&self) -> GetECSServiceRecommendationProjectedMetricsFluentBuilder
fn clone(&self) -> GetECSServiceRecommendationProjectedMetricsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more