Record Class IndexNaming.BaseTemplateValidation
java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.utils.IndexNaming.BaseTemplateValidation
- Enclosing class:
IndexNaming
public static record IndexNaming.BaseTemplateValidation(String failingIndexKey, String failingResolvedName, String error, Instant resolvedAt)
extends Record
Resolved index names for one configuration snapshot at one instant.
-
Constructor Summary
ConstructorsConstructorDescriptionBaseTemplateValidation(String failingIndexKey, String failingResolvedName, String error, Instant resolvedAt) Creates an instance of aBaseTemplateValidationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of thefailingIndexKeyrecord component.Returns the value of thefailingResolvedNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresolvedAtrecord component.final StringtoString()Returns a string representation of this record class.booleanvalid()
-
Constructor Details
-
BaseTemplateValidation
public BaseTemplateValidation(String failingIndexKey, String failingResolvedName, String error, Instant resolvedAt) Creates an instance of aBaseTemplateValidationrecord class.- Parameters:
failingIndexKey- the value for thefailingIndexKeyrecord componentfailingResolvedName- the value for thefailingResolvedNamerecord componenterror- the value for theerrorrecord componentresolvedAt- the value for theresolvedAtrecord component
-
-
Method Details
-
valid
public boolean valid() -
failingDisplayName
-
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). -
failingIndexKey
Returns the value of thefailingIndexKeyrecord component.- Returns:
- the value of the
failingIndexKeyrecord component
-
failingResolvedName
Returns the value of thefailingResolvedNamerecord component.- Returns:
- the value of the
failingResolvedNamerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
resolvedAt
Returns the value of theresolvedAtrecord component.- Returns:
- the value of the
resolvedAtrecord component
-