Class CommentBuilder

java.lang.Object
io.vertigo.social.comment.CommentBuilder
All Implemented Interfaces:
io.vertigo.core.lang.Builder<Comment>

public final class CommentBuilder extends Object implements io.vertigo.core.lang.Builder<Comment>
Author:
pchretien
  • Method Details

    • withAuthor

      public CommentBuilder withAuthor(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> author)
      Parameters:
      author - Author account
      Returns:
      this builder
    • withUuid

      public CommentBuilder withUuid(UUID uuid)
      Parameters:
      uuid - UUID identifier
      Returns:
      this builder
    • withMsg

      public CommentBuilder withMsg(String msg)
      Parameters:
      msg - Comment
      Returns:
      this builder
    • withCreationDate

      public CommentBuilder withCreationDate(Instant creationInstant)
      Parameters:
      creationInstant - creation Instant
      Returns:
      this builder
    • withLastModified

      public CommentBuilder withLastModified(Instant lastModified)
      Parameters:
      lastModified - Last modify date time
      Returns:
      this builder
    • build

      public Comment build()
      Specified by:
      build in interface io.vertigo.core.lang.Builder<Comment>