Class ValidationResultResponse

java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ValidationResultResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ValidationResultResponse extends Object
Result of validating an Exchange's references and cross-entity invariants
  • Field Details

  • Constructor Details

    • ValidationResultResponse

      public ValidationResultResponse()
  • Method Details

    • ready

      public ValidationResultResponse ready(@Nullable Boolean ready)
    • getReady

      @Nullable public Boolean getReady()
      True if the Exchange transitioned to READY (no blocking violations)
      Returns:
      ready
    • setReady

      public void setReady(@Nullable Boolean ready)
    • violations

      public ValidationResultResponse violations(@Nullable List<ValidationViolation> violations)
    • addViolationsItem

      public ValidationResultResponse addViolationsItem(ValidationViolation violationsItem)
    • getViolations

      @Nullable public List<ValidationViolation> getViolations()
      Blocking violations. Empty when ready=true.
      Returns:
      violations
    • setViolations

      public void setViolations(@Nullable List<ValidationViolation> violations)
    • warnings

      public ValidationResultResponse warnings(@Nullable List<ValidationWarning> warnings)
    • addWarningsItem

      public ValidationResultResponse addWarningsItem(ValidationWarning warningsItem)
    • getWarnings

      @Nullable public List<ValidationWarning> getWarnings()
      Non-blocking warnings (recommendations). May be present when ready=true.
      Returns:
      warnings
    • setWarnings

      public void setWarnings(@Nullable List<ValidationWarning> warnings)
    • 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 ValidationResultResponse
    • validateJsonElementAsCandidate

      public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element as a candidate of a oneOf schema: the checks of validateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is not a ValidationResultResponse
    • fromJson

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

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