Record Class IndexSetTemplateResponse
java.lang.Object
java.lang.Record
org.graylog2.indexer.indexset.template.rest.IndexSetTemplateResponse
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexSetTemplateResponse(String id, String title, String description, boolean isBuiltIn, boolean isDefault, boolean enabled, String disabledReason, IndexSetTemplateConfig indexSetConfig) Creates an instance of aIndexSetTemplateResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of thedisabledReasonrecord component.booleanenabled()Returns the value of theenabledrecord 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.booleanReturns the value of theisDefaultrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_FIELD_NAME
- See Also:
-
ENABLED_FIELD_NAME
- See Also:
-
DISABLED_REASON_FIELD_NAME
- See Also:
-
-
Constructor Details
-
IndexSetTemplateResponse
public IndexSetTemplateResponse(@Nonnull String id, @Nonnull String title, String description, boolean isBuiltIn, boolean isDefault, boolean enabled, String disabledReason, @Nonnull IndexSetTemplateConfig indexSetConfig) Creates an instance of aIndexSetTemplateResponserecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentisBuiltIn- the value for theisBuiltInrecord componentisDefault- the value for theisDefaultrecord componentenabled- the value for theenabledrecord componentdisabledReason- the value for thedisabledReasonrecord 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.- 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
-
isDefault
public boolean isDefault()Returns the value of theisDefaultrecord component.- Returns:
- the value of the
isDefaultrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
disabledReason
Returns the value of thedisabledReasonrecord component.- Returns:
- the value of the
disabledReasonrecord component
-
indexSetConfig
Returns the value of theindexSetConfigrecord component.- Returns:
- the value of the
indexSetConfigrecord component
-