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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ImportSummary extends Object
Quick summary of a keystore import's results.
  • Field Details

  • Constructor Details

    • ImportSummary

      public ImportSummary()
  • Method Details

    • resultType

      public ImportSummary resultType(@Nonnull String resultType)
    • getResultType

      @Nonnull public String getResultType()
      Overall result classification: - FULL_SUCCESS: every entry imported - PARTIAL_SUCCESS: some imported, others skipped or failed - ALL_SKIPPED: nothing new (every entry already existed) - ALL_FAILED: complete failure
      Returns:
      resultType
    • setResultType

      public void setResultType(@Nonnull String resultType)
    • totalCertificates

      public ImportSummary totalCertificates(@Nonnull Integer totalCertificates)
    • getTotalCertificates

      @Nonnull public Integer getTotalCertificates()
      Total number of trusted certificates (CAs) successfully imported. minimum: 0
      Returns:
      totalCertificates
    • setTotalCertificates

      public void setTotalCertificates(@Nonnull Integer totalCertificates)
    • totalFailed

      public ImportSummary totalFailed(@Nonnull Integer totalFailed)
    • getTotalFailed

      @Nonnull public Integer getTotalFailed()
      Total number of entries that failed validation or import. minimum: 0
      Returns:
      totalFailed
    • setTotalFailed

      public void setTotalFailed(@Nonnull Integer totalFailed)
    • totalKeys

      public ImportSummary totalKeys(@Nonnull Integer totalKeys)
    • getTotalKeys

      @Nonnull public Integer getTotalKeys()
      Total number of private keys successfully imported. minimum: 0
      Returns:
      totalKeys
    • setTotalKeys

      public void setTotalKeys(@Nonnull Integer totalKeys)
    • totalSkipped

      public ImportSummary totalSkipped(@Nonnull Integer totalSkipped)
    • getTotalSkipped

      @Nonnull public Integer getTotalSkipped()
      Total number of entries skipped because they already exist (an idempotent re-import). minimum: 0
      Returns:
      totalSkipped
    • setTotalSkipped

      public void setTotalSkipped(@Nonnull Integer totalSkipped)
    • 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 ImportSummary
    • 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 ImportSummary
    • fromJson

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

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