public interface Info extends Constructible, Extensible<Info>
Modifier and Type | Method and Description |
---|---|
default Info |
contact(Contact contact)
Sets this Info instance's contact information for the exposed API and returns this instance of Info.
|
default Info |
description(java.lang.String description)
Sets this Info instance's description for the application to the given description and returns this instance of
Info.
|
Contact |
getContact()
Returns the contact information for the exposed API from this Info instance.
|
java.lang.String |
getDescription()
Returns a short description for the application for this Info instance.
|
License |
getLicense()
Returns the license information for the exposed API from this Info instance.
|
java.lang.String |
getTermsOfService()
Returns the URL to the Terms of Service for the API for this instance of Info.
|
java.lang.String |
getTitle()
Returns the title for the application for this instance of Info
|
java.lang.String |
getVersion()
Returns the version of the OpenAPI document for this Info instance.
|
default Info |
license(License license)
Sets this Info's license information for the exposed API and returns this instance of Info.
|
void |
setContact(Contact contact)
Sets this Info instance's contact information for the exposed API.
|
void |
setDescription(java.lang.String description)
Sets this Info instance's description for the application to the given description.
|
void |
setLicense(License license)
Sets this Info's license information for the exposed API.
|
void |
setTermsOfService(java.lang.String termsOfService)
Sets this Info instance's URL to the Terms of Service for the API to the given String.
|
void |
setTitle(java.lang.String title)
Sets this Info instance's title for the application to the given title.
|
void |
setVersion(java.lang.String version)
Sets the version of the OpenAPI document for this instance of Info to the given version.
|
default Info |
termsOfService(java.lang.String termsOfService)
Sets this Info instance's URL to the Terms of Service for the API to the given String and returns this instance
of Info.
|
default Info |
title(java.lang.String title)
Sets this Info instance's title for the application to the given title and returns this instance of Info
|
default Info |
version(java.lang.String version)
Sets the version of the OpenAPI document for this instance of Info to the given version and returns this instance
of Info
|
addExtension, extensions, getExtensions, removeExtension, setExtensions
java.lang.String getTitle()
void setTitle(java.lang.String title)
title
- the title of the applicationdefault Info title(java.lang.String title)
title
- the title of the applicationjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- a short description for the applicationdefault Info description(java.lang.String description)
description
- a short description for the applicationjava.lang.String getTermsOfService()
void setTermsOfService(java.lang.String termsOfService)
termsOfService
- the URL to the Terms of Service for the APIdefault Info termsOfService(java.lang.String termsOfService)
termsOfService
- the URL to the Terms of Service for the APIContact getContact()
void setContact(Contact contact)
contact
- the contact information for the exposed APIdefault Info contact(Contact contact)
contact
- the contact information for the exposed APILicense getLicense()
void setLicense(License license)
license
- the license information for the exposed APIdefault Info license(License license)
license
- the license information for the exposed APIjava.lang.String getVersion()
void setVersion(java.lang.String version)
version
- the version of the OpenAPI documentdefault Info version(java.lang.String version)
version
- the version of the OpenAPI document