Class CapacityReservationInfo
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.CapacityReservationInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacityReservationInfo.Builder,CapacityReservationInfo>
@Generated("software.amazon.awssdk:codegen") public final class CapacityReservationInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityReservationInfo.Builder,CapacityReservationInfo>
Information about a Capacity Reservation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCapacityReservationInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The Availability Zone for the Capacity Reservation.static CapacityReservationInfo.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceType()The instance type for the Capacity Reservation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CapacityReservationInfo.Builder>serializableBuilderClass()CapacityReservationTenancytenancy()The tenancy of the Capacity Reservation.StringtenancyAsString()The tenancy of the Capacity Reservation.CapacityReservationInfo.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 String instanceType()
The instance type for the Capacity Reservation.
- Returns:
- The instance type for the Capacity Reservation.
-
availabilityZone
public final String availabilityZone()
The Availability Zone for the Capacity Reservation.
- Returns:
- The Availability Zone for the Capacity Reservation.
-
tenancy
public final CapacityReservationTenancy tenancy()
The tenancy of the Capacity Reservation.
If the service returns an enum value that is not available in the current SDK version,
tenancywill returnCapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtenancyAsString().- Returns:
- The tenancy of the Capacity Reservation.
- See Also:
CapacityReservationTenancy
-
tenancyAsString
public final String tenancyAsString()
The tenancy of the Capacity Reservation.
If the service returns an enum value that is not available in the current SDK version,
tenancywill returnCapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtenancyAsString().- Returns:
- The tenancy of the Capacity Reservation.
- See Also:
CapacityReservationTenancy
-
toBuilder
public CapacityReservationInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacityReservationInfo.Builder,CapacityReservationInfo>
-
builder
public static CapacityReservationInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityReservationInfo.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-