Interface Annotations.Builder

Enclosing interface:
Annotations

public static interface Annotations.Builder
Builder for resource annotations
  • Method Details

    • setAudience

      Annotations.Builder setAudience(Role... roles)
      Sets the intended audience for the content
      Parameters:
      roles - the audience roles
      Returns:
      this builder
    • setAudience

      Annotations.Builder setAudience(Set<Role> roles)
      Sets the intended audience for the content
      Parameters:
      roles - the set of audience roles
      Returns:
      this builder
    • setPriority

      Annotations.Builder setPriority(double priority)
      Sets the priority of the content to indicate its importance.

      1.0 indicates the greatest importance, 0.0 indicates the least importance

      Parameters:
      priority - the priority, between 1.0 and 0.0
      Returns:
      this builder
    • setLastModified

      Annotations.Builder setLastModified(Instant lastModified)
      Sets when the content was last modified.
      Parameters:
      lastModified - the last modified timestamp
      Returns:
      this builder
    • build

      Annotations build()
      Builds the resource annotations
      Returns:
      the new annotations object