Class FireConnectorResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class FireConnectorResponse extends Object
Result of a successful trigger fire: `{ ok: true }`. When the downstream dispatch fails the endpoint returns HTTP 502 (see the `Error` response), never `ok: false`.
  • Field Details

  • Constructor Details

    • FireConnectorResponse

      public FireConnectorResponse()
  • Method Details

    • ok

      public FireConnectorResponse ok(@Nonnull Boolean ok)
    • getOk

      @Nonnull public Boolean getOk()
      Always `true` — a successful fire returns HTTP 200. A dispatch failure returns HTTP 502 with the `Error` envelope, not this body.
      Returns:
      ok
    • setOk

      public void setOk(@Nonnull Boolean ok)
    • 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 FireConnectorResponse
    • fromJson

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

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