Class AnnotationPoint.Builder
java.lang.Object
com.inductiveautomation.historian.common.model.data.AnnotationPoint.Builder
- Enclosing class:
- AnnotationPoint
A builder class for constructing
AnnotationPoint
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationType
(String annotationType) Sets the annotation type.Sets the author of the annotation.build()
Builds a newAnnotationPoint
instance.Sets the end time of the annotation.identifier
(String identifier) Sets the identifier of the annotation from a string representation.identifier
(UUID identifier) Sets the identifier of the annotation.lastUpdated
(@Nullable Instant lastUpdated) Sets the last updated time of the annotation.Sets the notes for the annotation.source
(QualifiedPath source) Sets the source of the annotation.Sets the start time of the annotation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
notes
Sets the notes for the annotation.- Parameters:
notes
- The notes to set.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
annotationType
Sets the annotation type.- Parameters:
annotationType
- The annotation type to set.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
author
Sets the author of the annotation.- Parameters:
author
- The author to set.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
startTime
Sets the start time of the annotation.- Parameters:
startTime
- TheInstant
start time to set.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
endTime
Sets the end time of the annotation.- Parameters:
endTime
- TheInstant
end time to set, or null if not applicable.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
source
Sets the source of the annotation.- Parameters:
source
- TheQualifiedPath
source to set.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
identifier
Sets the identifier of the annotation.- Parameters:
identifier
- TheUUID
identifier to set.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
identifier
Sets the identifier of the annotation from a string representation.- Parameters:
identifier
- The string representation of theUUID
identifier to set.- Returns:
- The current
AnnotationPoint.Builder
instance. - Throws:
IllegalArgumentException
- If the string is not a valid UUID.
-
lastUpdated
Sets the last updated time of the annotation.- Parameters:
lastUpdated
- TheInstant
last updated time to set, or null if not applicable.- Returns:
- The current
AnnotationPoint.Builder
instance.
-
build
Builds a newAnnotationPoint
instance.- Returns:
- A new
AnnotationPoint
. - Throws:
NullPointerException
- If any required field is null.
-