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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddViolationsItem(ValidationViolation violationsItem) addWarningsItem(ValidationWarning warningsItem) booleanstatic ValidationResultResponseCreate an instance of ValidationResultResponse given an JSON stringgetReady()True if the Exchange transitioned to READY (no blocking violations)Blocking violations.Non-blocking warnings (recommendations).inthashCode()voidvoidsetViolations(List<ValidationViolation> violations) voidsetWarnings(List<ValidationWarning> warnings) toJson()Convert an instance of ValidationResultResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.violations(List<ValidationViolation> violations) warnings(List<ValidationWarning> warnings)
-
Field Details
-
SERIALIZED_NAME_READY
- See Also:
-
SERIALIZED_NAME_VIOLATIONS
- See Also:
-
SERIALIZED_NAME_WARNINGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidationResultResponse
public ValidationResultResponse()
-
-
Method Details
-
ready
-
getReady
True if the Exchange transitioned to READY (no blocking violations)- Returns:
- ready
-
setReady
-
violations
-
addViolationsItem
-
getViolations
Blocking violations. Empty when ready=true.- Returns:
- violations
-
setViolations
-
warnings
-
addWarningsItem
-
getWarnings
Non-blocking warnings (recommendations). May be present when ready=true.- Returns:
- warnings
-
setWarnings
-
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 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 ofvalidateJsonElement(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
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
Convert an instance of ValidationResultResponse to an JSON string- Returns:
- JSON string
-