Class ImmutableCtxDto.Builder

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

@Generated(from="CtxDto", generator="Immutables") public static final class ImmutableCtxDto.Builder extends Object
Builds instances of type ImmutableCtxDto. 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 ImmutableCtxDto.Builder from(CtxDto instance)
      Fill a builder with attribute values from the provided CtxDto 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
    • appName

      public final ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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
    • classVarName

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

      public final ImmutableCtxDto.Builder addVars(CtxProperty element)
      Adds one element to vars list.
      Parameters:
      element - A vars element
      Returns:
      this builder for use in a chained invocation
    • addVars

      public final ImmutableCtxDto.Builder addVars(CtxProperty... elements)
      Adds elements to vars list.
      Parameters:
      elements - An array of vars elements
      Returns:
      this builder for use in a chained invocation
    • vars

      public final ImmutableCtxDto.Builder vars(Iterable<? extends CtxProperty> elements)
      Sets or replaces all elements for vars list.
      Parameters:
      elements - An iterable of vars elements
      Returns:
      this builder for use in a chained invocation
    • addAllVars

      public final ImmutableCtxDto.Builder addAllVars(Iterable<? extends CtxProperty> elements)
      Adds elements to vars list.
      Parameters:
      elements - An iterable of vars elements
      Returns:
      this builder for use in a chained invocation
    • isRecord

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

      public final ImmutableCtxDto.Builder allowableValues(@Nullable CtxEnum allowableValues)
      Initializes the value for the allowableValues attribute.
      Parameters:
      allowableValues - The value for allowableValues (can be null)
      Returns:
      this builder for use in a chained invocation
    • dataType

      public final ImmutableCtxDto.Builder dataType(@Nullable String dataType)
      Initializes the value for the dataType attribute.
      Parameters:
      dataType - The value for dataType (can be null)
      Returns:
      this builder for use in a chained invocation
    • datatypeWithEnum

      public final ImmutableCtxDto.Builder datatypeWithEnum(@Nullable String datatypeWithEnum)
      Initializes the value for the datatypeWithEnum attribute.
      Parameters:
      datatypeWithEnum - The value for datatypeWithEnum (can be null)
      Returns:
      this builder for use in a chained invocation
    • isNullable

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

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

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

      public final ImmutableCtxDto.Builder putVendorExtensions(String key, String value)
      Put one entry to the vendorExtensions map.
      Parameters:
      key - The key in the vendorExtensions map
      value - The associated value in the vendorExtensions map
      Returns:
      this builder for use in a chained invocation
    • putVendorExtensions

      public final ImmutableCtxDto.Builder putVendorExtensions(Map.Entry<String,? extends String> entry)
      Put one entry to the vendorExtensions map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder for use in a chained invocation
    • vendorExtensions

      public final ImmutableCtxDto.Builder vendorExtensions(@Nullable Map<String,? extends String> entries)
      Sets or replaces all mappings from the specified map as entries for the vendorExtensions map. Nulls are not permitted as keys or values, but parameter itself can be null
      Parameters:
      entries - The entries that will be added to the vendorExtensions map
      Returns:
      this builder for use in a chained invocation
    • putAllVendorExtensions

      public final ImmutableCtxDto.Builder putAllVendorExtensions(Map<String,? extends String> entries)
      Put all mappings from the specified map as entries to vendorExtensions map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the vendorExtensions map
      Returns:
      this builder for use in a chained invocation
    • jackson

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

      public final ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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 ImmutableCtxDto.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
    • discriminator

      public final ImmutableCtxDto.Builder discriminator(CtxDtoDiscriminator discriminator)
      Initializes the optional value discriminator to discriminator.
      Parameters:
      discriminator - The value for discriminator
      Returns:
      this builder for chained invocation
    • discriminator

      public final ImmutableCtxDto.Builder discriminator(Optional<? extends CtxDtoDiscriminator> discriminator)
      Initializes the optional value discriminator to discriminator.
      Parameters:
      discriminator - The value for discriminator
      Returns:
      this builder for use in a chained invocation
    • madaDto

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

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