Package dev.restate.sdk.core.manifest
Class Input
- java.lang.Object
-
- dev.restate.sdk.core.manifest.Input
-
@Generated("jsonschema2pojo") public class Input extends java.lang.ObjectInputPayloadDescription of an input payload. This will be used by Restate to validate incoming requests.
-
-
Constructor Summary
Constructors Constructor Description Input()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetContentType()Content type of the input.java.lang.ObjectgetJsonSchema()java.lang.BooleangetRequired()If true, a body MUST be sent with a content-type, even if the body length is zero.inthashCode()voidsetContentType(java.lang.String contentType)Content type of the input.voidsetJsonSchema(java.lang.Object jsonSchema)voidsetRequired(java.lang.Boolean required)If true, a body MUST be sent with a content-type, even if the body length is zero.java.lang.StringtoString()InputwithContentType(java.lang.String contentType)InputwithJsonSchema(java.lang.Object jsonSchema)InputwithRequired(java.lang.Boolean required)
-
-
-
Method Detail
-
getRequired
public java.lang.Boolean getRequired()
If true, a body MUST be sent with a content-type, even if the body length is zero.
-
setRequired
public void setRequired(java.lang.Boolean required)
If true, a body MUST be sent with a content-type, even if the body length is zero.
-
withRequired
public Input withRequired(java.lang.Boolean required)
-
getContentType
public java.lang.String 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
public void setContentType(java.lang.String contentType)
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
public Input withContentType(java.lang.String contentType)
-
getJsonSchema
public java.lang.Object getJsonSchema()
-
setJsonSchema
public void setJsonSchema(java.lang.Object jsonSchema)
-
withJsonSchema
public Input withJsonSchema(java.lang.Object jsonSchema)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-