Class ImmutableCtxDtoExt

java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxDtoExt
All Implemented Interfaces:
CtxDtoExt

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

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

  • Method Details

    • jacksonJsonSerializeOptions

      public Optional<String> jacksonJsonSerializeOptions()
      Returns optional custom jackson @JsonSerialize options.
      Specified by:
      jacksonJsonSerializeOptions in interface CtxDtoExt
      Returns:
      optional custom jackson @JsonSerialize options
    • customLocalDateDeserializer

      public Optional<String> customLocalDateDeserializer()
      Returns the optional name of a custom LocalDateDeserializer.
      Specified by:
      customLocalDateDeserializer in interface CtxDtoExt
      Returns:
      the optional name of a custom LocalDateDeserializer
    • customLocalDateSerializer

      public Optional<String> customLocalDateSerializer()
      Returns the optional name of a custom LocalDateSerializer.
      Specified by:
      customLocalDateSerializer in interface CtxDtoExt
      Returns:
      the optional name of a custom LocalDateSerializer
    • customOffsetDateTimeDeserializer

      public Optional<String> customOffsetDateTimeDeserializer()
      Returns the optional name of a custom OffsetDateDeserializer.
      Specified by:
      customOffsetDateTimeDeserializer in interface CtxDtoExt
      Returns:
      the optional name of a custom OffsetDateDeserializer
    • customOffsetDateTimeSerializer

      public Optional<String> customOffsetDateTimeSerializer()
      Returns the optional name of a custom OffsetDateSerializer.
      Specified by:
      customOffsetDateTimeSerializer in interface CtxDtoExt
      Returns:
      the optional name of a custom OffsetDateSerializer
    • jsonb

      public boolean jsonb()
      Returns true if rendering for jsonb, false otherwise.
      Specified by:
      jsonb in interface CtxDtoExt
      Returns:
      true if rendering for jsonb, false otherwise
    • schemaOptions

      public @Nullable String schemaOptions()
      Returns schema options, or null.
      Specified by:
      schemaOptions in interface CtxDtoExt
      Returns:
      schema options, or null
    • implementsInterfaces

      public Optional<String> implementsInterfaces()
      Returns an optional string containing the interfaces implemented by this DTO.
      Specified by:
      implementsInterfaces in interface CtxDtoExt
      Returns:
      an optional string containing the interfaces implemented by this DTO
    • isEqualsPrimitive

      public boolean isEqualsPrimitive()
      Returns true if enumeration data type is primitive and can use == for equals.
      Specified by:
      isEqualsPrimitive in interface CtxDtoExt
      Returns:
      true if enumeration data type is primitive and can use == for equals
    • isEnumUnknownDefault

      public boolean isEnumUnknownDefault()
      Returns true if enumeration should deserialize unknown input to the last enumeration entry.
      Specified by:
      isEnumUnknownDefault in interface CtxDtoExt
      Returns:
      true if enumeration should deserialize unknown input to the last enumeration entry
    • quarkusRegisterForReflection

      public boolean quarkusRegisterForReflection()
      Returns true if DTO should render @RegisterForReflection.
      Specified by:
      quarkusRegisterForReflection in interface CtxDtoExt
      Returns:
      true if DTO should render @RegisterForReflection
    • isRenderPropertyOrderAnnotation

      public boolean isRenderPropertyOrderAnnotation()
      Returns true if the property order annotation should be rendered.
      Specified by:
      isRenderPropertyOrderAnnotation in interface CtxDtoExt
      Returns:
      true if the property order annotation should be rendered
    • varsOpenapiOrder

      public List<CtxProperty> varsOpenapiOrder()
      Returns the properties of the class, in openapi document order.
      Specified by:
      varsOpenapiOrder in interface CtxDtoExt
      Returns:
      the properties of the class, in openapi document order
    • classModifiers

      public Optional<String> classModifiers()
      Returns the optional class modifiers.
      Specified by:
      classModifiers in interface CtxDtoExt
      Returns:
      the optional class modifiers
    • isRenderSingleLineToString

      public boolean isRenderSingleLineToString()
      Returns true if the toString should create a single-line string.
      Specified by:
      isRenderSingleLineToString in interface CtxDtoExt
      Returns:
      true if the toString should create a single-line string
    • isRenderToStringHelper

      public boolean isRenderToStringHelper()
      Returns true if the toString indentation helper method should be rendered.
      Specified by:
      isRenderToStringHelper in interface CtxDtoExt
      Returns:
      true if the toString indentation helper method should be rendered
    • isRecordCanonicalConstructor

      public boolean isRecordCanonicalConstructor()
      Returns true if a canonical constructor should be added to the record.
      Specified by:
      isRecordCanonicalConstructor in interface CtxDtoExt
      Returns:
      true if a canonical constructor should be added to the record
    • isRecordBuilder

      public boolean isRecordBuilder()
      Returns true if a builder should be added to the record.
      Specified by:
      isRecordBuilder in interface CtxDtoExt
      Returns:
      true if a builder should be added to the record
    • isJspecify

      public boolean isJspecify()
      Returns true if jspecify Nullable annotations should be used.
      Specified by:
      isJspecify in interface CtxDtoExt
      Returns:
      true if jspecify Nullable annotations should be used
    • isJspecifyNullUnmarked

      public boolean isJspecifyNullUnmarked()
      Returns true if type is jspecify NullUnmarked - note, not the opposite of isJspecify.
      Specified by:
      isJspecifyNullUnmarked in interface CtxDtoExt
      Returns:
      true if type is jspecify NullUnmarked - note, not the opposite of isJspecify
    • withJacksonJsonSerializeOptions

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

      public final ImmutableCtxDtoExt withJacksonJsonSerializeOptions(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the jacksonJsonSerializeOptions 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 jacksonJsonSerializeOptions
      Returns:
      A modified copy or this if not changed
    • withCustomLocalDateDeserializer

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

      public final ImmutableCtxDtoExt withCustomLocalDateDeserializer(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the customLocalDateDeserializer 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 customLocalDateDeserializer
      Returns:
      A modified copy or this if not changed
    • withCustomLocalDateSerializer

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

      public final ImmutableCtxDtoExt withCustomLocalDateSerializer(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the customLocalDateSerializer 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 customLocalDateSerializer
      Returns:
      A modified copy or this if not changed
    • withCustomOffsetDateTimeDeserializer

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

      public final ImmutableCtxDtoExt withCustomOffsetDateTimeDeserializer(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the customOffsetDateTimeDeserializer 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 customOffsetDateTimeDeserializer
      Returns:
      A modified copy or this if not changed
    • withCustomOffsetDateTimeSerializer

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

      public final ImmutableCtxDtoExt withCustomOffsetDateTimeSerializer(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the customOffsetDateTimeSerializer 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 customOffsetDateTimeSerializer
      Returns:
      A modified copy or this if not changed
    • withJsonb

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

      public final ImmutableCtxDtoExt withSchemaOptions(@Nullable String value)
      Copy the current immutable object by setting a value for the schemaOptions attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for schemaOptions (can be null)
      Returns:
      A modified copy or the this object
    • withImplementsInterfaces

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

      public final ImmutableCtxDtoExt withImplementsInterfaces(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the implementsInterfaces 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 implementsInterfaces
      Returns:
      A modified copy or this if not changed
    • withIsEqualsPrimitive

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

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

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

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

      public final ImmutableCtxDtoExt withVarsOpenapiOrder(CtxProperty... elements)
      Copy the current immutable object with elements that replace the content of varsOpenapiOrder.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withVarsOpenapiOrder

      public final ImmutableCtxDtoExt withVarsOpenapiOrder(Iterable<? extends CtxProperty> elements)
      Copy the current immutable object with elements that replace the content of varsOpenapiOrder. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of varsOpenapiOrder elements to set
      Returns:
      A modified copy or this if not changed
    • withClassModifiers

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

      public final ImmutableCtxDtoExt withClassModifiers(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the classModifiers 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 classModifiers
      Returns:
      A modified copy or this if not changed
    • withIsRenderSingleLineToString

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

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

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

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

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

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

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableCtxDtoExt 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: jacksonJsonSerializeOptions, customLocalDateDeserializer, customLocalDateSerializer, customOffsetDateTimeDeserializer, customOffsetDateTimeSerializer, jsonb, schemaOptions, implementsInterfaces, isEqualsPrimitive, isEnumUnknownDefault, quarkusRegisterForReflection, isRenderPropertyOrderAnnotation, varsOpenapiOrder, classModifiers, isRenderSingleLineToString, isRenderToStringHelper, isRecordCanonicalConstructor, isRecordBuilder, isJspecify, isJspecifyNullUnmarked.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableCtxDtoExt copyOf(CtxDtoExt instance)
      Creates an immutable copy of a CtxDtoExt 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 CtxDtoExt instance
    • builder

      public static ImmutableCtxDtoExt.Builder builder()
      Creates a builder for ImmutableCtxDtoExt.
       ImmutableCtxDtoExt.builder()
          .jacksonJsonSerializeOptions(Optional<String>) // optional jacksonJsonSerializeOptions
          .customLocalDateDeserializer(Optional<String>) // optional customLocalDateDeserializer
          .customLocalDateSerializer(Optional<String>) // optional customLocalDateSerializer
          .customOffsetDateTimeDeserializer(Optional<String>) // optional customOffsetDateTimeDeserializer
          .customOffsetDateTimeSerializer(Optional<String>) // optional customOffsetDateTimeSerializer
          .jsonb(boolean) // required jsonb
          .schemaOptions(String | null) // nullable schemaOptions
          .implementsInterfaces(Optional<String>) // optional implementsInterfaces
          .isEqualsPrimitive(boolean) // required isEqualsPrimitive
          .isEnumUnknownDefault(boolean) // required isEnumUnknownDefault
          .quarkusRegisterForReflection(boolean) // required quarkusRegisterForReflection
          .isRenderPropertyOrderAnnotation(boolean) // required isRenderPropertyOrderAnnotation
          .addVarsOpenapiOrder|addAllVarsOpenapiOrder(dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxProperty) // varsOpenapiOrder elements
          .classModifiers(Optional<String>) // optional classModifiers
          .isRenderSingleLineToString(boolean) // required isRenderSingleLineToString
          .isRenderToStringHelper(boolean) // required isRenderToStringHelper
          .isRecordCanonicalConstructor(boolean) // required isRecordCanonicalConstructor
          .isRecordBuilder(boolean) // required isRecordBuilder
          .isJspecify(boolean) // required isJspecify
          .isJspecifyNullUnmarked(boolean) // required isJspecifyNullUnmarked
          .build();
       
      Returns:
      A new ImmutableCtxDtoExt builder