Record Class OpenSearchSink.IndexResult
java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.sinks.OpenSearchSink.IndexResult
- Record Components:
shortName- logical name used to select the mapping filefullName- fully-qualified index namestatus- CREATED, EXISTS, or FAILEDerror- concise reason whenstatus == FAILED; otherwisenull
- Enclosing class:
OpenSearchSink
public static record OpenSearchSink.IndexResult(String shortName, String fullName, OpenSearchSink.IndexResult.Status status, String error)
extends Record
Result of an index creation attempt.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIndexResult(String shortName, String fullName, OpenSearchSink.IndexResult.Status status, String error) Creates an instance of aIndexResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theshortNamerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexResult
public IndexResult(String shortName, String fullName, OpenSearchSink.IndexResult.Status status, String error) Creates an instance of aIndexResultrecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
shortName
Returns the value of theshortNamerecord component.- Returns:
- the value of the
shortNamerecord component
-
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-