/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes an Amazon ECS service recommendation. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ECSServiceRecommendation implements Serializable, Cloneable, StructuredPojo { /** ** 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
*
* The Amazon Web Services account ID of the Amazon ECS service. *
*/ private String accountId; /** ** The configuration of the current Amazon ECS service. *
*/ private ServiceConfiguration currentServiceConfiguration; /** ** An array of objects that describe the utilization metrics of the Amazon ECS service. *
*/ private java.util.List* The number of days the Amazon ECS service utilization metrics were analyzed. *
*/ private Double lookbackPeriodInDays; /** ** The launch type the Amazon ECS service is using. *
** Compute Optimizer only supports the Fargate launch type. *
** The timestamp of when the Amazon ECS service recommendation was last generated. *
*/ private java.util.Date lastRefreshTimestamp; /** ** 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.
*
* 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 the CPUUtilization
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 the CPUUtilization
* 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 the MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* An array of objects that describe the recommendation options for the Amazon ECS service. *
*/ private java.util.List* 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. *
*/ private String currentPerformanceRisk; /** ** A list of tags assigned to your Amazon ECS service recommendations. *
*/ private java.util.List* 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
*
* The following is the format of the ARN: *
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*/
public void setServiceArn(String serviceArn) {
this.serviceArn = 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
*
* The following is the format of the ARN: *
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
*/
public String getServiceArn() {
return this.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
*
* The following is the format of the ARN: *
*
* arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ECSServiceRecommendation withServiceArn(String serviceArn) {
setServiceArn(serviceArn);
return this;
}
/**
*
* The Amazon Web Services account ID of the Amazon ECS service. *
* * @param accountId * The Amazon Web Services account ID of the Amazon ECS service. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** ** The Amazon Web Services account ID of the Amazon ECS service. *
* * @return The Amazon Web Services account ID of the Amazon ECS service. */ public String getAccountId() { return this.accountId; } /** ** The Amazon Web Services account ID of the Amazon ECS service. *
* * @param accountId * The Amazon Web Services account ID of the Amazon ECS service. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withAccountId(String accountId) { setAccountId(accountId); return this; } /** ** The configuration of the current Amazon ECS service. *
* * @param currentServiceConfiguration * The configuration of the current Amazon ECS service. */ public void setCurrentServiceConfiguration(ServiceConfiguration currentServiceConfiguration) { this.currentServiceConfiguration = currentServiceConfiguration; } /** ** The configuration of the current Amazon ECS service. *
* * @return The configuration of the current Amazon ECS service. */ public ServiceConfiguration getCurrentServiceConfiguration() { return this.currentServiceConfiguration; } /** ** The configuration of the current Amazon ECS service. *
* * @param currentServiceConfiguration * The configuration of the current Amazon ECS service. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withCurrentServiceConfiguration(ServiceConfiguration currentServiceConfiguration) { setCurrentServiceConfiguration(currentServiceConfiguration); return this; } /** ** An array of objects that describe the utilization metrics of the Amazon ECS service. *
* * @return An array of objects that describe the utilization metrics of the Amazon ECS service. */ public java.util.List* An array of objects that describe the utilization metrics of the Amazon ECS service. *
* * @param utilizationMetrics * An array of objects that describe the utilization metrics of the Amazon ECS service. */ public void setUtilizationMetrics(java.util.Collection* An array of objects that describe the utilization metrics of the Amazon ECS service. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUtilizationMetrics(java.util.Collection)} or {@link #withUtilizationMetrics(java.util.Collection)} if * you want to override the existing values. *
* * @param utilizationMetrics * An array of objects that describe the utilization metrics of the Amazon ECS service. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withUtilizationMetrics(ECSServiceUtilizationMetric... utilizationMetrics) { if (this.utilizationMetrics == null) { setUtilizationMetrics(new java.util.ArrayList* An array of objects that describe the utilization metrics of the Amazon ECS service. *
* * @param utilizationMetrics * An array of objects that describe the utilization metrics of the Amazon ECS service. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withUtilizationMetrics(java.util.Collection* The number of days the Amazon ECS service utilization metrics were analyzed. *
* * @param lookbackPeriodInDays * The number of days the Amazon ECS service utilization metrics were analyzed. */ public void setLookbackPeriodInDays(Double lookbackPeriodInDays) { this.lookbackPeriodInDays = lookbackPeriodInDays; } /** ** The number of days the Amazon ECS service utilization metrics were analyzed. *
* * @return The number of days the Amazon ECS service utilization metrics were analyzed. */ public Double getLookbackPeriodInDays() { return this.lookbackPeriodInDays; } /** ** The number of days the Amazon ECS service utilization metrics were analyzed. *
* * @param lookbackPeriodInDays * The number of days the Amazon ECS service utilization metrics were analyzed. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withLookbackPeriodInDays(Double lookbackPeriodInDays) { setLookbackPeriodInDays(lookbackPeriodInDays); return this; } /** ** The launch type the Amazon ECS service is using. *
** Compute Optimizer only supports the Fargate launch type. *
** Compute Optimizer only supports the Fargate launch type. *
* @see ECSServiceLaunchType */ public void setLaunchType(String launchType) { this.launchType = launchType; } /** ** The launch type the Amazon ECS service is using. *
** Compute Optimizer only supports the Fargate launch type. *
** Compute Optimizer only supports the Fargate launch type. *
* @see ECSServiceLaunchType */ public String getLaunchType() { return this.launchType; } /** ** The launch type the Amazon ECS service is using. *
** Compute Optimizer only supports the Fargate launch type. *
** Compute Optimizer only supports the Fargate launch type. *
* @return Returns a reference to this object so that method calls can be chained together. * @see ECSServiceLaunchType */ public ECSServiceRecommendation withLaunchType(String launchType) { setLaunchType(launchType); return this; } /** ** The launch type the Amazon ECS service is using. *
** Compute Optimizer only supports the Fargate launch type. *
** Compute Optimizer only supports the Fargate launch type. *
* @return Returns a reference to this object so that method calls can be chained together. * @see ECSServiceLaunchType */ public ECSServiceRecommendation withLaunchType(ECSServiceLaunchType launchType) { this.launchType = launchType.toString(); return this; } /** ** The timestamp of when the Amazon ECS service recommendation was last generated. *
* * @param lastRefreshTimestamp * The timestamp of when the Amazon ECS service recommendation was last generated. */ public void setLastRefreshTimestamp(java.util.Date lastRefreshTimestamp) { this.lastRefreshTimestamp = lastRefreshTimestamp; } /** ** The timestamp of when the Amazon ECS service recommendation was last generated. *
* * @return The timestamp of when the Amazon ECS service recommendation was last generated. */ public java.util.Date getLastRefreshTimestamp() { return this.lastRefreshTimestamp; } /** ** The timestamp of when the Amazon ECS service recommendation was last generated. *
* * @param lastRefreshTimestamp * The timestamp of when the Amazon ECS service recommendation was last generated. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withLastRefreshTimestamp(java.util.Date lastRefreshTimestamp) { setLastRefreshTimestamp(lastRefreshTimestamp); return this; } /** ** 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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 the CPUUtilization
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 the CPUUtilization
* 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 the MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the
* CPUUtilization
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 the
* MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the CPUUtilization
* 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 the MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the
* CPUUtilization
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 the MemoryUtilization
* 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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the CPUUtilization
* 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 the MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFindingReasonCodes(java.util.Collection)} or {@link #withFindingReasonCodes(java.util.Collection)} if * you want to override the existing values. *
* * @param 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 the CPUUtilization
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 the
* CPUUtilization
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 the MemoryUtilization
* 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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the CPUUtilization
* 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 the MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the
* CPUUtilization
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 the MemoryUtilization
* 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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the CPUUtilization
* 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 the MemoryUtilization
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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* 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 the CPUUtilization
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 the
* CPUUtilization
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 the MemoryUtilization
* 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 the
* MemoryUtilization
metric of the current service during the look-back period.
*
* An array of objects that describe the recommendation options for the Amazon ECS service. *
* * @return An array of objects that describe the recommendation options for the Amazon ECS service. */ public java.util.List* An array of objects that describe the recommendation options for the Amazon ECS service. *
* * @param serviceRecommendationOptions * An array of objects that describe the recommendation options for the Amazon ECS service. */ public void setServiceRecommendationOptions(java.util.Collection* An array of objects that describe the recommendation options for the Amazon ECS service. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setServiceRecommendationOptions(java.util.Collection)} or * {@link #withServiceRecommendationOptions(java.util.Collection)} if you want to override the existing values. *
* * @param serviceRecommendationOptions * An array of objects that describe the recommendation options for the Amazon ECS service. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withServiceRecommendationOptions(ECSServiceRecommendationOption... serviceRecommendationOptions) { if (this.serviceRecommendationOptions == null) { setServiceRecommendationOptions(new java.util.ArrayList* An array of objects that describe the recommendation options for the Amazon ECS service. *
* * @param serviceRecommendationOptions * An array of objects that describe the recommendation options for the Amazon ECS service. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withServiceRecommendationOptions(java.util.Collection* 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. *
* * @param 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. * @see CurrentPerformanceRisk */ public void setCurrentPerformanceRisk(String currentPerformanceRisk) { this.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. *
* * @return 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. * @see CurrentPerformanceRisk */ public String getCurrentPerformanceRisk() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see CurrentPerformanceRisk */ public ECSServiceRecommendation withCurrentPerformanceRisk(String currentPerformanceRisk) { setCurrentPerformanceRisk(currentPerformanceRisk); return this; } /** ** 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see CurrentPerformanceRisk */ public ECSServiceRecommendation withCurrentPerformanceRisk(CurrentPerformanceRisk currentPerformanceRisk) { this.currentPerformanceRisk = currentPerformanceRisk.toString(); return this; } /** ** A list of tags assigned to your Amazon ECS service recommendations. *
* * @return A list of tags assigned to your Amazon ECS service recommendations. */ public java.util.List* A list of tags assigned to your Amazon ECS service recommendations. *
* * @param tags * A list of tags assigned to your Amazon ECS service recommendations. */ public void setTags(java.util.Collection* A list of tags assigned to your Amazon ECS service recommendations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags assigned to your Amazon ECS service recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags assigned to your Amazon ECS service recommendations. *
* * @param tags * A list of tags assigned to your Amazon ECS service recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSServiceRecommendation withTags(java.util.Collection