Class ConstraintPolicyVersionFieldChange
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ConstraintPolicyVersionFieldChange
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ConstraintPolicyVersionFieldChange
extends Object
A field whose value differs between the two versions. Values are text: numbers in decimal, instants in RFC 3339 UTC, weekdays as ISO numbers comma-separated, times as HH:mm; null when the field is unset in that version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ConstraintPolicyVersionFieldChange given an JSON stringValue in the base version; null when unset.getField()Field name.Value in the target version; null when unset.inthashCode()voidsetBaseValue(String baseValue) voidvoidsetTargetValue(String targetValue) targetValue(String targetValue) toJson()Convert an instance of ConstraintPolicyVersionFieldChange 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.
-
Field Details
-
SERIALIZED_NAME_BASE_VALUE
- See Also:
-
SERIALIZED_NAME_FIELD
- See Also:
-
SERIALIZED_NAME_TARGET_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ConstraintPolicyVersionFieldChange
public ConstraintPolicyVersionFieldChange()
-
-
Method Details
-
baseValue
-
getBaseValue
Value in the base version; null when unset.- Returns:
- baseValue
-
setBaseValue
-
field
-
getField
Field name.- Returns:
- field
-
setField
-
targetValue
-
getTargetValue
Value in the target version; null when unset.- Returns:
- targetValue
-
setTargetValue
-
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 ConstraintPolicyVersionFieldChange
-
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 ConstraintPolicyVersionFieldChange
-
fromJson
Create an instance of ConstraintPolicyVersionFieldChange given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ConstraintPolicyVersionFieldChange
- Throws:
IOException- if the JSON string is invalid with respect to ConstraintPolicyVersionFieldChange
-
toJson
Convert an instance of ConstraintPolicyVersionFieldChange to an JSON string- Returns:
- JSON string
-