@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2Instance extends Object implements Serializable, Cloneable, StructuredPojo
Describes the EC2 instance configuration of the current and recommended resource configuration for a recommendation.
| Constructor and Description |
|---|
Ec2Instance() |
| Modifier and Type | Method and Description |
|---|---|
Ec2Instance |
clone() |
boolean |
equals(Object obj) |
Ec2InstanceConfiguration |
getConfiguration()
The EC2 instance configuration used for recommendations.
|
ResourceCostCalculation |
getCostCalculation()
Cost impact of the recommendation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setConfiguration(Ec2InstanceConfiguration configuration)
The EC2 instance configuration used for recommendations.
|
void |
setCostCalculation(ResourceCostCalculation costCalculation)
Cost impact of the recommendation.
|
String |
toString()
Returns a string representation of this object.
|
Ec2Instance |
withConfiguration(Ec2InstanceConfiguration configuration)
The EC2 instance configuration used for recommendations.
|
Ec2Instance |
withCostCalculation(ResourceCostCalculation costCalculation)
Cost impact of the recommendation.
|
public void setConfiguration(Ec2InstanceConfiguration configuration)
The EC2 instance configuration used for recommendations.
configuration - The EC2 instance configuration used for recommendations.public Ec2InstanceConfiguration getConfiguration()
The EC2 instance configuration used for recommendations.
public Ec2Instance withConfiguration(Ec2InstanceConfiguration configuration)
The EC2 instance configuration used for recommendations.
configuration - The EC2 instance configuration used for recommendations.public void setCostCalculation(ResourceCostCalculation costCalculation)
Cost impact of the recommendation.
costCalculation - Cost impact of the recommendation.public ResourceCostCalculation getCostCalculation()
Cost impact of the recommendation.
public Ec2Instance withCostCalculation(ResourceCostCalculation costCalculation)
Cost impact of the recommendation.
costCalculation - Cost impact of the recommendation.public String toString()
toString in class ObjectObject.toString()public Ec2Instance clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.