Interface Annotation.Builder
- Enclosing interface:
- Annotation
public static interface Annotation.Builder
Creates an instance of
Annotation.-
Method Summary
Modifier and TypeMethodDescriptionappendReplies(List<Annotation> replies) Optional: Specifies replies to append to this annotation.build()Retrieves a completedAnnotation.withPlacemark(AnnotationPlacemark placemark) Conditional: Sets theAnnotationPlacemark.withReferences(List<AnnotationReference> references) Optional: Sets the references associated with this annotation.withTypeName(String typeName) Conditional: Sets the name of the annotation type of this annotation.Conditional: Specifies the value of a field with the given API name.
-
Method Details
-
appendReplies
Optional: Specifies replies to append to this annotation. Not all annotation types allow replies.- Parameters:
replies- the non-null list of replies to add to this annotation- Returns:
- this
Annotation.Builder
-
withPlacemark
Conditional: Sets theAnnotationPlacemark. Required if the annotation is not a reply. If the annotation is a reply, you cannot specify a placemark, but Vault will assign one when placing the reply on its parent.- Parameters:
placemark- the non-null annotation placemark- Returns:
- this
Annotation.Builder
-
withReferences
Optional: Sets the references associated with this annotation. Requirements for references vary depending on annotation type.- Parameters:
references- the references associated with this annotation- Returns:
- this
Annotation.Builder
-
withTypeName
Conditional: Sets the name of the annotation type of this annotation. Required when creating annotations, not allowed when updating annotations.- Parameters:
typeName- the name of the annotation type of this annotation. Cannot be null or empty- Returns:
- this
Annotation.Builder
-
withValue
Conditional: Specifies the value of a field with the given API name. The value class must match the Java class that backs theAnnotationValueTypeof the field. Setting a value fordocument_version_id__sysis required when creating an annotation.- Parameters:
fieldName- the name of the field to set value onvalue- the new value to set for the field. To remove an existing value, set to null.- Returns:
- this
Annotation.Builder
-
build
Annotation build()Retrieves a completedAnnotation.- Returns:
- the completed
Annotation
-