Package io.swagger.v3.oas.models.info
Class Info
- java.lang.Object
-
- io.swagger.v3.oas.models.info.Info
-
public class Info extends Object
- See Also:
- "https://github.com/OAI/OpenAPI-Specification/blob/3.0.4/versions/3.0.4.md#info-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#info-object"
-
-
Constructor Summary
Constructors Constructor Description Info()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtension(String name, Object value)voidaddExtension31(String name, Object value)Infocontact(Contact contact)Infodescription(String description)booleanequals(Object o)Infoextensions(Map<String,Object> extensions)ContactgetContact()returns the contact property from a Info instance.StringgetDescription()returns the description property from a Info instance.Map<String,Object>getExtensions()LicensegetLicense()returns the license property from a Info instance.StringgetSummary()returns the summary property from a Info instance.StringgetTermsOfService()returns the termsOfService property from a Info instance.StringgetTitle()returns the title property from a Info instance.StringgetVersion()returns the version property from a Info instance.inthashCode()Infolicense(License license)voidsetContact(Contact contact)voidsetDescription(String description)voidsetExtensions(Map<String,Object> extensions)voidsetLicense(License license)voidsetSummary(String summary)voidsetTermsOfService(String termsOfService)voidsetTitle(String title)voidsetVersion(String version)Infosummary(String summary)InfotermsOfService(String termsOfService)Infotitle(String title)StringtoString()Infoversion(String version)
-
-
-
Method Detail
-
getTitle
public String getTitle()
returns the title property from a Info instance.- Returns:
- String title
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
returns the description property from a Info instance.- Returns:
- String description
-
setDescription
public void setDescription(String description)
-
getTermsOfService
public String getTermsOfService()
returns the termsOfService property from a Info instance.- Returns:
- String termsOfService
-
setTermsOfService
public void setTermsOfService(String termsOfService)
-
getContact
public Contact getContact()
returns the contact property from a Info instance.- Returns:
- Contact contact
-
setContact
public void setContact(Contact contact)
-
getLicense
public License getLicense()
returns the license property from a Info instance.- Returns:
- License license
-
setLicense
public void setLicense(License license)
-
getVersion
public String getVersion()
returns the version property from a Info instance.- Returns:
- String version
-
setVersion
public void setVersion(String version)
-
getSummary
public String getSummary()
returns the summary property from a Info instance.- Returns:
- String
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setSummary
public void setSummary(String summary)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
-