Class TestConnectorResponse

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

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

  • Constructor Details

    • TestConnectorResponse

      public TestConnectorResponse()
  • Method Details

    • ok

      public TestConnectorResponse ok(@Nonnull Boolean ok)
    • getOk

      @Nonnull public Boolean getOk()
      Always `true` — a successful test 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)
    • issueUrl

      public TestConnectorResponse issueUrl(@Nullable String issueUrl)
    • getIssueUrl

      @Nullable public String getIssueUrl()
      URL of the artifact the test produced (e.g. the GitHub Issue created by a `github` connector), or `null` when the provider produces no linkable artifact.
      Returns:
      issueUrl
    • setIssueUrl

      public void setIssueUrl(@Nullable String issueUrl)
    • 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 TestConnectorResponse
    • fromJson

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

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