Class ImportSummary
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ImportSummaryCreate an instance of ImportSummary given an JSON stringOverall 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 failureTotal number of trusted certificates (CAs) successfully imported.Total number of entries that failed validation or import.Total number of private keys successfully imported.Total number of entries skipped because they already exist (an idempotent re-import).inthashCode()resultType(String resultType) voidsetResultType(String resultType) voidsetTotalCertificates(Integer totalCertificates) voidsetTotalFailed(Integer totalFailed) voidsetTotalKeys(Integer totalKeys) voidsetTotalSkipped(Integer totalSkipped) toJson()Convert an instance of ImportSummary to an JSON stringtoString()totalCertificates(Integer totalCertificates) totalFailed(Integer totalFailed) totalSkipped(Integer totalSkipped) 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_RESULT_TYPE
- See Also:
-
SERIALIZED_NAME_TOTAL_CERTIFICATES
- See Also:
-
SERIALIZED_NAME_TOTAL_FAILED
- See Also:
-
SERIALIZED_NAME_TOTAL_KEYS
- See Also:
-
SERIALIZED_NAME_TOTAL_SKIPPED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ImportSummary
public ImportSummary()
-
-
Method Details
-
resultType
-
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
-
totalCertificates
-
getTotalCertificates
Total number of trusted certificates (CAs) successfully imported. minimum: 0- Returns:
- totalCertificates
-
setTotalCertificates
-
totalFailed
-
getTotalFailed
Total number of entries that failed validation or import. minimum: 0- Returns:
- totalFailed
-
setTotalFailed
-
totalKeys
-
getTotalKeys
Total number of private keys successfully imported. minimum: 0- Returns:
- totalKeys
-
setTotalKeys
-
totalSkipped
-
getTotalSkipped
Total number of entries skipped because they already exist (an idempotent re-import). minimum: 0- Returns:
- totalSkipped
-
setTotalSkipped
-
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 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 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 ImportSummary
-
fromJson
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
Convert an instance of ImportSummary to an JSON string- Returns:
- JSON string
-