Class InstanceInstanceMarketOptionsSpotOptions


  • public final class InstanceInstanceMarketOptionsSpotOptions
    extends java.lang.Object
    • Method Detail

      • instanceInterruptionBehavior

        public java.util.Optional<java.lang.String> instanceInterruptionBehavior()
        Returns:
        The behavior when a Spot Instance is interrupted. Valid values include `hibernate`, `stop`, `terminate` . The default is `terminate`.
      • maxPrice

        public java.util.Optional<java.lang.String> maxPrice()
        Returns:
        The maximum hourly price that you're willing to pay for a Spot Instance.
      • spotInstanceType

        public java.util.Optional<java.lang.String> spotInstanceType()
        Returns:
        The Spot Instance request type. Valid values include `one-time`, `persistent`. Persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop. The default is `one-time`.
      • validUntil

        public java.util.Optional<java.lang.String> validUntil()
        Returns:
        The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.