Class SwaggerAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.annotation.AnnotationObject.Builder
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 the 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.Methods inherited from class org.apache.juneau.commons.annotation.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Swaggerobject initialized with this builder.- Returns:
- A new
@Swaggerobject.
-
description
Sets the description property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
contact
Sets theSwagger.contact()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.
-