Class Input


  • @Generated("jsonschema2pojo")
    public class Input
    extends java.lang.Object
    InputPayload

    Description 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
      boolean equals​(java.lang.Object other)  
      java.lang.String getContentType()
      Content type of the input.
      java.lang.Object getJsonSchema()  
      java.lang.Boolean getRequired()
      If true, a body MUST be sent with a content-type, even if the body length is zero.
      int hashCode()  
      void setContentType​(java.lang.String contentType)
      Content type of the input.
      void setJsonSchema​(java.lang.Object jsonSchema)  
      void setRequired​(java.lang.Boolean required)
      If true, a body MUST be sent with a content-type, even if the body length is zero.
      java.lang.String toString()  
      Input withContentType​(java.lang.String contentType)  
      Input withJsonSchema​(java.lang.Object jsonSchema)  
      Input withRequired​(java.lang.Boolean required)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Input

        public Input()
    • 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:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object