Class InstanceTypeOffering
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceTypeOffering
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceTypeOffering.Builder,InstanceTypeOffering>
@Generated("software.amazon.awssdk:codegen") public final class InstanceTypeOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceTypeOffering.Builder,InstanceTypeOffering>
The instance types offered.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceTypeOffering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceTypeOffering.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstanceTypeinstanceType()The instance type.StringinstanceTypeAsString()The instance type.Stringlocation()The identifier for the location.LocationTypelocationType()The location type.StringlocationTypeAsString()The location type.List<SdkField<?>>sdkFields()static Class<? extends InstanceTypeOffering.Builder>serializableBuilderClass()InstanceTypeOffering.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
-
instanceType
public final InstanceType instanceType()
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
- See Also:
InstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
- See Also:
InstanceType
-
locationType
public final LocationType locationType()
The location type.
If the service returns an enum value that is not available in the current SDK version,
locationTypewill returnLocationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlocationTypeAsString().- Returns:
- The location type.
- See Also:
LocationType
-
locationTypeAsString
public final String locationTypeAsString()
The location type.
If the service returns an enum value that is not available in the current SDK version,
locationTypewill returnLocationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlocationTypeAsString().- Returns:
- The location type.
- See Also:
LocationType
-
location
public final String location()
The identifier for the location. This depends on the location type. For example, if the location type is
region, the location is the Region code (for example,us-east-2.)- Returns:
- The identifier for the location. This depends on the location type. For example, if the location type is
region, the location is the Region code (for example,us-east-2.)
-
toBuilder
public InstanceTypeOffering.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceTypeOffering.Builder,InstanceTypeOffering>
-
builder
public static InstanceTypeOffering.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceTypeOffering.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.
-
-