Struct aws_sdk_computeoptimizer::client::fluent_builders::GetECSServiceRecommendationProjectedMetrics
source · pub struct GetECSServiceRecommendationProjectedMetrics { /* private fields */ }Expand description
Fluent builder constructing a request to GetECSServiceRecommendationProjectedMetrics.
Returns the projected metrics of Amazon ECS service recommendations.
Implementations§
source§impl GetECSServiceRecommendationProjectedMetrics
impl GetECSServiceRecommendationProjectedMetrics
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetECSServiceRecommendationProjectedMetrics, AwsResponseRetryClassifier>, SdkError<GetECSServiceRecommendationProjectedMetricsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetECSServiceRecommendationProjectedMetrics, AwsResponseRetryClassifier>, SdkError<GetECSServiceRecommendationProjectedMetricsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetEcsServiceRecommendationProjectedMetricsOutput, SdkError<GetECSServiceRecommendationProjectedMetricsError>>
pub async fn send(
self
) -> Result<GetEcsServiceRecommendationProjectedMetricsOutput, SdkError<GetECSServiceRecommendationProjectedMetricsError>>
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 service_arn(self, input: impl Into<String>) -> Self
pub fn service_arn(self, input: impl Into<String>) -> Self
The ARN that identifies the 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 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 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 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 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.
Trait Implementations§
source§impl Clone for GetECSServiceRecommendationProjectedMetrics
impl Clone for GetECSServiceRecommendationProjectedMetrics
source§fn clone(&self) -> GetECSServiceRecommendationProjectedMetrics
fn clone(&self) -> GetECSServiceRecommendationProjectedMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more