public interface Info extends Constructible, Extensible
Modifier and Type | Method and Description |
---|---|
Info |
contact(Contact contact)
Sets this Info instance's contact information for the exposed API and returns this instance of Info.
|
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.
|
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.
|
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.
|
Info |
title(String title)
Sets this Info instance's title for the application to the given title and returns this instance of Info
|
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, getExtensions, setExtensions
String getTitle()
void setTitle(String title)
title
- the title of the applicationInfo title(String title)
title
- the title of the applicationString getDescription()
void setDescription(String description)
description
- a short description for the applicationInfo 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 APIInfo 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 APIInfo contact(Contact contact)
contact
- the contact information for the exposed APILicense getLicense()
void setLicense(License license)
license
- the license information for the exposed APIInfo license(License license)
license
- the license information for the exposed APIString getVersion()
void setVersion(String version)
version
- the version of the OpenAPI documentCopyright © 2017–2018 Eclipse MicroProfile. All rights reserved.