Package dev.restate.sdk.gen.model
Record Class Handler
java.lang.Object
java.lang.Record
dev.restate.sdk.gen.model.Handler
public record Handler(String name, String restateName, HandlerType handlerType, @Nullable String inputAccept, PayloadType inputType, PayloadType outputType, @Nullable String documentation)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHandler(String name, String restateName, HandlerType handlerType, @Nullable String inputAccept, PayloadType inputType, PayloadType outputType, @Nullable String documentation) Creates an instance of aHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Handler.Builderbuilder()@Nullable StringReturns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandlerTyperecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theinputAcceptrecord component.Returns the value of theinputTyperecord component.name()Returns the value of thenamerecord component.Returns the value of theoutputTyperecord component.Returns the value of therestateNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Handler
public Handler(String name, String restateName, HandlerType handlerType, @Nullable String inputAccept, PayloadType inputType, PayloadType outputType, @Nullable String documentation) Creates an instance of aHandlerrecord class.- Parameters:
name- the value for thenamerecord componentrestateName- the value for therestateNamerecord componenthandlerType- the value for thehandlerTyperecord componentinputAccept- the value for theinputAcceptrecord componentinputType- the value for theinputTyperecord componentoutputType- the value for theoutputTyperecord componentdocumentation- the value for thedocumentationrecord component
-
-
Method Details
-
builder
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
restateName
Returns the value of therestateNamerecord component.- Returns:
- the value of the
restateNamerecord component
-
handlerType
Returns the value of thehandlerTyperecord component.- Returns:
- the value of the
handlerTyperecord component
-
inputAccept
Returns the value of theinputAcceptrecord component.- Returns:
- the value of the
inputAcceptrecord component
-
inputType
Returns the value of theinputTyperecord component.- Returns:
- the value of the
inputTyperecord component
-
outputType
Returns the value of theoutputTyperecord component.- Returns:
- the value of the
outputTyperecord component
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-