Class JsonSchemaOutputObjectProperty

    • Constructor Detail

      • JsonSchemaOutputObjectProperty

        public JsonSchemaOutputObjectProperty()
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the description of the property. This is optional, but may be useful to aid the prompt service provider in understanding the purpose of the property.
        Returns:
        The description of the property.
      • setDescription

        public void setDescription​(String description)
        Sets the description of the property. This is optional, but may be useful to aid the prompt service provider in understanding the purpose of the property.
        Parameters:
        description - The description of the property.
      • getName

        public String getName()
        Gets the name of the property the JSON object should have.
        Returns:
        The name of the property.
      • setName

        public void setName​(String name)
        Sets the name of the property the JSON object should have.
        Parameters:
        name - The name of the property.
      • setType

        public void setType​(EJsonSchemaOutputPropertyType type)
        Sets the data type of the property.
        Parameters:
        type - The data type of the property.
      • isRequired

        public boolean isRequired()
        Whether the property is required or optional. An optional property may be omitted in the JSON object or set to null.
        Returns:
        True if the property is required, false if it is optional.
      • setRequired

        public void setRequired​(boolean required)
        Sets whether the property is required or optional. An optional property may be omitted in the JSON object or set to null.
        Parameters:
        required - True if the property is required, false if it is optional.