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(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.
|
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.
|
String |
getTermsOfService()
Returns the URL to the Terms of Service for the API for this instance of Info.
|
String |
getTitle()
Returns the title for the application for this instance of Info
|
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(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(String termsOfService)
Sets this Info instance's URL to the Terms of Service for the API to the given String.
|
void |
setTitle(String title)
Sets this Info instance's title for the application to the given title.
|
void |
setVersion(String version)
Sets the version of the OpenAPI document for this instance of Info to the given version.
|
default Info |
termsOfService(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(String title)
Sets this Info instance's title for the application to the given title and returns this instance of Info
|
default Info |
version(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
String getTitle()
void setTitle(String title)
title
- the title of the applicationdefault Info title(String title)
title
- the title of the applicationString getDescription()
void setDescription(String description)
description
- a short description for the applicationdefault Info description(String description)
description
- a short description for the applicationString getTermsOfService()
void setTermsOfService(String termsOfService)
termsOfService
- the URL to the Terms of Service for the APIdefault Info termsOfService(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 APIString getVersion()
void setVersion(String version)
version
- the version of the OpenAPI documentCopyright © 2017 – 2020 Eclipse Foundation. All rights reserved.
Use is subject to license terms.