Class SpotPrice

    • Method Detail

      • availabilityZone

        public final String availabilityZone()

        The Availability Zone.

        Returns:
        The Availability Zone.
      • spotPrice

        public final String spotPrice()

        The maximum price per unit hour that you are willing to pay for a Spot Instance. 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 instances will be interrupted more frequently than if you do not specify this parameter.

        Returns:
        The maximum price per unit hour that you are willing to pay for a Spot Instance. 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 instances will be interrupted more frequently than if you do not specify this parameter.

      • timestamp

        public final Instant timestamp()

        The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

        Returns:
        The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      • 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)