Record Class IndexSetTemplate
java.lang.Object
java.lang.Record
org.graylog2.indexer.indexset.template.IndexSetTemplate
- All Implemented Interfaces:
MongoEntity
public record IndexSetTemplate(@Nullable String id, @Nonnull String title, String description, boolean isBuiltIn, @Nonnull IndexSetTemplateConfig indexSetConfig)
extends Record
implements MongoEntity
Represents template as it is stored in Mongo.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexSetTemplate(String id, String title, String description, boolean isBuiltIn, IndexSetTemplateConfig indexSetConfig) Creates an instance of aIndexSetTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theindexSetConfigrecord component.booleanReturns the value of theisBuiltInrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID_FIELD_NAME
- See Also:
-
TITLE_FIELD_NAME
- See Also:
-
DESCRIPTION_FIELD_NAME
- See Also:
-
BUILT_IN_FIELD_NAME
- See Also:
-
INDEX_SET_CONFIG_FIELD_NAME
- See Also:
-
-
Constructor Details
-
IndexSetTemplate
-
IndexSetTemplate
public IndexSetTemplate(@Nullable String id, @Nonnull String title, String description, boolean isBuiltIn, @Nonnull IndexSetTemplateConfig indexSetConfig) Creates an instance of aIndexSetTemplaterecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentisBuiltIn- the value for theisBuiltInrecord componentindexSetConfig- the value for theindexSetConfigrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceMongoEntity- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
isBuiltIn
public boolean isBuiltIn()Returns the value of theisBuiltInrecord component.- Returns:
- the value of the
isBuiltInrecord component
-
indexSetConfig
Returns the value of theindexSetConfigrecord component.- Returns:
- the value of the
indexSetConfigrecord component
-