Record Class WatchdogService.WatchdogServiceCheckConfig

java.lang.Object
java.lang.Record
ch.rswk.meta.engine.WatchdogService.WatchdogServiceCheckConfig
Enclosing class:
WatchdogService

public static record WatchdogService.WatchdogServiceCheckConfig(@Nullable Set<String> alerts, Set<String> engineIds, int retention, @Nullable Integer schedule) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @Nullable Set<String>
    The field for the alerts record component.
    private final Set<String>
    The field for the engineIds record component.
    private final int
    The field for the retention record component.
    private final @Nullable Integer
    The field for the schedule record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WatchdogServiceCheckConfig(@Nullable Set<String> alerts, Set<String> engineIds, int retention, @Nullable Integer schedule)
    Creates an instance of a WatchdogServiceCheckConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Set<String>
    Returns the value of the alerts record component.
    Returns the value of the engineIds record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the retention record component.
    @Nullable Integer
    Returns the value of the schedule record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • alerts

      private final @Nullable Set<String> alerts
      The field for the alerts record component.
    • engineIds

      private final Set<String> engineIds
      The field for the engineIds record component.
    • retention

      private final int retention
      The field for the retention record component.
    • schedule

      private final @Nullable Integer schedule
      The field for the schedule record component.
  • Constructor Details

    • WatchdogServiceCheckConfig

      public WatchdogServiceCheckConfig(@Nullable Set<String> alerts, Set<String> engineIds, int retention, @Nullable Integer schedule)
      Creates an instance of a WatchdogServiceCheckConfig record class.
      Parameters:
      alerts - the value for the alerts record component
      engineIds - the value for the engineIds record component
      retention - the value for the retention record component
      schedule - the value for the schedule record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • alerts

      public @Nullable Set<String> alerts()
      Returns the value of the alerts record component.
      Returns:
      the value of the alerts record component
    • engineIds

      public Set<String> engineIds()
      Returns the value of the engineIds record component.
      Returns:
      the value of the engineIds record component
    • retention

      public int retention()
      Returns the value of the retention record component.
      Returns:
      the value of the retention record component
    • schedule

      public @Nullable Integer schedule()
      Returns the value of the schedule record component.
      Returns:
      the value of the schedule record component