Struct aws_sdk_computeoptimizer::operation::get_ecs_service_recommendation_projected_metrics::builders::GetEcsServiceRecommendationProjectedMetricsInputBuilder
source · #[non_exhaustive]pub struct GetEcsServiceRecommendationProjectedMetricsInputBuilder { /* private fields */ }
Expand description
A builder for GetEcsServiceRecommendationProjectedMetricsInput
.
Implementations§
source§impl GetEcsServiceRecommendationProjectedMetricsInputBuilder
impl GetEcsServiceRecommendationProjectedMetricsInputBuilder
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.
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 build(
self
) -> Result<GetEcsServiceRecommendationProjectedMetricsInput, BuildError>
pub fn build( self ) -> Result<GetEcsServiceRecommendationProjectedMetricsInput, BuildError>
Consumes the builder and constructs a GetEcsServiceRecommendationProjectedMetricsInput
.
source§impl GetEcsServiceRecommendationProjectedMetricsInputBuilder
impl GetEcsServiceRecommendationProjectedMetricsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetEcsServiceRecommendationProjectedMetricsOutput, SdkError<GetECSServiceRecommendationProjectedMetricsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetEcsServiceRecommendationProjectedMetricsOutput, SdkError<GetECSServiceRecommendationProjectedMetricsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetEcsServiceRecommendationProjectedMetricsInputBuilder
impl Clone for GetEcsServiceRecommendationProjectedMetricsInputBuilder
source§fn clone(&self) -> GetEcsServiceRecommendationProjectedMetricsInputBuilder
fn clone(&self) -> GetEcsServiceRecommendationProjectedMetricsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetEcsServiceRecommendationProjectedMetricsInputBuilder
impl Default for GetEcsServiceRecommendationProjectedMetricsInputBuilder
source§fn default() -> GetEcsServiceRecommendationProjectedMetricsInputBuilder
fn default() -> GetEcsServiceRecommendationProjectedMetricsInputBuilder
source§impl PartialEq for GetEcsServiceRecommendationProjectedMetricsInputBuilder
impl PartialEq for GetEcsServiceRecommendationProjectedMetricsInputBuilder
source§fn eq(
&self,
other: &GetEcsServiceRecommendationProjectedMetricsInputBuilder
) -> bool
fn eq( &self, other: &GetEcsServiceRecommendationProjectedMetricsInputBuilder ) -> bool
self
and other
values to be equal, and is used
by ==
.