Interface ECSServiceRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ECSServiceRecommendation.Builder,
,ECSServiceRecommendation> SdkBuilder<ECSServiceRecommendation.Builder,
,ECSServiceRecommendation> SdkPojo
- Enclosing class:
ECSServiceRecommendation
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID of the Amazon ECS service.currentPerformanceRisk
(String currentPerformanceRisk) The risk of the current Amazon ECS service not meeting the performance needs of its workloads.currentPerformanceRisk
(CurrentPerformanceRisk currentPerformanceRisk) The risk of the current Amazon ECS service not meeting the performance needs of its workloads.default ECSServiceRecommendation.Builder
currentServiceConfiguration
(Consumer<ServiceConfiguration.Builder> currentServiceConfiguration) The configuration of the current Amazon ECS service.currentServiceConfiguration
(ServiceConfiguration currentServiceConfiguration) The configuration of the current Amazon ECS service.default ECSServiceRecommendation.Builder
effectiveRecommendationPreferences
(Consumer<ECSEffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) Describes the effective recommendation preferences for Amazon ECS services.effectiveRecommendationPreferences
(ECSEffectiveRecommendationPreferences effectiveRecommendationPreferences) Describes the effective recommendation preferences for Amazon ECS services.The finding classification of an Amazon ECS service.finding
(ECSServiceRecommendationFinding finding) The finding classification of an Amazon ECS service.findingReasonCodes
(Collection<ECSServiceRecommendationFindingReasonCode> findingReasonCodes) The reason for the finding classification of an Amazon ECS service.findingReasonCodes
(ECSServiceRecommendationFindingReasonCode... findingReasonCodes) The reason for the finding classification of an Amazon ECS service.findingReasonCodesWithStrings
(String... findingReasonCodes) The reason for the finding classification of an Amazon ECS service.findingReasonCodesWithStrings
(Collection<String> findingReasonCodes) The reason for the finding classification of an Amazon ECS service.lastRefreshTimestamp
(Instant lastRefreshTimestamp) The timestamp of when the Amazon ECS service recommendation was last generated.launchType
(String launchType) The launch type the Amazon ECS service is using.launchType
(ECSServiceLaunchType launchType) The launch type the Amazon ECS service is using.lookbackPeriodInDays
(Double lookbackPeriodInDays) The number of days the Amazon ECS service utilization metrics were analyzed.serviceArn
(String serviceArn) The Amazon Resource Name (ARN) of the current Amazon ECS service.serviceRecommendationOptions
(Collection<ECSServiceRecommendationOption> serviceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon ECS service.serviceRecommendationOptions
(Consumer<ECSServiceRecommendationOption.Builder>... serviceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon ECS service.serviceRecommendationOptions
(ECSServiceRecommendationOption... serviceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon ECS service.tags
(Collection<Tag> tags) A list of tags assigned to your Amazon ECS service recommendations.tags
(Consumer<Tag.Builder>... tags) A list of tags assigned to your Amazon ECS service recommendations.A list of tags assigned to your Amazon ECS service recommendations.utilizationMetrics
(Collection<ECSServiceUtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon ECS service.utilizationMetrics
(Consumer<ECSServiceUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon ECS service.utilizationMetrics
(ECSServiceUtilizationMetric... utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon ECS service.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
serviceArn
The Amazon Resource Name (ARN) of the current Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
- Parameters:
serviceArn
- The Amazon Resource Name (ARN) of the current Amazon ECS service.The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID of the Amazon ECS service.
- Parameters:
accountId
- The Amazon Web Services account ID of the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentServiceConfiguration
ECSServiceRecommendation.Builder currentServiceConfiguration(ServiceConfiguration currentServiceConfiguration) The configuration of the current Amazon ECS service.
- Parameters:
currentServiceConfiguration
- The configuration of the current Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentServiceConfiguration
default ECSServiceRecommendation.Builder currentServiceConfiguration(Consumer<ServiceConfiguration.Builder> currentServiceConfiguration) The configuration of the current Amazon ECS service.
This is a convenience method that creates an instance of theServiceConfiguration.Builder
avoiding the need to create one manually viaServiceConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentServiceConfiguration(ServiceConfiguration)
.- Parameters:
currentServiceConfiguration
- a consumer that will call methods onServiceConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
utilizationMetrics
ECSServiceRecommendation.Builder utilizationMetrics(Collection<ECSServiceUtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon ECS service.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
ECSServiceRecommendation.Builder utilizationMetrics(ECSServiceUtilizationMetric... utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon ECS service.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
ECSServiceRecommendation.Builder utilizationMetrics(Consumer<ECSServiceUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the Amazon ECS service.
This is a convenience method that creates an instance of theECSServiceUtilizationMetric.Builder
avoiding the need to create one manually viaECSServiceUtilizationMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toutilizationMetrics(List<ECSServiceUtilizationMetric>)
.- Parameters:
utilizationMetrics
- a consumer that will call methods onECSServiceUtilizationMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookbackPeriodInDays
The number of days the Amazon ECS service utilization metrics were analyzed.
- Parameters:
lookbackPeriodInDays
- The number of days the Amazon ECS service utilization metrics were analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchType
The launch type the Amazon ECS service is using.
Compute Optimizer only supports the Fargate launch type.
- Parameters:
launchType
- The launch type the Amazon ECS service is using.Compute Optimizer only supports the Fargate launch type.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
launchType
The launch type the Amazon ECS service is using.
Compute Optimizer only supports the Fargate launch type.
- Parameters:
launchType
- The launch type the Amazon ECS service is using.Compute Optimizer only supports the Fargate launch type.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastRefreshTimestamp
The timestamp of when the Amazon ECS service recommendation was last generated.
- Parameters:
lastRefreshTimestamp
- The timestamp of when the Amazon ECS service recommendation was last generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finding
The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough memory or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor application performance. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive memory or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional infrastructure costs. -
Optimized
— When both the CPU and memory of your Amazon ECS service meet the performance requirements of your workload, the service is considered optimized.
- Parameters:
finding
- The finding classification of an Amazon ECS service.Findings for Amazon ECS services include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough memory or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor application performance. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive memory or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional infrastructure costs. -
Optimized
— When both the CPU and memory of your Amazon ECS service meet the performance requirements of your workload, the service is considered optimized.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
finding
The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough memory or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor application performance. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive memory or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional infrastructure costs. -
Optimized
— When both the CPU and memory of your Amazon ECS service meet the performance requirements of your workload, the service is considered optimized.
- Parameters:
finding
- The finding classification of an Amazon ECS service.Findings for Amazon ECS services include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough memory or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor application performance. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive memory or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional infrastructure costs. -
Optimized
— When both the CPU and memory of your Amazon ECS service meet the performance requirements of your workload, the service is considered optimized.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
findingReasonCodesWithStrings
ECSServiceRecommendation.Builder findingReasonCodesWithStrings(Collection<String> findingReasonCodes) The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
- Parameters:
findingReasonCodes
- The reason for the finding classification of an Amazon ECS service.Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
findingReasonCodesWithStrings
The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
- Parameters:
findingReasonCodes
- The reason for the finding classification of an Amazon ECS service.Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
findingReasonCodes
ECSServiceRecommendation.Builder findingReasonCodes(Collection<ECSServiceRecommendationFindingReasonCode> findingReasonCodes) The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
- Parameters:
findingReasonCodes
- The reason for the finding classification of an Amazon ECS service.Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
findingReasonCodes
ECSServiceRecommendation.Builder findingReasonCodes(ECSServiceRecommendationFindingReasonCode... findingReasonCodes) The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
- Parameters:
findingReasonCodes
- The reason for the finding classification of an Amazon ECS service.Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned
— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
serviceRecommendationOptions
ECSServiceRecommendation.Builder serviceRecommendationOptions(Collection<ECSServiceRecommendationOption> serviceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon ECS service.
- Parameters:
serviceRecommendationOptions
- An array of objects that describe the recommendation options for the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRecommendationOptions
ECSServiceRecommendation.Builder serviceRecommendationOptions(ECSServiceRecommendationOption... serviceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon ECS service.
- Parameters:
serviceRecommendationOptions
- An array of objects that describe the recommendation options for the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRecommendationOptions
ECSServiceRecommendation.Builder serviceRecommendationOptions(Consumer<ECSServiceRecommendationOption.Builder>... serviceRecommendationOptions) An array of objects that describe the recommendation options for the Amazon ECS service.
This is a convenience method that creates an instance of theECSServiceRecommendationOption.Builder
avoiding the need to create one manually viaECSServiceRecommendationOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceRecommendationOptions(List<ECSServiceRecommendationOption>)
.- Parameters:
serviceRecommendationOptions
- a consumer that will call methods onECSServiceRecommendationOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentPerformanceRisk
The risk of the current Amazon ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.
- Parameters:
currentPerformanceRisk
- The risk of the current Amazon ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentPerformanceRisk
ECSServiceRecommendation.Builder currentPerformanceRisk(CurrentPerformanceRisk currentPerformanceRisk) The risk of the current Amazon ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.
- Parameters:
currentPerformanceRisk
- The risk of the current Amazon ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of tags assigned to your Amazon ECS service recommendations.
- Parameters:
tags
- A list of tags assigned to your Amazon ECS service recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your Amazon ECS service recommendations.
- Parameters:
tags
- A list of tags assigned to your Amazon ECS service recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your Amazon ECS service recommendations.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
effectiveRecommendationPreferences
ECSServiceRecommendation.Builder effectiveRecommendationPreferences(ECSEffectiveRecommendationPreferences effectiveRecommendationPreferences) Describes the effective recommendation preferences for Amazon ECS services.
- Parameters:
effectiveRecommendationPreferences
- Describes the effective recommendation preferences for Amazon ECS services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveRecommendationPreferences
default ECSServiceRecommendation.Builder effectiveRecommendationPreferences(Consumer<ECSEffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) Describes the effective recommendation preferences for Amazon ECS services.
This is a convenience method that creates an instance of theECSEffectiveRecommendationPreferences.Builder
avoiding the need to create one manually viaECSEffectiveRecommendationPreferences.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeffectiveRecommendationPreferences(ECSEffectiveRecommendationPreferences)
.- Parameters:
effectiveRecommendationPreferences
- a consumer that will call methods onECSEffectiveRecommendationPreferences.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-