@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 ECS service.
|
Integer |
getCpu()
The CPU size of the ECS service recommendation option.
|
Integer |
getMemory()
The memory size of the ECS service recommendation option.
|
List<ECSServiceProjectedUtilizationMetric> |
getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the ECS service recommendation option.
|
SavingsOpportunity |
getSavingsOpportunity() |
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 ECS service.
|
void |
setCpu(Integer cpu)
The CPU size of the ECS service recommendation option.
|
void |
setMemory(Integer memory)
The memory size of the ECS service recommendation option.
|
void |
setProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the ECS service recommendation option.
|
void |
setSavingsOpportunity(SavingsOpportunity savingsOpportunity) |
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 ECS service.
|
ECSServiceRecommendationOption |
withContainerRecommendations(ContainerRecommendation... containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your ECS service.
|
ECSServiceRecommendationOption |
withCpu(Integer cpu)
The CPU size of the ECS service recommendation option.
|
ECSServiceRecommendationOption |
withMemory(Integer memory)
The memory size of the ECS service recommendation option.
|
ECSServiceRecommendationOption |
withProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the ECS service recommendation option.
|
ECSServiceRecommendationOption |
withProjectedUtilizationMetrics(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the ECS service recommendation option.
|
ECSServiceRecommendationOption |
withSavingsOpportunity(SavingsOpportunity savingsOpportunity) |
public void setMemory(Integer memory)
The memory size of the ECS service recommendation option.
memory
- The memory size of the ECS service recommendation option.public Integer getMemory()
The memory size of the ECS service recommendation option.
public ECSServiceRecommendationOption withMemory(Integer memory)
The memory size of the ECS service recommendation option.
memory
- The memory size of the ECS service recommendation option.public void setCpu(Integer cpu)
The CPU size of the ECS service recommendation option.
cpu
- The CPU size of the ECS service recommendation option.public Integer getCpu()
The CPU size of the ECS service recommendation option.
public ECSServiceRecommendationOption withCpu(Integer cpu)
The CPU size of the ECS service recommendation option.
cpu
- The CPU size of the 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 ECS service recommendation option.
public void setProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the ECS service recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the ECS service recommendation
option.public ECSServiceRecommendationOption withProjectedUtilizationMetrics(ECSServiceProjectedUtilizationMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the 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 ECS service recommendation
option.public ECSServiceRecommendationOption withProjectedUtilizationMetrics(Collection<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the ECS service recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the ECS service recommendation
option.public List<ContainerRecommendation> getContainerRecommendations()
The CPU and memory size recommendations for the containers within the task of your ECS service.
public void setContainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your ECS service.
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your ECS service.public ECSServiceRecommendationOption withContainerRecommendations(ContainerRecommendation... containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your 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 ECS service.public ECSServiceRecommendationOption withContainerRecommendations(Collection<ContainerRecommendation> containerRecommendations)
The CPU and memory size recommendations for the containers within the task of your ECS service.
containerRecommendations
- The CPU and memory size recommendations for the containers within the task of your ECS service.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.