SpotInstanceRequestCapacityReservationSpecification class sealed
Exactly one of capacity_reservation_preference, capacity_reservation_target on the capacity_reservation_specification block of aws_spot_instance_request: the provider rejects
none and more than one, so each variant sets one of them.
Pick one with a dot shorthand: .capacityReservationPreference(...).
Constructors
- SpotInstanceRequestCapacityReservationSpecification.capacityReservationPreference(SpotInstanceRequestCapacityReservationPreference capacityReservationPreference)
-
Sets
capacity_reservation_preference.constfactory - SpotInstanceRequestCapacityReservationSpecification.capacityReservationTarget(SpotInstanceRequestCapacityReservationTarget capacityReservationTarget)
-
Sets
capacity_reservation_target.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited