Package ai.shipeasy.admin.model
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`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TestConnectorResponseCreate an instance of TestConnectorResponse given an JSON stringURL of the artifact the test produced (e.g.getOk()Always `true` — a successful test returns HTTP 200.inthashCode()voidsetIssueUrl(String issueUrl) voidtoJson()Convert an instance of TestConnectorResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_OK
- See Also:
-
SERIALIZED_NAME_ISSUE_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TestConnectorResponse
public TestConnectorResponse()
-
-
Method Details
-
ok
-
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
-
issueUrl
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of TestConnectorResponse to an JSON string- Returns:
- JSON string
-