Package org.apache.juneau.marshall
Class SwapAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.AnnotationObject.Builder
org.apache.juneau.marshall.SwapAnnotation.Builder
- Enclosing class:
- SwapAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates a new@Swapobject initialized with this builder.description(String... value) Sets the description property on this annotation.Sets theSwap.impl()property on this annotation.mediaTypes(String... value) Sets theSwap.mediaTypes()property on this annotation.Sets theSwap.template()property on this annotation.Sets theSwap.value()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@Swapobject initialized with this builder.- Returns:
- A new
@Swapobject.
-
description
Sets the description property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
impl
Sets theSwap.impl()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
mediaTypes
Sets theSwap.mediaTypes()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
template
Sets theSwap.template()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
value
Sets theSwap.value()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-