Package io.swagger.v3.oas.models.headers
Class Header
- java.lang.Object
-
- io.swagger.v3.oas.models.headers.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"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeader.StyleEnumGets or Sets style
-
Constructor Summary
Constructors Constructor Description Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Header$ref(String $ref)HeaderaddExample(String key, Example examplesItem)voidaddExtension(String name, Object value)Headercontent(Content content)Headerdeprecated(Boolean deprecated)Headerdescription(String description)booleanequals(Object o)Headerexample(Object example)Headerexamples(Map<String,Example> examples)Headerexplode(Boolean explode)Headerextensions(Map<String,Object> extensions)Stringget$ref()ContentgetContent()returns the content property from a Header instance.BooleangetDeprecated()returns the deprecated property from a Header instance.StringgetDescription()returns the description property from a Header instance.ObjectgetExample()returns the example property from a Header instance.Map<String,Example>getExamples()returns the examples property from a Header instance.BooleangetExplode()returns the explode property from a Header instance.Map<String,Object>getExtensions()BooleangetRequired()returns the required property from a Header instance.SchemagetSchema()returns the schema property from a Header instance.Header.StyleEnumgetStyle()returns the style property from a Header instance.inthashCode()Headerrequired(Boolean required)Headerschema(Schema schema)voidset$ref(String $ref)voidsetContent(Content content)voidsetDeprecated(Boolean deprecated)voidsetDescription(String description)voidsetExample(Object example)voidsetExamples(Map<String,Example> examples)voidsetExplode(Boolean explode)voidsetExtensions(Map<String,Object> extensions)voidsetRequired(Boolean required)voidsetSchema(Schema schema)voidsetStyle(Header.StyleEnum style)Headerstyle(Header.StyleEnum style)StringtoString()
-
-
-
Method Detail
-
getDescription
public String getDescription()
returns the description property from a Header instance.- Returns:
- String description
-
setDescription
public void setDescription(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
-
setStyle
public void setStyle(Header.StyleEnum style)
-
style
public Header style(Header.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)
-
get$ref
public String get$ref()
-
set$ref
public void set$ref(String $ref)
-
-