Class AnnotationPoint.Builder
java.lang.Object
com.inductiveautomation.historian.common.model.data.AnnotationPoint.Builder
- Enclosing class:
AnnotationPoint
Builder for
AnnotationPoint.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationType(String annotationType) Sets the annotation type.Sets the author.build()Builds the point.deleted(boolean deleted) Sets whether the annotation is soft-deleted; defaultfalse.Sets the end time.identifier(String identifier) Sets the identifier from its string form.identifier(UUID identifier) Sets the identifier.lastUpdated(@Nullable Instant lastUpdated) Sets the last-updated time.Sets the notes.source(QualifiedPath source) Sets the source.Sets the start time.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
notes
Sets the notes.- Parameters:
notes- the notes.- Returns:
- this builder.
-
annotationType
Sets the annotation type.- Parameters:
annotationType- the type.- Returns:
- this builder.
-
author
Sets the author.- Parameters:
author- the author.- Returns:
- this builder.
-
startTime
Sets the start time.- Parameters:
startTime- the start time.- Returns:
- this builder.
-
endTime
Sets the end time.- Parameters:
endTime- the end time, ornullif none.- Returns:
- this builder.
-
source
Sets the source.- Parameters:
source- the source.- Returns:
- this builder.
-
identifier
Sets the identifier.- Parameters:
identifier- the id.- Returns:
- this builder.
-
identifier
Sets the identifier from its string form.- Parameters:
identifier- the id as a UUID string.- Returns:
- this builder.
- Throws:
IllegalArgumentException- if the string is not a valid UUID.
-
lastUpdated
Sets the last-updated time.- Parameters:
lastUpdated- the time, ornullif none.- Returns:
- this builder.
-
deleted
Sets whether the annotation is soft-deleted; defaultfalse.- Parameters:
deleted- whether it is soft-deleted.- Returns:
- this builder.
-
build
Builds the point.- Returns:
- the new point.
- Throws:
NullPointerException- if a required field is null.
-