Class EC2InstanceDetails
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.EC2InstanceDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EC2InstanceDetails.Builder,EC2InstanceDetails>
@Generated("software.amazon.awssdk:codegen") public final class EC2InstanceDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EC2InstanceDetails.Builder,EC2InstanceDetails>
Details about the Amazon EC2 reservations that Amazon Web Services recommends that you purchase.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEC2InstanceDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone of the recommended reservation.static EC2InstanceDetails.Builderbuilder()BooleancurrentGeneration()Determines whether the recommendation is for a current-generation instance.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfamily()The instance family of the recommended reservation.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceType()The type of instance that Amazon Web Services recommends.Stringplatform()The platform of the recommended reservation.Stringregion()The Amazon Web Services Region of the recommended reservation.List<SdkField<?>>sdkFields()static Class<? extends EC2InstanceDetails.Builder>serializableBuilderClass()BooleansizeFlexEligible()Determines whether the recommended reservation is size flexible.Stringtenancy()Determines whether the recommended reservation is dedicated or shared.EC2InstanceDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
family
public final String family()
The instance family of the recommended reservation.
- Returns:
- The instance family of the recommended reservation.
-
instanceType
public final String instanceType()
The type of instance that Amazon Web Services recommends.
- Returns:
- The type of instance that Amazon Web Services recommends.
-
region
public final String region()
The Amazon Web Services Region of the recommended reservation.
- Returns:
- The Amazon Web Services Region of the recommended reservation.
-
availabilityZone
public final String availabilityZone()
The Availability Zone of the recommended reservation.
- Returns:
- The Availability Zone of the recommended reservation.
-
platform
public final String platform()
The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
- Returns:
- The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
-
tenancy
public final String tenancy()
Determines whether the recommended reservation is dedicated or shared.
- Returns:
- Determines whether the recommended reservation is dedicated or shared.
-
currentGeneration
public final Boolean currentGeneration()
Determines whether the recommendation is for a current-generation instance.
- Returns:
- Determines whether the recommendation is for a current-generation instance.
-
sizeFlexEligible
public final Boolean sizeFlexEligible()
Determines whether the recommended reservation is size flexible.
- Returns:
- Determines whether the recommended reservation is size flexible.
-
toBuilder
public EC2InstanceDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EC2InstanceDetails.Builder,EC2InstanceDetails>
-
builder
public static EC2InstanceDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends EC2InstanceDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-