Class Example
- java.lang.Object
-
- io.swagger.v3.oas.models.examples.Example
-
public class Example extends Object
Example- See Also:
- "https://github.com/OAI/OpenAPI-Specification/blob/3.0.4/versions/3.0.4.md#example-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#example-object"
-
-
Constructor Summary
Constructors Constructor Description Example()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Example$ref(String $ref)voidaddExtension(String name, Object value)voidaddExtension31(String name, Object value)Exampledescription(String description)booleanequals(Object o)Exampleextensions(Map<String,Object> extensions)ExampleexternalValue(String externalValue)Stringget$ref()StringgetDescription()returns the description property from a Example instance.Map<String,Object>getExtensions()StringgetExternalValue()returns the externalValue property from a Example instance.StringgetSummary()returns the summary property from a Example instance.ObjectgetValue()returns the value property from a Example instance.booleangetValueSetFlag()inthashCode()voidset$ref(String $ref)voidsetDescription(String description)voidsetExtensions(Map<String,Object> extensions)voidsetExternalValue(String externalValue)voidsetSummary(String summary)voidsetValue(Object value)voidsetValueSetFlag(boolean valueSetFlag)Examplesummary(String summary)StringtoString()Examplevalue(Object value)
-
-
-
Method Detail
-
getSummary
public String getSummary()
returns the summary property from a Example instance.- Returns:
- String summary
-
setSummary
public void setSummary(String summary)
-
getDescription
public String getDescription()
returns the description property from a Example instance.- Returns:
- String description
-
setDescription
public void setDescription(String description)
-
getValue
public Object getValue()
returns the value property from a Example instance.- Returns:
- Object value
-
setValue
public void setValue(Object value)
-
getExternalValue
public String getExternalValue()
returns the externalValue property from a Example instance.- Returns:
- String externalValue
-
setExternalValue
public void setExternalValue(String externalValue)
-
get$ref
public String get$ref()
-
set$ref
public void set$ref(String $ref)
-
getValueSetFlag
public boolean getValueSetFlag()
-
setValueSetFlag
public void setValueSetFlag(boolean valueSetFlag)
-
-