Record Class HostPasswordRotationStatus
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.HostPasswordRotationStatus
- All Implemented Interfaces:
Serializable
public record HostPasswordRotationStatus(UUID reference, HostPasswordRotationStore.State state, CredentialProbe.Result probe, UUID activeReference, HostPasswordRotationStore.LegacyDrainProgress drain, boolean activationEnabled, Long retirementGraceSeconds)
extends Record
implements Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHostPasswordRotationStatus(UUID reference, HostPasswordRotationStore.State state, CredentialProbe.Result probe) HostPasswordRotationStatus(UUID reference, HostPasswordRotationStore.State state, CredentialProbe.Result probe, UUID activeReference, HostPasswordRotationStore.LegacyDrainProgress drain, boolean activationEnabled, Long retirementGraceSeconds) Creates an instance of aHostPasswordRotationStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theactivationEnabledrecord component.Returns the value of theactiveReferencerecord component.drain()Returns the value of thedrainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.probe()Returns the value of theproberecord component.Returns the value of thereferencerecord component.Returns the value of theretirementGraceSecondsrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HostPasswordRotationStatus
public HostPasswordRotationStatus(UUID reference, HostPasswordRotationStore.State state, CredentialProbe.Result probe) -
HostPasswordRotationStatus
public HostPasswordRotationStatus(UUID reference, HostPasswordRotationStore.State state, CredentialProbe.Result probe, UUID activeReference, HostPasswordRotationStore.LegacyDrainProgress drain, boolean activationEnabled, Long retirementGraceSeconds) Creates an instance of aHostPasswordRotationStatusrecord class.- Parameters:
reference- the value for thereferencerecord componentstate- the value for thestaterecord componentprobe- the value for theproberecord componentactiveReference- the value for theactiveReferencerecord componentdrain- the value for thedrainrecord componentactivationEnabled- the value for theactivationEnabledrecord componentretirementGraceSeconds- the value for theretirementGraceSecondsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
probe
Returns the value of theproberecord component.- Returns:
- the value of the
proberecord component
-
activeReference
Returns the value of theactiveReferencerecord component.- Returns:
- the value of the
activeReferencerecord component
-
drain
Returns the value of thedrainrecord component.- Returns:
- the value of the
drainrecord component
-
activationEnabled
public boolean activationEnabled()Returns the value of theactivationEnabledrecord component.- Returns:
- the value of the
activationEnabledrecord component
-
retirementGraceSeconds
Returns the value of theretirementGraceSecondsrecord component.- Returns:
- the value of the
retirementGraceSecondsrecord component
-