Class LaunchTemplateSpotMarketOptionsRequest

    • Method Detail

      • maxPrice

        public final String maxPrice()

        The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

        If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.

        Returns:
        The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

        If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.

      • blockDurationMinutes

        public final Integer blockDurationMinutes()

        Deprecated.

        Returns:
        Deprecated.
      • validUntil

        public final Instant validUntil()

        The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

        • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

        • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

        Default: 7 days from the current date

        Returns:
        The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

        • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

        • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

        Default: 7 days from the current date

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)