Record Class NuggetStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetStatus
- Record Components:
identity- nugget identityconfiguration- safe administration configuration summarystatusAt- snapshot timestampmetadata- redacted safe status metadata
public record NuggetStatus(NuggetIdentity identity, NuggetConfigurationSummary configuration, Instant statusAt, Map<String,String> metadata)
extends Record
Immutable safe status snapshot for a nugget administration subject.
-
Constructor Summary
ConstructorsConstructorDescriptionNuggetStatus(NuggetIdentity identity, NuggetConfigurationSummary configuration, Instant statusAt, Map<String, String> metadata) Creates a defensive immutable status snapshot. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.metadata()Returns the value of themetadatarecord component.statusAt()Returns the value of thestatusAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NuggetStatus
public NuggetStatus(NuggetIdentity identity, NuggetConfigurationSummary configuration, Instant statusAt, Map<String, String> metadata) Creates a defensive immutable status snapshot.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
identity
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
statusAt
-
metadata
-