Class Header


  • public class Header
    extends Object
    Header
    See Also:
    "https://github.com/OAI/OpenAPI-Specification/blob/3.0.4/versions/3.0.4.md#header-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#header-object"
    • Constructor Detail

      • Header

        public Header()
    • Method Detail

      • getDescription

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

        public void setDescription​(String description)
      • description

        public Header description​(String description)
      • getRequired

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

        public void setRequired​(Boolean required)
      • getDeprecated

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

        public void setDeprecated​(Boolean deprecated)
      • getStyle

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

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

        public void setExplode​(Boolean explode)
      • getSchema

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

        public void setSchema​(Schema schema)
      • getExamples

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

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

        public void setExample​(Object example)
      • getContent

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

        public void setContent​(Content content)
      • hashCode

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

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

        public void setExtensions​(Map<String,​Object> extensions)
      • get$ref

        public String get$ref()
      • set$ref

        public void set$ref​(String $ref)