public class InfoObjectBuilder extends Object
Constructor and Description |
---|
InfoObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
InfoObject |
build() |
static InfoObjectBuilder |
infoObject()
Creates a builder for a
InfoObject |
InfoObjectBuilder |
withContact(ContactObject contact) |
InfoObjectBuilder |
withDescription(String description) |
InfoObjectBuilder |
withLicense(LicenseObject license) |
InfoObjectBuilder |
withTermsOfService(URI termsOfService) |
InfoObjectBuilder |
withTitle(String title) |
InfoObjectBuilder |
withVersion(String version) |
public InfoObjectBuilder withTitle(String title)
title
- REQUIRED. The title of the application. Default value is API Documentation
public InfoObjectBuilder withDescription(String description)
description
- A short description of the application. CommonMark syntax
MAY be used for rich text representation.public InfoObjectBuilder withTermsOfService(URI termsOfService)
termsOfService
- A URL to the Terms of Service for the API.public InfoObjectBuilder withContact(ContactObject contact)
contact
- The contact information for the exposed API.public InfoObjectBuilder withLicense(LicenseObject license)
license
- The license information for the exposed API.public InfoObjectBuilder withVersion(String version)
version
- REQUIRED. The version of the OpenAPI document. Default value is 1.0
public InfoObject build()
public static InfoObjectBuilder infoObject()
InfoObject
Copyright © 2017–2020. All rights reserved.