@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ECSServiceRecommendationOption extends Object implements Serializable, Cloneable, StructuredPojo
Describes the recommendation options for an Amazon ECS service.
Constructor and Description |
---|
ECSServiceRecommendationOption() |
Modifier and Type | Method and Description |
---|---|
ECSServiceRecommendationOption |
clone() |
boolean |
equals(Object obj) |
List<ContainerRecommendation> |
getContainerRecommendations()
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
|
Integer |
getCpu()
The CPU size of the Amazon ECS service recommendation option.
|
Integer |
getMemory()
The memory size of the Amazon ECS service recommendation option.
|
List<ECSServiceProjectedUtilizationMetric> |
getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation
option.
|
SavingsOpportunity |
getSavingsOpportunity() |
ECSSavingsOpportunityAfterDiscounts |
getSavingsOpportunityAfterDiscounts()
Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
|
void |
setCpu(Integer cpu)
The CPU size of the Amazon ECS service recommendation option.
|
void |
setMemory(Integer memory)
The memory size of the Amazon ECS service recommendation option.
|
void |
setProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation
option.
|
void |
setSavingsOpportunity(SavingsOpportunity savingsOpportunity) |
void |
setSavingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)
Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
|
String |
toString()
Returns a string representation of this object.
|
ECSServiceRecommendationOption |
withContainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
|
ECSServiceRecommendationOption |
withContainerRecommendations(ContainerRecommendation... containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
|
ECSServiceRecommendationOption |
withCpu(Integer cpu)
The CPU size of the Amazon ECS service recommendation option.
|
ECSServiceRecommendationOption |
withMemory(Integer memory)
The memory size of the Amazon ECS service recommendation option.
|
ECSServiceRecommendationOption |
withProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation
option.
|
ECSServiceRecommendationOption |
withProjectedUtilizationMetrics(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation
option.
|
ECSServiceRecommendationOption |
withSavingsOpportunity(SavingsOpportunity savingsOpportunity) |
ECSServiceRecommendationOption |
withSavingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)
Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
|
public void setMemory(Integer memory)
The memory size of the Amazon ECS service recommendation option.
memory
- The memory size of the Amazon ECS service recommendation option.public Integer getMemory()
The memory size of the Amazon ECS service recommendation option.
public ECSServiceRecommendationOption withMemory(Integer memory)
The memory size of the Amazon ECS service recommendation option.
memory
- The memory size of the Amazon ECS service recommendation option.public void setCpu(Integer cpu)
The CPU size of the Amazon ECS service recommendation option.
cpu
- The CPU size of the Amazon ECS service recommendation option.public Integer getCpu()
The CPU size of the Amazon ECS service recommendation option.
public ECSServiceRecommendationOption withCpu(Integer cpu)
The CPU size of the Amazon ECS service recommendation option.
cpu
- The CPU size of the Amazon ECS service recommendation option.public void setSavingsOpportunity(SavingsOpportunity savingsOpportunity)
savingsOpportunity
- public SavingsOpportunity getSavingsOpportunity()
public ECSServiceRecommendationOption withSavingsOpportunity(SavingsOpportunity savingsOpportunity)
savingsOpportunity
- public List<ECSServiceProjectedUtilizationMetric> getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
public void setProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the Amazon ECS service
recommendation option.public ECSServiceRecommendationOption withProjectedUtilizationMetrics(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
NOTE: This method appends the values to the existing list (if any). Use
setProjectedUtilizationMetrics(java.util.Collection)
or
withProjectedUtilizationMetrics(java.util.Collection)
if you want to override the existing values.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the Amazon ECS service
recommendation option.public ECSServiceRecommendationOption withProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the Amazon ECS service
recommendation option.public List<ContainerRecommendation> getContainerRecommendations()
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
public void setContainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.public ECSServiceRecommendationOption withContainerRecommendations(ContainerRecommendation... containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
NOTE: This method appends the values to the existing list (if any). Use
setContainerRecommendations(java.util.Collection)
or
withContainerRecommendations(java.util.Collection)
if you want to override the existing values.
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.public ECSServiceRecommendationOption withContainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.public void setSavingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)
Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
savingsOpportunityAfterDiscounts
- Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
public ECSSavingsOpportunityAfterDiscounts getSavingsOpportunityAfterDiscounts()
Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
public ECSServiceRecommendationOption withSavingsOpportunityAfterDiscounts(ECSSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)
Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
savingsOpportunityAfterDiscounts
- Describes the savings opportunity for Amazon ECS service recommendations or for the recommendation option.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
public String toString()
toString
in class Object
Object.toString()
public ECSServiceRecommendationOption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.