Class Parameter

  • Direct Known Subclasses:
    CookieParameter, HeaderParameter, PathParameter, QueryParameter

    public class Parameter
    extends Object
    Parameter
    See Also:
    "https://github.com/OAI/OpenAPI-Specification/blob/3.0.1/versions/3.0.1.md#parameterObject", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.0/versions/3.1.0.md#parameterObject"
    • Constructor Detail

      • Parameter

        public Parameter()
    • Method Detail

      • getName

        public String getName()
        returns the name property from a Parameter instance.
        Returns:
        String name
      • setName

        public void setName​(String name)
      • getIn

        public String getIn()
        returns the in property from a Parameter instance.
        Returns:
        String in
      • setIn

        public void setIn​(String in)
      • getDescription

        public String getDescription()
        returns the description property from a Parameter instance.
        Returns:
        String description
      • setDescription

        public void setDescription​(String description)
      • getRequired

        public Boolean getRequired()
        returns the required property from a Parameter instance.
        Returns:
        Boolean required
      • setRequired

        public void setRequired​(Boolean required)
      • getDeprecated

        public Boolean getDeprecated()
        returns the deprecated property from a Parameter instance.
        Returns:
        Boolean deprecated
      • setDeprecated

        public void setDeprecated​(Boolean deprecated)
      • getAllowEmptyValue

        public Boolean getAllowEmptyValue()
        returns the allowEmptyValue property from a Parameter instance.
        Returns:
        Boolean allowEmptyValue
      • setAllowEmptyValue

        public void setAllowEmptyValue​(Boolean allowEmptyValue)
      • allowEmptyValue

        public Parameter allowEmptyValue​(Boolean allowEmptyValue)
      • getStyle

        public Parameter.StyleEnum getStyle()
        returns the style property from a Parameter instance.
        Returns:
        StyleEnum style
      • getExplode

        public Boolean getExplode()
        returns the explode property from a Parameter instance.
        Returns:
        Boolean explode
      • setExplode

        public void setExplode​(Boolean explode)
      • getAllowReserved

        public Boolean getAllowReserved()
        returns the allowReserved property from a Parameter instance.
        Returns:
        Boolean allowReserved
      • setAllowReserved

        public void setAllowReserved​(Boolean allowReserved)
      • getSchema

        public Schema getSchema()
        returns the schema property from a Parameter instance.
        Returns:
        Schema schema
      • setSchema

        public void setSchema​(Schema schema)
      • getExamples

        public Map<String,​Example> getExamples()
        returns the examples property from a Parameter instance.
        Returns:
        Map<String, Example> examples
      • getExample

        public Object getExample()
        returns the example property from a Parameter instance.
        Returns:
        String example
      • setExample

        public void setExample​(Object example)
      • getContent

        public Content getContent()
        returns the content property from a Parameter instance.
        Returns:
        Content content
      • setContent

        public void setContent​(Content content)
      • get$ref

        public String get$ref()
      • set$ref

        public void set$ref​(String $ref)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addExtension

        public void addExtension​(String name,
                                 Object value)
      • addExtension31

        public void addExtension31​(String name,
                                   Object value)
      • setExtensions

        public void setExtensions​(Map<String,​Object> extensions)