Class KeyLifecycleCauseVerdictsResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class KeyLifecycleCauseVerdictsResponse extends Object
Per-key server verdict: for each lifecycle act and each cause, which read operations stop, continue, or stop on some material versions only.
  • Field Details

  • Constructor Details

    • KeyLifecycleCauseVerdictsResponse

      public KeyLifecycleCauseVerdictsResponse()
  • Method Details

    • getCurrentRevocationCauseAsString

      public String getCurrentRevocationCauseAsString()
      The wire value of currentRevocationCause: 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 getCurrentRevocationCause() 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
    • getCurrentStatusAsString

      public String getCurrentStatusAsString()
      The wire value of currentStatus: 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 getCurrentStatus() 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
    • getCurrentSuspensionCauseAsString

      public String getCurrentSuspensionCauseAsString()
      The wire value of currentSuspensionCause: 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 getCurrentSuspensionCause() 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
    • acts

    • addActsItem

    • getActs

      @Nonnull public List<KeyLifecycleActVerdicts> getActs()
      One entry per act and cause: SUSPEND and REVOKE once per KeyLifecycleCause value, ARCHIVE once with the retained cause, REACTIVATE once.
      Returns:
      acts
    • setActs

      public void setActs(@Nonnull List<KeyLifecycleActVerdicts> acts)
    • currentRevocationCause

      public KeyLifecycleCauseVerdictsResponse currentRevocationCause(@Nullable KeyLifecycleCause currentRevocationCause)
    • getCurrentRevocationCause

      @Nullable public KeyLifecycleCause getCurrentRevocationCause()
      Cause recorded on the current revocation, retained through archive; null when the key has not been revoked.
      Returns:
      currentRevocationCause
    • setCurrentRevocationCause

      public void setCurrentRevocationCause(@Nullable KeyLifecycleCause currentRevocationCause)
    • currentStatus

    • getCurrentStatus

      @Nonnull public KeyLifecycleCauseVerdictsResponse.CurrentStatusEnum getCurrentStatus()
      The key's projected status today.
      Returns:
      currentStatus
    • setCurrentStatus

      public void setCurrentStatus(@Nonnull KeyLifecycleCauseVerdictsResponse.CurrentStatusEnum currentStatus)
    • currentSuspensionCause

      public KeyLifecycleCauseVerdictsResponse currentSuspensionCause(@Nullable KeyLifecycleCause currentSuspensionCause)
    • getCurrentSuspensionCause

      @Nullable public KeyLifecycleCause getCurrentSuspensionCause()
      Cause recorded on the current suspension; null when the key is not suspended.
      Returns:
      currentSuspensionCause
    • setCurrentSuspensionCause

      public void setCurrentSuspensionCause(@Nullable KeyLifecycleCause currentSuspensionCause)
    • evaluatedMaterialVersions

      public KeyLifecycleCauseVerdictsResponse evaluatedMaterialVersions(@Nonnull List<Integer> evaluatedMaterialVersions)
    • addEvaluatedMaterialVersionsItem

      public KeyLifecycleCauseVerdictsResponse addEvaluatedMaterialVersionsItem(Integer evaluatedMaterialVersionsItem)
    • getEvaluatedMaterialVersions

      @Nonnull public List<Integer> getEvaluatedMaterialVersions()
      The non-destroyed material versions every cell was evaluated over, ascending.
      Returns:
      evaluatedMaterialVersions
    • setEvaluatedMaterialVersions

      public void setEvaluatedMaterialVersions(@Nonnull List<Integer> evaluatedMaterialVersions)
    • kid

      public KeyLifecycleCauseVerdictsResponse kid(@Nonnull String kid)
    • getKid

      @Nonnull public String getKid()
      Stable KID the verdicts were computed for.
      Returns:
      kid
    • setKid

      public void setKid(@Nonnull String kid)
    • tenantId

      public KeyLifecycleCauseVerdictsResponse tenantId(@Nonnull UUID tenantId)
    • getTenantId

      @Nonnull public UUID getTenantId()
      Tenant whose effective lifecycle policy was composed with the rule.
      Returns:
      tenantId
    • setTenantId

      public void setTenantId(@Nonnull UUID tenantId)
    • 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 KeyLifecycleCauseVerdictsResponse
    • 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 KeyLifecycleCauseVerdictsResponse
    • fromJson

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

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