Class ListGatesResponseDataInnerStackInnerOneOfRamp

java.lang.Object
ai.shipeasy.admin.model.ListGatesResponseDataInnerStackInnerOneOfRamp

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ListGatesResponseDataInnerStackInnerOneOfRamp extends Object
Linear rollout ramp. The effective rollout % interpolates `from`→`to` over `[startAt, startAt+durationMs]`, clamped outside that window, evaluated against the wall-clock at eval time. Overrides the entry's static `rolloutPct` while present.
  • Field Details

  • Constructor Details

    • ListGatesResponseDataInnerStackInnerOneOfRamp

      public ListGatesResponseDataInnerStackInnerOneOfRamp()
  • Method Details

    • from

    • getFrom

      @Nonnull public Integer getFrom()
      Start of the ramp in basis points (0–10000). minimum: 0 maximum: 10000
      Returns:
      from
    • setFrom

      public void setFrom(@Nonnull Integer from)
    • to

    • getTo

      @Nonnull public Integer getTo()
      End of the ramp in basis points (0–10000). minimum: 0 maximum: 10000
      Returns:
      to
    • setTo

      public void setTo(@Nonnull Integer to)
    • startAt

      public ListGatesResponseDataInnerStackInnerOneOfRamp startAt(@Nonnull Integer startAt)
    • getStartAt

      @Nonnull public Integer getStartAt()
      Ramp start, epoch milliseconds (UTC). minimum: 0 maximum: 9007199254740991
      Returns:
      startAt
    • setStartAt

      public void setStartAt(@Nonnull Integer startAt)
    • durationMs

      public ListGatesResponseDataInnerStackInnerOneOfRamp durationMs(@Nonnull Integer durationMs)
    • getDurationMs

      @Nonnull public Integer getDurationMs()
      Ramp length in milliseconds. minimum: 0 maximum: 9007199254740991
      Returns:
      durationMs
    • setDurationMs

      public void setDurationMs(@Nonnull Integer durationMs)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ListGatesResponseDataInnerStackInnerOneOfRamp
    • fromJson

      public static ListGatesResponseDataInnerStackInnerOneOfRamp fromJson(String jsonString) throws IOException
      Create an instance of ListGatesResponseDataInnerStackInnerOneOfRamp given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ListGatesResponseDataInnerStackInnerOneOfRamp
      Throws:
      IOException - if the JSON string is invalid with respect to ListGatesResponseDataInnerStackInnerOneOfRamp
    • toJson

      public String toJson()
      Convert an instance of ListGatesResponseDataInnerStackInnerOneOfRamp to an JSON string
      Returns:
      JSON string