Package dev.restate.sdk.core.manifest
Class Input
java.lang.Object
dev.restate.sdk.core.manifest.Input
InputPayload
Description of an input payload. This will be used by Restate to validate incoming requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Content type of the input.If true, a body MUST be sent with a content-type, even if the body length is zero.int
hashCode()
void
setContentType
(String contentType) Content type of the input.void
setJsonSchema
(Object jsonSchema) void
setRequired
(Boolean required) If true, a body MUST be sent with a content-type, even if the body length is zero.toString()
withContentType
(String contentType) withJsonSchema
(Object jsonSchema) withRequired
(Boolean required)
-
Constructor Details
-
Input
public Input()
-
-
Method Details
-
getRequired
If true, a body MUST be sent with a content-type, even if the body length is zero. -
setRequired
If true, a body MUST be sent with a content-type, even if the body length is zero. -
withRequired
-
getContentType
Content type of the input. It can accept wildcards, in the same format as the 'Accept' header. When this field is unset, it implies emptiness, meaning no content-type/body is expected. -
setContentType
Content type of the input. It can accept wildcards, in the same format as the 'Accept' header. When this field is unset, it implies emptiness, meaning no content-type/body is expected. -
withContentType
-
getJsonSchema
-
setJsonSchema
-
withJsonSchema
-
toString
-
hashCode
public int hashCode() -
equals
-