java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.thing.Thing.Builder
Direct Known Subclasses:
ContactPoint.Builder, Organization.Builder, Person.Builder
Enclosing class:
Thing

public static class Thing.Builder extends Object
Builder for Thing instances.
  • Constructor Details

    • Builder

      public Builder()
      Creates a new builder with all fields unset.
  • Method Details

    • type

      public Thing.Builder type(String type)
      Sets the thing type.
      Parameters:
      type - the thing type
      Returns:
      this builder
    • name

      public Thing.Builder name(String name)
      Sets the thing name.
      Parameters:
      name - the thing name
      Returns:
      this builder
    • url

      public Thing.Builder url(String url)
      Sets the thing URL.
      Parameters:
      url - the URL
      Returns:
      this builder
    • thumbnail

      public Thing.Builder thumbnail(Thumbnail thumbnail)
      Sets the thumbnail.
      Parameters:
      thumbnail - the thumbnail
      Returns:
      this builder
    • build

      public Thing build()
      Builds a new Thing from the current builder state.
      Returns:
      a new Thing instance