Record Class Template

java.lang.Object
java.lang.Record
org.graylog2.indexer.indices.Template

public record Template(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings) extends Record
  • Constructor Details

    • Template

      public Template(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings)
      Creates an instance of a Template record class.
      Parameters:
      indexPatterns - the value for the indexPatterns record component
      mappings - the value for the mappings record component
      order - the value for the order record component
      settings - the value for the settings record component
  • Method Details

    • create

      public static Template create(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings)
    • create

      public static Template create(String indexPattern, Template.Mappings mappings, Long order, Template.Settings settings)
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • indexPatterns

      public List<String> indexPatterns()
      Returns the value of the indexPatterns record component.
      Returns:
      the value of the indexPatterns record component
    • mappings

      public Template.Mappings mappings()
      Returns the value of the mappings record component.
      Returns:
      the value of the mappings record component
    • order

      public Long order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • settings

      public Template.Settings settings()
      Returns the value of the settings record component.
      Returns:
      the value of the settings record component