pub struct Builder { /* private fields */ }Expand description
A builder for GetEcsServiceRecommendationsInput.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 ECS service recommendations.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of 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 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 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 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 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 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 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 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.