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 newAnnotationPointinstance.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.Builderinstance.
-
annotationType
Sets the annotation type.- Parameters:
annotationType- The annotation type to set.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
author
Sets the author of the annotation.- Parameters:
author- The author to set.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
startTime
Sets the start time of the annotation.- Parameters:
startTime- TheInstantstart time to set.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
endTime
Sets the end time of the annotation.- Parameters:
endTime- TheInstantend time to set, or null if not applicable.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
source
Sets the source of the annotation.- Parameters:
source- TheQualifiedPathsource to set.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
identifier
Sets the identifier of the annotation.- Parameters:
identifier- TheUUIDidentifier to set.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
identifier
Sets the identifier of the annotation from a string representation.- Parameters:
identifier- The string representation of theUUIDidentifier to set.- Returns:
- The current
AnnotationPoint.Builderinstance. - Throws:
IllegalArgumentException- If the string is not a valid UUID.
-
lastUpdated
Sets the last updated time of the annotation.- Parameters:
lastUpdated- TheInstantlast updated time to set, or null if not applicable.- Returns:
- The current
AnnotationPoint.Builderinstance.
-
build
Builds a newAnnotationPointinstance.- Returns:
- A new
AnnotationPoint. - Throws:
NullPointerException- If any required field is null.
-