@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EC2InstanceDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about the Amazon EC2 reservations that Amazon Web Services 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()
Determines 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 Amazon Web Services recommends.
|
String |
getPlatform()
The platform of the recommended reservation.
|
String |
getRegion()
The Amazon Web Services Region of the recommended reservation.
|
Boolean |
getSizeFlexEligible()
Determines whether the recommended reservation is size flexible.
|
String |
getTenancy()
Determines whether the recommended reservation is dedicated or shared.
|
int |
hashCode() |
Boolean |
isCurrentGeneration()
Determines whether the recommendation is for a current-generation instance.
|
Boolean |
isSizeFlexEligible()
Determines 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)
Determines 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 Amazon Web Services recommends.
|
void |
setPlatform(String platform)
The platform of the recommended reservation.
|
void |
setRegion(String region)
The Amazon Web Services Region of the recommended reservation.
|
void |
setSizeFlexEligible(Boolean sizeFlexEligible)
Determines whether the recommended reservation is size flexible.
|
void |
setTenancy(String tenancy)
Determines 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)
Determines 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 Amazon Web Services recommends.
|
EC2InstanceDetails |
withPlatform(String platform)
The platform of the recommended reservation.
|
EC2InstanceDetails |
withRegion(String region)
The Amazon Web Services Region of the recommended reservation.
|
EC2InstanceDetails |
withSizeFlexEligible(Boolean sizeFlexEligible)
Determines whether the recommended reservation is size flexible.
|
EC2InstanceDetails |
withTenancy(String tenancy)
Determines 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 Amazon Web Services recommends.
instanceType
- The type of instance that Amazon Web Services recommends.public String getInstanceType()
The type of instance that Amazon Web Services recommends.
public EC2InstanceDetails withInstanceType(String instanceType)
The type of instance that Amazon Web Services recommends.
instanceType
- The type of instance that Amazon Web Services recommends.public void setRegion(String region)
The Amazon Web Services Region of the recommended reservation.
region
- The Amazon Web Services Region of the recommended reservation.public String getRegion()
The Amazon Web Services Region of the recommended reservation.
public EC2InstanceDetails withRegion(String region)
The Amazon Web Services Region of the recommended reservation.
region
- The Amazon Web Services 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)
Determines whether the recommended reservation is dedicated or shared.
tenancy
- Determines whether the recommended reservation is dedicated or shared.public String getTenancy()
Determines whether the recommended reservation is dedicated or shared.
public EC2InstanceDetails withTenancy(String tenancy)
Determines whether the recommended reservation is dedicated or shared.
tenancy
- Determines whether the recommended reservation is dedicated or shared.public void setCurrentGeneration(Boolean currentGeneration)
Determines whether the recommendation is for a current-generation instance.
currentGeneration
- Determines whether the recommendation is for a current-generation instance.public Boolean getCurrentGeneration()
Determines whether the recommendation is for a current-generation instance.
public EC2InstanceDetails withCurrentGeneration(Boolean currentGeneration)
Determines whether the recommendation is for a current-generation instance.
currentGeneration
- Determines whether the recommendation is for a current-generation instance.public Boolean isCurrentGeneration()
Determines whether the recommendation is for a current-generation instance.
public void setSizeFlexEligible(Boolean sizeFlexEligible)
Determines whether the recommended reservation is size flexible.
sizeFlexEligible
- Determines whether the recommended reservation is size flexible.public Boolean getSizeFlexEligible()
Determines whether the recommended reservation is size flexible.
public EC2InstanceDetails withSizeFlexEligible(Boolean sizeFlexEligible)
Determines whether the recommended reservation is size flexible.
sizeFlexEligible
- Determines whether the recommended reservation is size flexible.public Boolean isSizeFlexEligible()
Determines 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.