Class ImmutableEveliSources.Builder

java.lang.Object
io.digiexpress.eveli.envir.api.ImmutableEveliSources.Builder
Enclosing class:
ImmutableEveliSources

@NotThreadSafe public static final class ImmutableEveliSources.Builder extends Object
Builds instances of type ImmutableEveliSources. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder from(EveliEnvirClient.EveliSources instance)
      Fill a builder with attribute values from the provided EveliSources instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • stencil

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder stencil(StencilComposer.SiteState stencil)
      Initializes the value for the stencil attribute.
      Parameters:
      stencil - The value for stencil
      Returns:
      this builder for use in a chained invocation
    • wrench

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder wrench(AstTag wrench)
      Initializes the value for the wrench attribute.
      Parameters:
      wrench - The value for wrench
      Returns:
      this builder for use in a chained invocation
    • addDialob

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder addDialob(io.dialob.api.form.Form element)
      Adds one element to dialob list.
      Parameters:
      element - A dialob element
      Returns:
      this builder for use in a chained invocation
    • addDialob

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder addDialob(io.dialob.api.form.Form... elements)
      Adds elements to dialob list.
      Parameters:
      elements - An array of dialob elements
      Returns:
      this builder for use in a chained invocation
    • dialob

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder dialob(Iterable<? extends io.dialob.api.form.Form> elements)
      Sets or replaces all elements for dialob list.
      Parameters:
      elements - An iterable of dialob elements
      Returns:
      this builder for use in a chained invocation
    • addAllDialob

      @CanIgnoreReturnValue public final ImmutableEveliSources.Builder addAllDialob(Iterable<? extends io.dialob.api.form.Form> elements)
      Adds elements to dialob list.
      Parameters:
      elements - An iterable of dialob elements
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableEveliSources build()
      Builds a new ImmutableEveliSources.
      Returns:
      An immutable instance of EveliSources
      Throws:
      IllegalStateException - if any required attributes are missing