Class KeyLifecycleOperationVerdict

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class KeyLifecycleOperationVerdict extends Object
Whether one read operation stops, continues, or stops on some material versions only, once the act is taken.
  • Field Details

  • Constructor Details

    • KeyLifecycleOperationVerdict

      public KeyLifecycleOperationVerdict()
  • Method Details

    • getOperationAsString

      public String getOperationAsString()
      The wire value of operation: what the server sent, verbatim.
      • For a value this release declares, the same wire value the enum names.
      • For a value it does not declare (one a later server added), the server's wire value verbatim, while getOperation() reads UNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel.
      • For an absent member, null.
      Returns:
      the wire value, or null when the member is absent
    • getVerdictAsString

      public String getVerdictAsString()
      The wire value of verdict: what the server sent, verbatim.
      • For a value this release declares, the same wire value the enum names.
      • For a value it does not declare (one a later server added), the server's wire value verbatim, while getVerdict() reads UNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel.
      • For an absent member, null.
      Returns:
      the wire value, or null when the member is absent
    • operation

    • getOperation

      @Nonnull public KeyLifecycleOperationVerdict.OperationEnum getOperation()
      The read leg. This projection always publishes verdicts for the four read legs — DECRYPT, VERIFY, and the REENCRYPT / RESIGN source legs — by design, never only the legs the current cause happens to narrow. The write legs (ENCRYPT, SIGN, and the REENCRYPT / RESIGN target legs) never appear: the writer refuses them off ACTIVE/PRIMARY under both shipped policy templates, and for SECURITY_COMPROMISE regardless of policy.
      Returns:
      operation
    • setOperation

      public void setOperation(@Nonnull KeyLifecycleOperationVerdict.OperationEnum operation)
    • stoppedMaterialVersions

      public KeyLifecycleOperationVerdict stoppedMaterialVersions(@Nonnull List<Integer> stoppedMaterialVersions)
    • addStoppedMaterialVersionsItem

      public KeyLifecycleOperationVerdict addStoppedMaterialVersionsItem(Integer stoppedMaterialVersionsItem)
    • getStoppedMaterialVersions

      @Nonnull public List<Integer> getStoppedMaterialVersions()
      Material versions on which the operation is refused, ascending. Equals evaluatedMaterialVersions under STOPS and is empty under CONTINUES.
      Returns:
      stoppedMaterialVersions
    • setStoppedMaterialVersions

      public void setStoppedMaterialVersions(@Nonnull List<Integer> stoppedMaterialVersions)
    • verdict

    • getVerdict

      @Nonnull public KeyLifecycleOperationVerdictKind getVerdict()
      The verdict over the evaluated material versions.
      Returns:
      verdict
    • setVerdict

      public void setVerdict(@Nonnull KeyLifecycleOperationVerdictKind verdict)
    • 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 KeyLifecycleOperationVerdict
    • 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 KeyLifecycleOperationVerdict
    • fromJson

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

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