Package org.graylog2.indexer.indices
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
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTemplate
(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings) Creates an instance of aTemplate
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Template
create
(String indexPattern, Template.Mappings mappings, Long order, Template.Settings settings) static Template
create
(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theindexPatterns
record component.mappings()
Returns the value of themappings
record component.order()
Returns the value of theorder
record component.settings()
Returns the value of thesettings
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Template
public Template(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings) Creates an instance of aTemplate
record class.- Parameters:
indexPatterns
- the value for theindexPatterns
record componentmappings
- the value for themappings
record componentorder
- the value for theorder
record componentsettings
- the value for thesettings
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
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. -
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. -
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)
. -
indexPatterns
Returns the value of theindexPatterns
record component.- Returns:
- the value of the
indexPatterns
record component
-
mappings
Returns the value of themappings
record component.- Returns:
- the value of the
mappings
record component
-
order
Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-
settings
Returns the value of thesettings
record component.- Returns:
- the value of the
settings
record component
-