Struct aws_sdk_computeoptimizer::operation::get_ecs_service_recommendations::builders::GetEcsServiceRecommendationsInputBuilder
source · #[non_exhaustive]pub struct GetEcsServiceRecommendationsInputBuilder { /* private fields */ }
Expand description
A builder for GetEcsServiceRecommendationsInput
.
Implementations§
source§impl GetEcsServiceRecommendationsInputBuilder
impl GetEcsServiceRecommendationsInputBuilder
sourcepub fn service_arns(self, input: impl Into<String>) -> Self
pub fn service_arns(self, input: impl Into<String>) -> Self
Appends an item to service_arns
.
To override the contents of this collection use set_service_arns
.
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_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_service_arns(self, input: Option<Vec<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_arns(&self) -> &Option<Vec<String>>
pub fn get_service_arns(&self) -> &Option<Vec<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 next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to advance to the next page of Amazon ECS service recommendations.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to advance to the next page of Amazon ECS service recommendations.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to advance to the next page of Amazon ECS service recommendations.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of Amazon ECS service recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of Amazon ECS service recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of Amazon ECS service recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn filters(self, input: EcsServiceRecommendationFilter) -> Self
pub fn filters(self, input: EcsServiceRecommendationFilter) -> Self
Appends an item to filters
.
To override the contents of this collection use set_filters
.
An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.
sourcepub fn set_filters(
self,
input: Option<Vec<EcsServiceRecommendationFilter>>
) -> Self
pub fn set_filters( self, input: Option<Vec<EcsServiceRecommendationFilter>> ) -> Self
An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.
sourcepub fn get_filters(&self) -> &Option<Vec<EcsServiceRecommendationFilter>>
pub fn get_filters(&self) -> &Option<Vec<EcsServiceRecommendationFilter>>
An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.
sourcepub fn account_ids(self, input: impl Into<String>) -> Self
pub fn account_ids(self, input: impl Into<String>) -> Self
Appends an item to account_ids
.
To override the contents of this collection use set_account_ids
.
Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
sourcepub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
sourcepub fn get_account_ids(&self) -> &Option<Vec<String>>
pub fn get_account_ids(&self) -> &Option<Vec<String>>
Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
sourcepub fn build(self) -> Result<GetEcsServiceRecommendationsInput, BuildError>
pub fn build(self) -> Result<GetEcsServiceRecommendationsInput, BuildError>
Consumes the builder and constructs a GetEcsServiceRecommendationsInput
.
source§impl GetEcsServiceRecommendationsInputBuilder
impl GetEcsServiceRecommendationsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetEcsServiceRecommendationsOutput, SdkError<GetECSServiceRecommendationsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetEcsServiceRecommendationsOutput, SdkError<GetECSServiceRecommendationsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetEcsServiceRecommendationsInputBuilder
impl Clone for GetEcsServiceRecommendationsInputBuilder
source§fn clone(&self) -> GetEcsServiceRecommendationsInputBuilder
fn clone(&self) -> GetEcsServiceRecommendationsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetEcsServiceRecommendationsInputBuilder
impl Default for GetEcsServiceRecommendationsInputBuilder
source§fn default() -> GetEcsServiceRecommendationsInputBuilder
fn default() -> GetEcsServiceRecommendationsInputBuilder
source§impl PartialEq for GetEcsServiceRecommendationsInputBuilder
impl PartialEq for GetEcsServiceRecommendationsInputBuilder
source§fn eq(&self, other: &GetEcsServiceRecommendationsInputBuilder) -> bool
fn eq(&self, other: &GetEcsServiceRecommendationsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.