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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTemplate(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings) Creates an instance of aTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Templatecreate(String indexPattern, Template.Mappings mappings, Long order, Template.Settings settings) static Templatecreate(List<String> indexPatterns, Template.Mappings mappings, Long order, Template.Settings settings) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexPatternsrecord component.mappings()Returns the value of themappingsrecord component.order()Returns the value of theorderrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()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 aTemplaterecord class.- Parameters:
indexPatterns- the value for theindexPatternsrecord componentmappings- the value for themappingsrecord componentorder- the value for theorderrecord componentsettings- the value for thesettingsrecord 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 theindexPatternsrecord component.- Returns:
- the value of the
indexPatternsrecord component
-
mappings
Returns the value of themappingsrecord component.- Returns:
- the value of the
mappingsrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-