Package org.apache.juneau.http
Class ResponseAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.AnnotationObject.Builder
org.apache.juneau.http.ResponseAnnotation.Builder
- Enclosing class:
- ResponseAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates a new@Responseobject initialized with this builder.description(String... value) Sets the description property on this annotation.Sets theResponse.examples()property on this annotation.Sets theResponse.headers()property on this annotation.Sets theResponse.schema()property on this annotation.Sets theResponse.summary()property on this annotation.Methods inherited from class org.apache.juneau.commons.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Responseobject initialized with this builder.- Returns:
- A new
@Responseobject.
-
description
Sets the description property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
examples
Sets theResponse.examples()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
headers
Sets theResponse.headers()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
schema
Sets theResponse.schema()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
summary
Sets theResponse.summary()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
- Since:
- 10.0.0
-