Class ImmutableCtxInterface.Builder

java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxInterface.Builder
Enclosing class:
ImmutableCtxInterface

@Generated(from="CtxInterface", generator="Immutables") public static final class ImmutableCtxInterface.Builder extends Object
Builds instances of type ImmutableCtxInterface. 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 ImmutableCtxInterface.Builder from(CtxInterface instance)
      Fill a builder with attribute values from the provided CtxInterface instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • appName

      public final ImmutableCtxInterface.Builder appName(String appName)
      Initializes the value for the appName attribute.
      Parameters:
      appName - The value for appName
      Returns:
      this builder for use in a chained invocation
    • version

      public final ImmutableCtxInterface.Builder version(String version)
      Initializes the value for the version attribute.
      Parameters:
      version - The value for version
      Returns:
      this builder for use in a chained invocation
    • appDescription

      public final ImmutableCtxInterface.Builder appDescription(String appDescription)
      Initializes the optional value appDescription to appDescription.
      Parameters:
      appDescription - The value for appDescription
      Returns:
      this builder for chained invocation
    • appDescription

      public final ImmutableCtxInterface.Builder appDescription(Optional<String> appDescription)
      Initializes the optional value appDescription to appDescription.
      Parameters:
      appDescription - The value for appDescription
      Returns:
      this builder for use in a chained invocation
    • infoEmail

      public final ImmutableCtxInterface.Builder infoEmail(String infoEmail)
      Initializes the optional value infoEmail to infoEmail.
      Parameters:
      infoEmail - The value for infoEmail
      Returns:
      this builder for chained invocation
    • infoEmail

      public final ImmutableCtxInterface.Builder infoEmail(Optional<String> infoEmail)
      Initializes the optional value infoEmail to infoEmail.
      Parameters:
      infoEmail - The value for infoEmail
      Returns:
      this builder for use in a chained invocation
    • imports

      public final ImmutableCtxInterface.Builder imports(SortedSet<String> imports)
      Initializes the value for the imports attribute.
      Parameters:
      imports - The value for imports
      Returns:
      this builder for use in a chained invocation
    • description

      public final ImmutableCtxInterface.Builder description(String description)
      Initializes the optional value description to description.
      Parameters:
      description - The value for description
      Returns:
      this builder for chained invocation
    • description

      public final ImmutableCtxInterface.Builder description(Optional<String> description)
      Initializes the optional value description to description.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • packageName

      public final ImmutableCtxInterface.Builder packageName(String packageName)
      Initializes the value for the packageName attribute.
      Parameters:
      packageName - The value for packageName
      Returns:
      this builder for use in a chained invocation
    • classname

      public final ImmutableCtxInterface.Builder classname(String classname)
      Initializes the value for the classname attribute.
      Parameters:
      classname - The value for classname
      Returns:
      this builder for use in a chained invocation
    • generatedAnnotationClass

      public final ImmutableCtxInterface.Builder generatedAnnotationClass(String generatedAnnotationClass)
      Initializes the value for the generatedAnnotationClass attribute.
      Parameters:
      generatedAnnotationClass - The value for generatedAnnotationClass
      Returns:
      this builder for use in a chained invocation
    • generatorClass

      public final ImmutableCtxInterface.Builder generatorClass(String generatorClass)
      Initializes the value for the generatorClass attribute.
      Parameters:
      generatorClass - The value for generatorClass
      Returns:
      this builder for use in a chained invocation
    • generatedDate

      public final ImmutableCtxInterface.Builder generatedDate(String generatedDate)
      Initializes the optional value generatedDate to generatedDate.
      Parameters:
      generatedDate - The value for generatedDate
      Returns:
      this builder for chained invocation
    • generatedDate

      public final ImmutableCtxInterface.Builder generatedDate(Optional<String> generatedDate)
      Initializes the optional value generatedDate to generatedDate.
      Parameters:
      generatedDate - The value for generatedDate
      Returns:
      this builder for use in a chained invocation
    • implementations

      public final ImmutableCtxInterface.Builder implementations(String implementations)
      Initializes the value for the implementations attribute.
      Parameters:
      implementations - The value for implementations
      Returns:
      this builder for use in a chained invocation
    • renderSchema

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

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