Record Class WeatherAutomation.Configuration

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherAutomation.Configuration
All Implemented Interfaces:
Serializable
Enclosing class:
WeatherAutomation

public static record WeatherAutomation.Configuration(long revision, boolean automatic, boolean historical, Set<WeatherObservation.Path> approved, Set<WeatherObservation.Path> pins, Set<WeatherObservation.Path> exclusions, boolean probesEnabled, Set<WeatherProbe.Policy> probePolicies, Map<String,String> sourceGroups) extends Record implements Serializable
See Also:
  • Constructor Details

    • Configuration

      public Configuration(long revision, boolean automatic, boolean historical, Set<WeatherObservation.Path> approved, Set<WeatherObservation.Path> pins, Set<WeatherObservation.Path> exclusions, boolean probesEnabled, Set<WeatherProbe.Policy> probePolicies, Map<String,String> sourceGroups)
      Creates an instance of a Configuration record class.
      Parameters:
      revision - the value for the revision record component
      automatic - the value for the automatic record component
      historical - the value for the historical record component
      approved - the value for the approved record component
      pins - the value for the pins record component
      exclusions - the value for the exclusions record component
      probesEnabled - the value for the probesEnabled record component
      probePolicies - the value for the probePolicies record component
      sourceGroups - the value for the sourceGroups 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 the compare method from their corresponding wrapper classes.
      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.
    • revision

      public long revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • automatic

      public boolean automatic()
      Returns the value of the automatic record component.
      Returns:
      the value of the automatic record component
    • historical

      public boolean historical()
      Returns the value of the historical record component.
      Returns:
      the value of the historical record component
    • approved

      public Set<WeatherObservation.Path> approved()
      Returns the value of the approved record component.
      Returns:
      the value of the approved record component
    • pins

      public Set<WeatherObservation.Path> pins()
      Returns the value of the pins record component.
      Returns:
      the value of the pins record component
    • exclusions

      public Set<WeatherObservation.Path> exclusions()
      Returns the value of the exclusions record component.
      Returns:
      the value of the exclusions record component
    • probesEnabled

      public boolean probesEnabled()
      Returns the value of the probesEnabled record component.
      Returns:
      the value of the probesEnabled record component
    • probePolicies

      public Set<WeatherProbe.Policy> probePolicies()
      Returns the value of the probePolicies record component.
      Returns:
      the value of the probePolicies record component
    • sourceGroups

      public Map<String,String> sourceGroups()
      Returns the value of the sourceGroups record component.
      Returns:
      the value of the sourceGroups record component