Class ImmutableTypeSet.Builder

java.lang.Object
dk.mada.jaxrs.model.types.ImmutableTypeSet.Builder
Enclosing class:
ImmutableTypeSet

@Generated(from="TypeSet", generator="Immutables") public static final class ImmutableTypeSet.Builder extends Object
Builds instances of type ImmutableTypeSet. 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

      public final ImmutableTypeSet.Builder from(TypeContainer instance)
      Fill a builder with attribute values from the provided dk.mada.jaxrs.model.types.TypeContainer instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableTypeSet.Builder from(TypeSet instance)
      Fill a builder with attribute values from the provided dk.mada.jaxrs.model.types.TypeSet instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • innerType

      public final ImmutableTypeSet.Builder innerType(Type innerType)
      Initializes the value for the innerType attribute.
      Parameters:
      innerType - The value for innerType
      Returns:
      this builder for use in a chained invocation
    • typeNames

      public final ImmutableTypeSet.Builder typeNames(TypeNames typeNames)
      Initializes the value for the typeNames attribute.
      Parameters:
      typeNames - The value for typeNames
      Returns:
      this builder for use in a chained invocation
    • build

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