Package dev.restate.sdk.gen.model
Record Class Handler
java.lang.Object
java.lang.Record
dev.restate.sdk.gen.model.Handler
public record Handler(CharSequence name, HandlerType handlerType, @Nullable String inputAccept, PayloadType inputType, PayloadType outputType, @Nullable String documentation)
extends Record
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionHandler
(CharSequence name, HandlerType handlerType, @Nullable String inputAccept, PayloadType inputType, PayloadType outputType, @Nullable String documentation) Creates an instance of aHandler
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Handler.Builder
builder()
@Nullable String
Returns the value of thedocumentation
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thehandlerType
record component.final int
hashCode()
Returns a hash code value for this object.@Nullable String
Returns the value of theinputAccept
record component.Returns the value of theinputType
record component.name()
Returns the value of thename
record component.Returns the value of theoutputType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Handler
public Handler(CharSequence name, HandlerType handlerType, @Nullable String inputAccept, PayloadType inputType, PayloadType outputType, @Nullable String documentation) Creates an instance of aHandler
record class.- Parameters:
name
- the value for thename
record componenthandlerType
- the value for thehandlerType
record componentinputAccept
- the value for theinputAccept
record componentinputType
- the value for theinputType
record componentoutputType
- the value for theoutputType
record componentdocumentation
- the value for thedocumentation
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
handlerType
Returns the value of thehandlerType
record component.- Returns:
- the value of the
handlerType
record component
-
inputAccept
Returns the value of theinputAccept
record component.- Returns:
- the value of the
inputAccept
record component
-
inputType
Returns the value of theinputType
record component.- Returns:
- the value of the
inputType
record component
-
outputType
Returns the value of theoutputType
record component.- Returns:
- the value of the
outputType
record component
-
documentation
Returns the value of thedocumentation
record component.- Returns:
- the value of the
documentation
record component
-