Class ImmutableCtxInterface

java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxInterface
All Implemented Interfaces:
CtxInterface

@Generated(from="CtxInterface", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCtxInterface extends Object implements CtxInterface
Immutable implementation of CtxInterface.

Use the builder to create immutable instances: ImmutableCtxInterface.builder().

  • Method Details

    • appName

      public String appName()
      Returns the application name.
      Specified by:
      appName in interface CtxInterface
      Returns:
      the application name
    • version

      public String version()
      Returns the application version.
      Specified by:
      version in interface CtxInterface
      Returns:
      the application version
    • appDescription

      public Optional<String> appDescription()
      Returns the optional application description.
      Specified by:
      appDescription in interface CtxInterface
      Returns:
      the optional application description
    • infoEmail

      public Optional<String> infoEmail()
      Returns the optional application contact email.
      Specified by:
      infoEmail in interface CtxInterface
      Returns:
      the optional application contact email
    • getImports

      public SortedSet<String> getImports()
      Returns the imports needed in the template.
      Specified by:
      getImports in interface CtxInterface
      Returns:
      the imports needed in the template
    • description

      public Optional<String> description()
      Returns an optional description of the class.
      Specified by:
      description in interface CtxInterface
      Returns:
      an optional description of the class
    • packageName

      public String packageName()
      Returns the package name for the class.
      Specified by:
      packageName in interface CtxInterface
      Returns:
      the package name for the class
    • classname

      public String classname()
      Returns the classname for the class.
      Specified by:
      classname in interface CtxInterface
      Returns:
      the classname for the class
    • generatedAnnotationClass

      public String generatedAnnotationClass()
      Returns the name of the Generated annotation class.
      Specified by:
      generatedAnnotationClass in interface CtxInterface
      Returns:
      the name of the Generated annotation class
    • generatorClass

      public String generatorClass()
      Returns the name of the generator class.
      Specified by:
      generatorClass in interface CtxInterface
      Returns:
      the name of the generator class
    • generatedDate

      public Optional<String> generatedDate()
      Returns the optional date of the generation.
      Specified by:
      generatedDate in interface CtxInterface
      Returns:
      the optional date of the generation
    • implementations

      public String implementations()
      Returns a string list of implementation DTOs.
      Specified by:
      implementations in interface CtxInterface
      Returns:
      a string list of implementation DTOs
    • renderSchema

      public boolean renderSchema()
      Returns true if OpenApi schema information should be rendered.
      Specified by:
      renderSchema in interface CtxInterface
      Returns:
      true if OpenApi schema information should be rendered
    • withAppName

      public final ImmutableCtxInterface withAppName(String value)
      Copy the current immutable object by setting a value for the appName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for appName
      Returns:
      A modified copy or the this object
    • withVersion

      public final ImmutableCtxInterface withVersion(String value)
      Copy the current immutable object by setting a value for the version attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for version
      Returns:
      A modified copy or the this object
    • withAppDescription

      public final ImmutableCtxInterface withAppDescription(String value)
      Copy the current immutable object by setting a present value for the optional appDescription attribute.
      Parameters:
      value - The value for appDescription
      Returns:
      A modified copy or this if not changed
    • withAppDescription

      public final ImmutableCtxInterface withAppDescription(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the appDescription attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for appDescription
      Returns:
      A modified copy or this if not changed
    • withInfoEmail

      public final ImmutableCtxInterface withInfoEmail(String value)
      Copy the current immutable object by setting a present value for the optional infoEmail attribute.
      Parameters:
      value - The value for infoEmail
      Returns:
      A modified copy or this if not changed
    • withInfoEmail

      public final ImmutableCtxInterface withInfoEmail(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the infoEmail attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for infoEmail
      Returns:
      A modified copy or this if not changed
    • withImports

      public final ImmutableCtxInterface withImports(SortedSet<String> value)
      Copy the current immutable object by setting a value for the imports attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for imports
      Returns:
      A modified copy or the this object
    • withDescription

      public final ImmutableCtxInterface withDescription(String value)
      Copy the current immutable object by setting a present value for the optional description attribute.
      Parameters:
      value - The value for description
      Returns:
      A modified copy or this if not changed
    • withDescription

      public final ImmutableCtxInterface withDescription(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the description attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for description
      Returns:
      A modified copy or this if not changed
    • withPackageName

      public final ImmutableCtxInterface withPackageName(String value)
      Copy the current immutable object by setting a value for the packageName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for packageName
      Returns:
      A modified copy or the this object
    • withClassname

      public final ImmutableCtxInterface withClassname(String value)
      Copy the current immutable object by setting a value for the classname attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for classname
      Returns:
      A modified copy or the this object
    • withGeneratedAnnotationClass

      public final ImmutableCtxInterface withGeneratedAnnotationClass(String value)
      Copy the current immutable object by setting a value for the generatedAnnotationClass attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for generatedAnnotationClass
      Returns:
      A modified copy or the this object
    • withGeneratorClass

      public final ImmutableCtxInterface withGeneratorClass(String value)
      Copy the current immutable object by setting a value for the generatorClass attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for generatorClass
      Returns:
      A modified copy or the this object
    • withGeneratedDate

      public final ImmutableCtxInterface withGeneratedDate(String value)
      Copy the current immutable object by setting a present value for the optional generatedDate attribute.
      Parameters:
      value - The value for generatedDate
      Returns:
      A modified copy or this if not changed
    • withGeneratedDate

      public final ImmutableCtxInterface withGeneratedDate(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the generatedDate attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for generatedDate
      Returns:
      A modified copy or this if not changed
    • withImplementations

      public final ImmutableCtxInterface withImplementations(String value)
      Copy the current immutable object by setting a value for the implementations attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for implementations
      Returns:
      A modified copy or the this object
    • withRenderSchema

      public final ImmutableCtxInterface withRenderSchema(boolean value)
      Copy the current immutable object by setting a value for the renderSchema attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for renderSchema
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableCtxInterface that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: appName, version, appDescription, infoEmail, imports, description, packageName, classname, generatedAnnotationClass, generatorClass, generatedDate, implementations, renderSchema.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value CtxInterface with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableCtxInterface copyOf(CtxInterface instance)
      Creates an immutable copy of a CtxInterface value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable CtxInterface instance
    • builder

      public static ImmutableCtxInterface.Builder builder()
      Creates a builder for ImmutableCtxInterface.
       ImmutableCtxInterface.builder()
          .appName(String) // required appName
          .version(String) // required version
          .appDescription(Optional<String>) // optional appDescription
          .infoEmail(Optional<String>) // optional infoEmail
          .imports(SortedSet<String>) // required imports
          .description(Optional<String>) // optional description
          .packageName(String) // required packageName
          .classname(String) // required classname
          .generatedAnnotationClass(String) // required generatedAnnotationClass
          .generatorClass(String) // required generatorClass
          .generatedDate(Optional<String>) // optional generatedDate
          .implementations(String) // required implementations
          .renderSchema(boolean) // required renderSchema
          .build();
       
      Returns:
      A new ImmutableCtxInterface builder