Class ImmutableCtxProperty.Builder

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

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

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

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

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

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

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

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

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

      public final ImmutableCtxProperty.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
    • allowableValues

      public final ImmutableCtxProperty.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
    • defaultValue

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

      public final ImmutableCtxProperty.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 ImmutableCtxProperty.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
    • validation

      public final ImmutableCtxProperty.Builder validation(CtxValidation validation)
      Initializes the optional value validation to validation.
      Parameters:
      validation - The value for validation
      Returns:
      this builder for chained invocation
    • validation

      public final ImmutableCtxProperty.Builder validation(Optional<? extends CtxValidation> validation)
      Initializes the optional value validation to validation.
      Parameters:
      validation - The value for validation
      Returns:
      this builder for use in a chained invocation
    • isArray

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

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

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

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

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

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

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

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

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

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

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

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

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