Package org.apache.juneau.annotation
Class SwapAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationTBuilder<B>
org.apache.juneau.annotation.TargetedAnnotationTMFBuilder<SwapAnnotation.Builder>
org.apache.juneau.annotation.SwapAnnotation.Builder
- Enclosing class:
- SwapAnnotation
public static class SwapAnnotation.Builder
extends TargetedAnnotationTMFBuilder<SwapAnnotation.Builder>
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Instantiates a new@Swap
object initialized with this builder.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.annotation.TargetedAnnotationTMFBuilder
on, on
Methods inherited from class org.apache.juneau.annotation.TargetedAnnotationTBuilder
on, onClass
Methods inherited from class org.apache.juneau.annotation.TargetedAnnotationBuilder
on
Methods inherited from class org.apache.juneau.annotation.AnnotationBuilder
asThis, description
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Swap
object initialized with this builder.- Returns:
- A new
@Swap
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.
-