Package codes.grow.packages.openbao
Record Class TidyStatus
java.lang.Object
java.lang.Record
codes.grow.packages.openbao.TidyStatus
- Record Components:
state-Inactive,Running,Finished,ErrororCancellederror- error textcertStoreDeletedCount- certificates removedrevokedCertDeletedCount- revoked entries removedtimeStarted- start timetimeFinished- end time
public record TidyStatus(String state, Optional<String> error, int certStoreDeletedCount, int revokedCertDeletedCount, Optional<Instant> timeStarted, Optional<Instant> timeFinished)
extends Record
Progress of a PKI tidy run (
GET <mount>/tidy-status).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecertStoreDeletedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therevokedCertDeletedCountrecord component.state()Returns the value of thestaterecord component.Returns the value of thetimeFinishedrecord component.Returns the value of thetimeStartedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TidyStatus
public TidyStatus(String state, Optional<String> error, int certStoreDeletedCount, int revokedCertDeletedCount, Optional<Instant> timeStarted, Optional<Instant> timeFinished) Creates an instance of aTidyStatusrecord class.- Parameters:
state- the value for thestaterecord componenterror- the value for theerrorrecord componentcertStoreDeletedCount- the value for thecertStoreDeletedCountrecord componentrevokedCertDeletedCount- the value for therevokedCertDeletedCountrecord componenttimeStarted- the value for thetimeStartedrecord componenttimeFinished- the value for thetimeFinishedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
certStoreDeletedCount
public int certStoreDeletedCount()Returns the value of thecertStoreDeletedCountrecord component.- Returns:
- the value of the
certStoreDeletedCountrecord component
-
revokedCertDeletedCount
public int revokedCertDeletedCount()Returns the value of therevokedCertDeletedCountrecord component.- Returns:
- the value of the
revokedCertDeletedCountrecord component
-
timeStarted
Returns the value of thetimeStartedrecord component.- Returns:
- the value of the
timeStartedrecord component
-
timeFinished
Returns the value of thetimeFinishedrecord component.- Returns:
- the value of the
timeFinishedrecord component
-