Class ImmutableCtxDtoExt.Builder
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxDtoExt.Builder
- Enclosing class:
ImmutableCtxDtoExt
@Generated(from="CtxDtoExt",
generator="Immutables")
public static final class ImmutableCtxDtoExt.Builder
extends Object
Builds instances of type
ImmutableCtxDtoExt
.
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 Summary
Modifier and TypeMethodDescriptionaddAllVarsOpenapiOrder
(Iterable<? extends CtxProperty> elements) Adds elements tovarsOpenapiOrder
list.addVarsOpenapiOrder
(CtxProperty element) Adds one element tovarsOpenapiOrder
list.addVarsOpenapiOrder
(CtxProperty... elements) Adds elements tovarsOpenapiOrder
list.build()
Builds a newImmutableCtxDtoExt
.classModifiers
(String classModifiers) Initializes the optional valueclassModifiers
to classModifiers.classModifiers
(Optional<String> classModifiers) Initializes the optional valueclassModifiers
to classModifiers.customLocalDateDeserializer
(String customLocalDateDeserializer) Initializes the optional valuecustomLocalDateDeserializer
to customLocalDateDeserializer.customLocalDateDeserializer
(Optional<String> customLocalDateDeserializer) Initializes the optional valuecustomLocalDateDeserializer
to customLocalDateDeserializer.customLocalDateSerializer
(String customLocalDateSerializer) Initializes the optional valuecustomLocalDateSerializer
to customLocalDateSerializer.customLocalDateSerializer
(Optional<String> customLocalDateSerializer) Initializes the optional valuecustomLocalDateSerializer
to customLocalDateSerializer.customOffsetDateTimeDeserializer
(String customOffsetDateTimeDeserializer) Initializes the optional valuecustomOffsetDateTimeDeserializer
to customOffsetDateTimeDeserializer.customOffsetDateTimeDeserializer
(Optional<String> customOffsetDateTimeDeserializer) Initializes the optional valuecustomOffsetDateTimeDeserializer
to customOffsetDateTimeDeserializer.customOffsetDateTimeSerializer
(String customOffsetDateTimeSerializer) Initializes the optional valuecustomOffsetDateTimeSerializer
to customOffsetDateTimeSerializer.customOffsetDateTimeSerializer
(Optional<String> customOffsetDateTimeSerializer) Initializes the optional valuecustomOffsetDateTimeSerializer
to customOffsetDateTimeSerializer.Fill a builder with attribute values from the providedCtxDtoExt
instance.implementsInterfaces
(String implementsInterfaces) Initializes the optional valueimplementsInterfaces
to implementsInterfaces.implementsInterfaces
(Optional<String> implementsInterfaces) Initializes the optional valueimplementsInterfaces
to implementsInterfaces.isEnumUnknownDefault
(boolean isEnumUnknownDefault) Initializes the value for theisEnumUnknownDefault
attribute.isEqualsPrimitive
(boolean isEqualsPrimitive) Initializes the value for theisEqualsPrimitive
attribute.isJspecify
(boolean isJspecify) Initializes the value for theisJspecify
attribute.isJspecifyNullUnmarked
(boolean isJspecifyNullUnmarked) Initializes the value for theisJspecifyNullUnmarked
attribute.isRecordBuilder
(boolean isRecordBuilder) Initializes the value for theisRecordBuilder
attribute.isRecordCanonicalConstructor
(boolean isRecordCanonicalConstructor) Initializes the value for theisRecordCanonicalConstructor
attribute.isRenderPropertyOrderAnnotation
(boolean isRenderPropertyOrderAnnotation) Initializes the value for theisRenderPropertyOrderAnnotation
attribute.isRenderSingleLineToString
(boolean isRenderSingleLineToString) Initializes the value for theisRenderSingleLineToString
attribute.isRenderToStringHelper
(boolean isRenderToStringHelper) Initializes the value for theisRenderToStringHelper
attribute.jacksonJsonSerializeOptions
(String jacksonJsonSerializeOptions) Initializes the optional valuejacksonJsonSerializeOptions
to jacksonJsonSerializeOptions.jacksonJsonSerializeOptions
(Optional<String> jacksonJsonSerializeOptions) Initializes the optional valuejacksonJsonSerializeOptions
to jacksonJsonSerializeOptions.jsonb
(boolean jsonb) Initializes the value for thejsonb
attribute.quarkusRegisterForReflection
(boolean quarkusRegisterForReflection) Initializes the value for thequarkusRegisterForReflection
attribute.schemaOptions
(@Nullable String schemaOptions) Initializes the value for theschemaOptions
attribute.varsOpenapiOrder
(Iterable<? extends CtxProperty> elements) Sets or replaces all elements forvarsOpenapiOrder
list.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxDtoExt
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
-
jacksonJsonSerializeOptions
public final ImmutableCtxDtoExt.Builder jacksonJsonSerializeOptions(String jacksonJsonSerializeOptions) Initializes the optional valuejacksonJsonSerializeOptions
to jacksonJsonSerializeOptions.- Parameters:
jacksonJsonSerializeOptions
- The value for jacksonJsonSerializeOptions- Returns:
this
builder for chained invocation
-
jacksonJsonSerializeOptions
public final ImmutableCtxDtoExt.Builder jacksonJsonSerializeOptions(Optional<String> jacksonJsonSerializeOptions) Initializes the optional valuejacksonJsonSerializeOptions
to jacksonJsonSerializeOptions.- Parameters:
jacksonJsonSerializeOptions
- The value for jacksonJsonSerializeOptions- Returns:
this
builder for use in a chained invocation
-
customLocalDateDeserializer
public final ImmutableCtxDtoExt.Builder customLocalDateDeserializer(String customLocalDateDeserializer) Initializes the optional valuecustomLocalDateDeserializer
to customLocalDateDeserializer.- Parameters:
customLocalDateDeserializer
- The value for customLocalDateDeserializer- Returns:
this
builder for chained invocation
-
customLocalDateDeserializer
public final ImmutableCtxDtoExt.Builder customLocalDateDeserializer(Optional<String> customLocalDateDeserializer) Initializes the optional valuecustomLocalDateDeserializer
to customLocalDateDeserializer.- Parameters:
customLocalDateDeserializer
- The value for customLocalDateDeserializer- Returns:
this
builder for use in a chained invocation
-
customLocalDateSerializer
Initializes the optional valuecustomLocalDateSerializer
to customLocalDateSerializer.- Parameters:
customLocalDateSerializer
- The value for customLocalDateSerializer- Returns:
this
builder for chained invocation
-
customLocalDateSerializer
public final ImmutableCtxDtoExt.Builder customLocalDateSerializer(Optional<String> customLocalDateSerializer) Initializes the optional valuecustomLocalDateSerializer
to customLocalDateSerializer.- Parameters:
customLocalDateSerializer
- The value for customLocalDateSerializer- Returns:
this
builder for use in a chained invocation
-
customOffsetDateTimeDeserializer
public final ImmutableCtxDtoExt.Builder customOffsetDateTimeDeserializer(String customOffsetDateTimeDeserializer) Initializes the optional valuecustomOffsetDateTimeDeserializer
to customOffsetDateTimeDeserializer.- Parameters:
customOffsetDateTimeDeserializer
- The value for customOffsetDateTimeDeserializer- Returns:
this
builder for chained invocation
-
customOffsetDateTimeDeserializer
public final ImmutableCtxDtoExt.Builder customOffsetDateTimeDeserializer(Optional<String> customOffsetDateTimeDeserializer) Initializes the optional valuecustomOffsetDateTimeDeserializer
to customOffsetDateTimeDeserializer.- Parameters:
customOffsetDateTimeDeserializer
- The value for customOffsetDateTimeDeserializer- Returns:
this
builder for use in a chained invocation
-
customOffsetDateTimeSerializer
public final ImmutableCtxDtoExt.Builder customOffsetDateTimeSerializer(String customOffsetDateTimeSerializer) Initializes the optional valuecustomOffsetDateTimeSerializer
to customOffsetDateTimeSerializer.- Parameters:
customOffsetDateTimeSerializer
- The value for customOffsetDateTimeSerializer- Returns:
this
builder for chained invocation
-
customOffsetDateTimeSerializer
public final ImmutableCtxDtoExt.Builder customOffsetDateTimeSerializer(Optional<String> customOffsetDateTimeSerializer) Initializes the optional valuecustomOffsetDateTimeSerializer
to customOffsetDateTimeSerializer.- Parameters:
customOffsetDateTimeSerializer
- The value for customOffsetDateTimeSerializer- Returns:
this
builder for use in a chained invocation
-
jsonb
Initializes the value for thejsonb
attribute.- Parameters:
jsonb
- The value for jsonb- Returns:
this
builder for use in a chained invocation
-
schemaOptions
Initializes the value for theschemaOptions
attribute.- Parameters:
schemaOptions
- The value for schemaOptions (can benull
)- Returns:
this
builder for use in a chained invocation
-
implementsInterfaces
Initializes the optional valueimplementsInterfaces
to implementsInterfaces.- Parameters:
implementsInterfaces
- The value for implementsInterfaces- Returns:
this
builder for chained invocation
-
implementsInterfaces
Initializes the optional valueimplementsInterfaces
to implementsInterfaces.- Parameters:
implementsInterfaces
- The value for implementsInterfaces- Returns:
this
builder for use in a chained invocation
-
isEqualsPrimitive
Initializes the value for theisEqualsPrimitive
attribute.- Parameters:
isEqualsPrimitive
- The value for isEqualsPrimitive- Returns:
this
builder for use in a chained invocation
-
isEnumUnknownDefault
Initializes the value for theisEnumUnknownDefault
attribute.- Parameters:
isEnumUnknownDefault
- The value for isEnumUnknownDefault- Returns:
this
builder for use in a chained invocation
-
quarkusRegisterForReflection
public final ImmutableCtxDtoExt.Builder quarkusRegisterForReflection(boolean quarkusRegisterForReflection) Initializes the value for thequarkusRegisterForReflection
attribute.- Parameters:
quarkusRegisterForReflection
- The value for quarkusRegisterForReflection- Returns:
this
builder for use in a chained invocation
-
isRenderPropertyOrderAnnotation
public final ImmutableCtxDtoExt.Builder isRenderPropertyOrderAnnotation(boolean isRenderPropertyOrderAnnotation) Initializes the value for theisRenderPropertyOrderAnnotation
attribute.- Parameters:
isRenderPropertyOrderAnnotation
- The value for isRenderPropertyOrderAnnotation- Returns:
this
builder for use in a chained invocation
-
addVarsOpenapiOrder
Adds one element tovarsOpenapiOrder
list.- Parameters:
element
- A varsOpenapiOrder element- Returns:
this
builder for use in a chained invocation
-
addVarsOpenapiOrder
Adds elements tovarsOpenapiOrder
list.- Parameters:
elements
- An array of varsOpenapiOrder elements- Returns:
this
builder for use in a chained invocation
-
varsOpenapiOrder
Sets or replaces all elements forvarsOpenapiOrder
list.- Parameters:
elements
- An iterable of varsOpenapiOrder elements- Returns:
this
builder for use in a chained invocation
-
addAllVarsOpenapiOrder
public final ImmutableCtxDtoExt.Builder addAllVarsOpenapiOrder(Iterable<? extends CtxProperty> elements) Adds elements tovarsOpenapiOrder
list.- Parameters:
elements
- An iterable of varsOpenapiOrder elements- Returns:
this
builder for use in a chained invocation
-
classModifiers
Initializes the optional valueclassModifiers
to classModifiers.- Parameters:
classModifiers
- The value for classModifiers- Returns:
this
builder for chained invocation
-
classModifiers
Initializes the optional valueclassModifiers
to classModifiers.- Parameters:
classModifiers
- The value for classModifiers- Returns:
this
builder for use in a chained invocation
-
isRenderSingleLineToString
public final ImmutableCtxDtoExt.Builder isRenderSingleLineToString(boolean isRenderSingleLineToString) Initializes the value for theisRenderSingleLineToString
attribute.- Parameters:
isRenderSingleLineToString
- The value for isRenderSingleLineToString- Returns:
this
builder for use in a chained invocation
-
isRenderToStringHelper
Initializes the value for theisRenderToStringHelper
attribute.- Parameters:
isRenderToStringHelper
- The value for isRenderToStringHelper- Returns:
this
builder for use in a chained invocation
-
isRecordCanonicalConstructor
public final ImmutableCtxDtoExt.Builder isRecordCanonicalConstructor(boolean isRecordCanonicalConstructor) Initializes the value for theisRecordCanonicalConstructor
attribute.- Parameters:
isRecordCanonicalConstructor
- The value for isRecordCanonicalConstructor- Returns:
this
builder for use in a chained invocation
-
isRecordBuilder
Initializes the value for theisRecordBuilder
attribute.- Parameters:
isRecordBuilder
- The value for isRecordBuilder- Returns:
this
builder for use in a chained invocation
-
isJspecify
Initializes the value for theisJspecify
attribute.- Parameters:
isJspecify
- The value for isJspecify- Returns:
this
builder for use in a chained invocation
-
isJspecifyNullUnmarked
Initializes the value for theisJspecifyNullUnmarked
attribute.- Parameters:
isJspecifyNullUnmarked
- The value for isJspecifyNullUnmarked- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableCtxDtoExt
.- Returns:
- An immutable instance of CtxDtoExt
- Throws:
IllegalStateException
- if any required attributes are missing
-