Class Parameter
- java.lang.Object
-
- io.swagger.v3.oas.models.parameters.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.4/versions/3.0.4.md#parameter-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#parameter-object"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameter.StyleEnumGets or Sets style
-
Constructor Summary
Constructors Constructor Description Parameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameter$ref(String $ref)ParameteraddExample(String key, Example examplesItem)voidaddExtension(String name, Object value)voidaddExtension31(String name, Object value)ParameterallowEmptyValue(Boolean allowEmptyValue)ParameterallowReserved(Boolean allowReserved)Parametercontent(Content content)Parameterdeprecated(Boolean deprecated)Parameterdescription(String description)booleanequals(Object o)Parameterexample(Object example)Parameterexamples(Map<String,Example> examples)Parameterexplode(Boolean explode)Parameterextensions(Map<String,Object> extensions)Stringget$ref()BooleangetAllowEmptyValue()returns the allowEmptyValue property from a Parameter instance.BooleangetAllowReserved()returns the allowReserved property from a Parameter instance.ContentgetContent()returns the content property from a Parameter instance.BooleangetDeprecated()returns the deprecated property from a Parameter instance.StringgetDescription()returns the description property from a Parameter instance.ObjectgetExample()returns the example property from a Parameter instance.Map<String,Example>getExamples()returns the examples property from a Parameter instance.BooleangetExplode()returns the explode property from a Parameter instance.Map<String,Object>getExtensions()StringgetIn()returns the in property from a Parameter instance.StringgetName()returns the name property from a Parameter instance.BooleangetRequired()returns the required property from a Parameter instance.SchemagetSchema()returns the schema property from a Parameter instance.Parameter.StyleEnumgetStyle()returns the style property from a Parameter instance.inthashCode()Parameterin(String in)Parametername(String name)Parameterrequired(Boolean required)Parameterschema(Schema schema)voidset$ref(String $ref)voidsetAllowEmptyValue(Boolean allowEmptyValue)voidsetAllowReserved(Boolean allowReserved)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)voidsetIn(String in)voidsetName(String name)voidsetRequired(Boolean required)voidsetSchema(Schema schema)voidsetStyle(Parameter.StyleEnum style)Parameterstyle(Parameter.StyleEnum style)StringtoString()
-
-
-
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)
-
getStyle
public Parameter.StyleEnum getStyle()
returns the style property from a Parameter instance.- Returns:
- StyleEnum style
-
setStyle
public void setStyle(Parameter.StyleEnum style)
-
style
public Parameter style(Parameter.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)
-
-