Class CapacityReservationRequest
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacityReservationRequest.Builder,CapacityReservationRequest>
The capacity reservation configuration for Amazon ECS Managed Instances. Use this to target On-Demand Capacity Reservations or Reserved Instances.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe Amazon Resource Name (ARN) of the capacity reservation group to target.final StringThe capacity reservation preference.static Class<? extends CapacityReservationRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
reservationGroupArn
The Amazon Resource Name (ARN) of the capacity reservation group to target.
- Returns:
- The Amazon Resource Name (ARN) of the capacity reservation group to target.
-
reservationPreference
The capacity reservation preference. Valid values:
-
RESERVATIONS_ONLY— Use only capacity reservations. -
RESERVATIONS_FIRST— Prefer capacity reservations but fall back to On-Demand if unavailable. -
RESERVATIONS_EXCLUDED— Do not use capacity reservations.
- Returns:
- The capacity reservation preference. Valid values:
-
RESERVATIONS_ONLY— Use only capacity reservations. -
RESERVATIONS_FIRST— Prefer capacity reservations but fall back to On-Demand if unavailable. -
RESERVATIONS_EXCLUDED— Do not use capacity reservations.
-
-
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacityReservationRequest.Builder,CapacityReservationRequest>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-