Package app.ductape.sdk.vector.types
Record Class VectorActionInterfaceTypes.VectorActionResult
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorActionInterfaceTypes.VectorActionResult
- Enclosing class:
- VectorActionInterfaceTypes
public static record VectorActionInterfaceTypes.VectorActionResult(boolean success, Object data, String error, Long executionTime, VectorActionInterfaceTypes.VectorActionTemplate resolvedTemplate)
extends Record
TS
IVectorActionResult-
Constructor Summary
ConstructorsConstructorDescriptionVectorActionResult(boolean success, Object data, String error, Long executionTime, VectorActionInterfaceTypes.VectorActionTemplate resolvedTemplate) Creates an instance of aVectorActionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theexecutionTimerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresolvedTemplaterecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VectorActionResult
public VectorActionResult(boolean success, Object data, String error, Long executionTime, VectorActionInterfaceTypes.VectorActionTemplate resolvedTemplate) Creates an instance of aVectorActionResultrecord class.- Parameters:
success- the value for thesuccessrecord componentdata- the value for thedatarecord componenterror- the value for theerrorrecord componentexecutionTime- the value for theexecutionTimerecord componentresolvedTemplate- the value for theresolvedTemplaterecord 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 '=='. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
executionTime
Returns the value of theexecutionTimerecord component.- Returns:
- the value of the
executionTimerecord component
-
resolvedTemplate
Returns the value of theresolvedTemplaterecord component.- Returns:
- the value of the
resolvedTemplaterecord component
-