@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceRecommendationOption extends Object implements Serializable, Cloneable, StructuredPojo
Describes a recommendation option for an Amazon EC2 instance.
Constructor and Description |
---|
InstanceRecommendationOption() |
Modifier and Type | Method and Description |
---|---|
InstanceRecommendationOption |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceType()
The instance type of the instance recommendation.
|
Double |
getPerformanceRisk()
The performance risk of the instance recommendation option.
|
List<UtilizationMetric> |
getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the instance recommendation option.
|
Integer |
getRank()
The rank of the instance recommendation option.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceType(String instanceType)
The instance type of the instance recommendation.
|
void |
setPerformanceRisk(Double performanceRisk)
The performance risk of the instance recommendation option.
|
void |
setProjectedUtilizationMetrics(Collection<UtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the instance recommendation option.
|
void |
setRank(Integer rank)
The rank of the instance recommendation option.
|
String |
toString()
Returns a string representation of this object.
|
InstanceRecommendationOption |
withInstanceType(String instanceType)
The instance type of the instance recommendation.
|
InstanceRecommendationOption |
withPerformanceRisk(Double performanceRisk)
The performance risk of the instance recommendation option.
|
InstanceRecommendationOption |
withProjectedUtilizationMetrics(Collection<UtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the instance recommendation option.
|
InstanceRecommendationOption |
withProjectedUtilizationMetrics(UtilizationMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the instance recommendation option.
|
InstanceRecommendationOption |
withRank(Integer rank)
The rank of the instance recommendation option.
|
public void setInstanceType(String instanceType)
The instance type of the instance recommendation.
instanceType
- The instance type of the instance recommendation.public String getInstanceType()
The instance type of the instance recommendation.
public InstanceRecommendationOption withInstanceType(String instanceType)
The instance type of the instance recommendation.
instanceType
- The instance type of the instance recommendation.public List<UtilizationMetric> getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the instance recommendation option.
public void setProjectedUtilizationMetrics(Collection<UtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the instance recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the instance recommendation option.public InstanceRecommendationOption withProjectedUtilizationMetrics(UtilizationMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the instance 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 instance recommendation option.public InstanceRecommendationOption withProjectedUtilizationMetrics(Collection<UtilizationMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the instance recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the instance recommendation option.public void setPerformanceRisk(Double performanceRisk)
The performance risk of the instance recommendation option.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
performanceRisk
- The performance risk of the instance recommendation option.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
public Double getPerformanceRisk()
The performance risk of the instance recommendation option.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
public InstanceRecommendationOption withPerformanceRisk(Double performanceRisk)
The performance risk of the instance recommendation option.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
performanceRisk
- The performance risk of the instance recommendation option.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
public void setRank(Integer rank)
The rank of the instance recommendation option.
The top recommendation option is ranked as 1
.
rank
- The rank of the instance recommendation option.
The top recommendation option is ranked as 1
.
public Integer getRank()
The rank of the instance recommendation option.
The top recommendation option is ranked as 1
.
The top recommendation option is ranked as 1
.
public InstanceRecommendationOption withRank(Integer rank)
The rank of the instance recommendation option.
The top recommendation option is ranked as 1
.
rank
- The rank of the instance recommendation option.
The top recommendation option is ranked as 1
.
public String toString()
toString
in class Object
Object.toString()
public InstanceRecommendationOption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.