Interface AnnotationValueSetRequest.Builder<T>
- Type Parameters:
T- the Java class that backs the value type of the field
- Enclosing interface:
- AnnotationValueSetRequest<T>
public static interface AnnotationValueSetRequest.Builder<T>
Creates an instance of
AnnotationValueSetRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and retrieves a completedAnnotationValueSetRequest.Required: Sets the name of the annotation field to retrieve the value set for.Required: Sets the name of the annotation type associated with the field to retrieve the value set for.
-
Method Details
-
withField
Required: Sets the name of the annotation field to retrieve the value set for.- Parameters:
field- the name of the annotation field. Cannot be null or empty.- Returns:
- this
AnnotationValueSetRequest.Builder
-
withType
Required: Sets the name of the annotation type associated with the field to retrieve the value set for.- Parameters:
type- the name of the annotation type. Cannot be null or empty.- Returns:
- this
AnnotationValueSetRequest.Builder
-
build
AnnotationValueSetRequest<T> build()Validates and retrieves a completedAnnotationValueSetRequest.- Returns:
- the completed
AnnotationValueSetRequest
-