Record Class FabricNotification.Operation
java.lang.Object
java.lang.Record
com.eqixiac.equinix.messaging.FabricNotification.Operation
- Record Components:
operationalStatus- current statusopStatusChangedAt- when the status was last observed to changemaintenanceMode- whether the change is due to (planned) maintenance
- Enclosing class:
FabricNotification
public static record FabricNotification.Operation(FabricNotification.OperationalStatus operationalStatus, Instant opStatusChangedAt, Boolean maintenanceMode)
extends Record
Operational-status details.
-
Constructor Summary
ConstructorsConstructorDescriptionOperation(FabricNotification.OperationalStatus operationalStatus, Instant opStatusChangedAt, Boolean maintenanceMode) Creates an instance of aOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaintenanceModerecord component.Returns the value of theoperationalStatusrecord component.Returns the value of theopStatusChangedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Operation
public Operation(FabricNotification.OperationalStatus operationalStatus, Instant opStatusChangedAt, Boolean maintenanceMode) Creates an instance of aOperationrecord class.- Parameters:
operationalStatus- the value for theoperationalStatusrecord componentopStatusChangedAt- the value for theopStatusChangedAtrecord componentmaintenanceMode- the value for themaintenanceModerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
operationalStatus
Returns the value of theoperationalStatusrecord component.- Returns:
- the value of the
operationalStatusrecord component
-
opStatusChangedAt
Returns the value of theopStatusChangedAtrecord component.- Returns:
- the value of the
opStatusChangedAtrecord component
-
maintenanceMode
Returns the value of themaintenanceModerecord component.- Returns:
- the value of the
maintenanceModerecord component
-