Class SwaggerAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder
org.apache.juneau.rest.annotation.SwaggerAnnotation.Builder
- Enclosing class:
SwaggerAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates a new@Swaggerobject initialized with this builder.Sets theSwagger.contact()property on this annotation.description(String... value) Sets theSwagger.description()property on this annotation.externalDocs(ExternalDocs value) Sets theSwagger.externalDocs()property on this annotation.Sets theSwagger.license()property on this annotation.Sets theSwagger.tags()property on this annotation.termsOfService(String... value) Sets theSwagger.termsOfService()property on this annotation.Sets theSwagger.title()property on this annotation.Sets theSwagger.value()property on this annotation.Sets theSwagger.version()property on this annotation.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Swaggerobject initialized with this builder.- Returns:
- A new
@Swaggerobject.
-
contact
Sets theSwagger.contact()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
description
Sets theSwagger.description()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
externalDocs
Sets theSwagger.externalDocs()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
license
Sets theSwagger.license()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
tags
Sets theSwagger.tags()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
termsOfService
Sets theSwagger.termsOfService()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
title
Sets theSwagger.title()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
value
Sets theSwagger.value()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
version
Sets theSwagger.version()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-