Class NotifyOpsResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class NotifyOpsResponse extends Object
Response for `POST /api/admin/notifications`.
  • Field Details

  • Constructor Details

    • NotifyOpsResponse

      public NotifyOpsResponse()
  • Method Details

    • dedupeKey

      public NotifyOpsResponse dedupeKey(@Nonnull String dedupeKey)
    • getDedupeKey

      @Nonnull public String getDedupeKey()
      The dedupe key the escalation was recorded under.
      Returns:
      dedupeKey
    • setDedupeKey

      public void setDedupeKey(@Nonnull String dedupeKey)
    • dispatched

      public NotifyOpsResponse dispatched(@Nonnull Boolean dispatched)
    • getDispatched

      @Nonnull public Boolean getDispatched()
      `true` if a new escalation was dispatched; `false` on an idempotent repeat.
      Returns:
      dispatched
    • setDispatched

      public void setDispatched(@Nonnull Boolean dispatched)
    • 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 NotifyOpsResponse
    • fromJson

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

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