Class McpContentAnnotations.Builder
java.lang.Object
com.soklet.McpContentAnnotations.Builder
- Enclosing class:
McpContentAnnotations
Mutable builder for immutable
McpContentAnnotations.- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionReplaces the intended audience.build()lastModified(@NonNull Instant lastModified) Sets the last-modified time.Sets a content priority.
-
Method Details
-
audience
Replaces the intended audience. Passing no roles clears the intended audience.- Parameters:
audience- audience roles- Returns:
- this builder
- Throws:
NullPointerException- if the array or any role is null
-
priority
Sets a content priority.- Parameters:
priority- priority in the inclusive range0.0..1.0- Returns:
- this builder
- Throws:
NullPointerException- ifpriorityis nullIllegalArgumentException- if the value is non-finite or outside the permitted range
-
lastModified
Sets the last-modified time.- Parameters:
lastModified- last-modified time- Returns:
- this builder
-
build
- Returns:
- immutable content annotations
-