@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EC2InstanceDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about the Amazon EC2 instances that AWS recommends that you purchase.
Constructor and Description |
---|
EC2InstanceDetails() |
Modifier and Type | Method and Description |
---|---|
EC2InstanceDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone of the recommended reservation.
|
Boolean |
getCurrentGeneration()
Whether the recommendation is for a current-generation instance.
|
String |
getFamily()
The instance family of the recommended reservation.
|
String |
getInstanceType()
The type of instance that AWS recommends.
|
String |
getPlatform()
The platform of the recommended reservation.
|
String |
getRegion()
The AWS Region of the recommended reservation.
|
Boolean |
getSizeFlexEligible()
Whether the recommended reservation is size flexible.
|
String |
getTenancy()
Whether the recommended reservation is dedicated or shared.
|
int |
hashCode() |
Boolean |
isCurrentGeneration()
Whether the recommendation is for a current-generation instance.
|
Boolean |
isSizeFlexEligible()
Whether the recommended reservation is size flexible.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone of the recommended reservation.
|
void |
setCurrentGeneration(Boolean currentGeneration)
Whether the recommendation is for a current-generation instance.
|
void |
setFamily(String family)
The instance family of the recommended reservation.
|
void |
setInstanceType(String instanceType)
The type of instance that AWS recommends.
|
void |
setPlatform(String platform)
The platform of the recommended reservation.
|
void |
setRegion(String region)
The AWS Region of the recommended reservation.
|
void |
setSizeFlexEligible(Boolean sizeFlexEligible)
Whether the recommended reservation is size flexible.
|
void |
setTenancy(String tenancy)
Whether the recommended reservation is dedicated or shared.
|
String |
toString()
Returns a string representation of this object.
|
EC2InstanceDetails |
withAvailabilityZone(String availabilityZone)
The Availability Zone of the recommended reservation.
|
EC2InstanceDetails |
withCurrentGeneration(Boolean currentGeneration)
Whether the recommendation is for a current-generation instance.
|
EC2InstanceDetails |
withFamily(String family)
The instance family of the recommended reservation.
|
EC2InstanceDetails |
withInstanceType(String instanceType)
The type of instance that AWS recommends.
|
EC2InstanceDetails |
withPlatform(String platform)
The platform of the recommended reservation.
|
EC2InstanceDetails |
withRegion(String region)
The AWS Region of the recommended reservation.
|
EC2InstanceDetails |
withSizeFlexEligible(Boolean sizeFlexEligible)
Whether the recommended reservation is size flexible.
|
EC2InstanceDetails |
withTenancy(String tenancy)
Whether the recommended reservation is dedicated or shared.
|
public void setFamily(String family)
The instance family of the recommended reservation.
family
- The instance family of the recommended reservation.public String getFamily()
The instance family of the recommended reservation.
public EC2InstanceDetails withFamily(String family)
The instance family of the recommended reservation.
family
- The instance family of the recommended reservation.public void setInstanceType(String instanceType)
The type of instance that AWS recommends.
instanceType
- The type of instance that AWS recommends.public String getInstanceType()
The type of instance that AWS recommends.
public EC2InstanceDetails withInstanceType(String instanceType)
The type of instance that AWS recommends.
instanceType
- The type of instance that AWS recommends.public void setRegion(String region)
The AWS Region of the recommended reservation.
region
- The AWS Region of the recommended reservation.public String getRegion()
The AWS Region of the recommended reservation.
public EC2InstanceDetails withRegion(String region)
The AWS Region of the recommended reservation.
region
- The AWS Region of the recommended reservation.public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the recommended reservation.
availabilityZone
- The Availability Zone of the recommended reservation.public String getAvailabilityZone()
The Availability Zone of the recommended reservation.
public EC2InstanceDetails withAvailabilityZone(String availabilityZone)
The Availability Zone of the recommended reservation.
availabilityZone
- The Availability Zone of the recommended reservation.public void setPlatform(String platform)
The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
platform
- The platform of the recommended reservation. The platform is the specific combination of operating system,
license model, and software on an instance.public String getPlatform()
The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
public EC2InstanceDetails withPlatform(String platform)
The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
platform
- The platform of the recommended reservation. The platform is the specific combination of operating system,
license model, and software on an instance.public void setTenancy(String tenancy)
Whether the recommended reservation is dedicated or shared.
tenancy
- Whether the recommended reservation is dedicated or shared.public String getTenancy()
Whether the recommended reservation is dedicated or shared.
public EC2InstanceDetails withTenancy(String tenancy)
Whether the recommended reservation is dedicated or shared.
tenancy
- Whether the recommended reservation is dedicated or shared.public void setCurrentGeneration(Boolean currentGeneration)
Whether the recommendation is for a current-generation instance.
currentGeneration
- Whether the recommendation is for a current-generation instance.public Boolean getCurrentGeneration()
Whether the recommendation is for a current-generation instance.
public EC2InstanceDetails withCurrentGeneration(Boolean currentGeneration)
Whether the recommendation is for a current-generation instance.
currentGeneration
- Whether the recommendation is for a current-generation instance.public Boolean isCurrentGeneration()
Whether the recommendation is for a current-generation instance.
public void setSizeFlexEligible(Boolean sizeFlexEligible)
Whether the recommended reservation is size flexible.
sizeFlexEligible
- Whether the recommended reservation is size flexible.public Boolean getSizeFlexEligible()
Whether the recommended reservation is size flexible.
public EC2InstanceDetails withSizeFlexEligible(Boolean sizeFlexEligible)
Whether the recommended reservation is size flexible.
sizeFlexEligible
- Whether the recommended reservation is size flexible.public Boolean isSizeFlexEligible()
Whether the recommended reservation is size flexible.
public String toString()
toString
in class Object
Object.toString()
public EC2InstanceDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.