Class CapacityBlockOfferingSegment
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacityBlockOfferingSegment.Builder,CapacityBlockOfferingSegment>
Describes an individual segment within a Capacity Block offering. Each segment represents a distinct block of capacity with its own Availability Zone, instance type, duration, pricing, and schedule.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Availability Zone of the Capacity Block offering segment.final StringThe ID of the Availability Zone for the Capacity Block offering segment.builder()final IntegerThe number of hours for the duration of the Capacity Block offering segment.final IntegerThe number of minutes for the duration of the Capacity Block offering segment.final StringThe currency of the payment for the Capacity Block offering segment.final InstantendDate()The end date of the Capacity Block offering segment.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe number of instances in the Capacity Block offering segment.final StringThe instance type of the Capacity Block offering segment.static Class<? extends CapacityBlockOfferingSegment.Builder> final InstantThe start date of the Capacity Block offering segment.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe total price to be paid up front for the Capacity Block offering segment.final StringzoneType()The type of zone where the Capacity Block offering segment is available.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
instanceType
The instance type of the Capacity Block offering segment.
- Returns:
- The instance type of the Capacity Block offering segment.
-
availabilityZone
The Availability Zone of the Capacity Block offering segment.
- Returns:
- The Availability Zone of the Capacity Block offering segment.
-
availabilityZoneId
The ID of the Availability Zone for the Capacity Block offering segment.
- Returns:
- The ID of the Availability Zone for the Capacity Block offering segment.
-
instanceCount
The number of instances in the Capacity Block offering segment.
- Returns:
- The number of instances in the Capacity Block offering segment.
-
startDate
The start date of the Capacity Block offering segment.
- Returns:
- The start date of the Capacity Block offering segment.
-
endDate
The end date of the Capacity Block offering segment.
- Returns:
- The end date of the Capacity Block offering segment.
-
capacityBlockDurationHours
The number of hours for the duration of the Capacity Block offering segment.
- Returns:
- The number of hours for the duration of the Capacity Block offering segment.
-
capacityBlockDurationMinutes
The number of minutes for the duration of the Capacity Block offering segment.
- Returns:
- The number of minutes for the duration of the Capacity Block offering segment.
-
upfrontFee
The total price to be paid up front for the Capacity Block offering segment.
- Returns:
- The total price to be paid up front for the Capacity Block offering segment.
-
currencyCode
The currency of the payment for the Capacity Block offering segment.
- Returns:
- The currency of the payment for the Capacity Block offering segment.
-
zoneType
The type of zone where the Capacity Block offering segment is available.
- Returns:
- The type of zone where the Capacity Block offering segment is available.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacityBlockOfferingSegment.Builder,CapacityBlockOfferingSegment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-