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.
  • Field Details

  • Constructor Details

    • ConstraintPolicyVersionFieldChange

      public ConstraintPolicyVersionFieldChange()
  • Method Details

    • baseValue

      public ConstraintPolicyVersionFieldChange baseValue(@Nullable String baseValue)
    • getBaseValue

      @Nullable public String getBaseValue()
      Value in the base version; null when unset.
      Returns:
      baseValue
    • setBaseValue

      public void setBaseValue(@Nullable String baseValue)
    • field

      public ConstraintPolicyVersionFieldChange field(@Nonnull String field)
    • getField

      @Nonnull public String getField()
      Field name.
      Returns:
      field
    • setField

      public void setField(@Nonnull String field)
    • targetValue

      public ConstraintPolicyVersionFieldChange targetValue(@Nullable String targetValue)
    • getTargetValue

      @Nullable public String getTargetValue()
      Value in the target version; null when unset.
      Returns:
      targetValue
    • setTargetValue

      public void setTargetValue(@Nullable String targetValue)
    • 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 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 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 ConstraintPolicyVersionFieldChange
    • fromJson

      public static ConstraintPolicyVersionFieldChange fromJson(String jsonString) throws IOException
      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

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