Class ImmutableCtxExtraDateSerializer.Builder
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxExtraDateSerializer.Builder
- Enclosing class:
ImmutableCtxExtraDateSerializer
@Generated(from="CtxExtraDateSerializer",
generator="Immutables")
public static final class ImmutableCtxExtraDateSerializer.Builder
extends Object
Builds instances of type
ImmutableCtxExtraDateSerializer
.
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 TypeMethodDescriptionappDescription
(String appDescription) Initializes the optional valueappDescription
to appDescription.appDescription
(Optional<String> appDescription) Initializes the optional valueappDescription
to appDescription.Initializes the value for theappName
attribute.build()
Builds a newImmutableCtxExtraDateSerializer
.cannedLocalDateSerializerDTF
(String cannedLocalDateSerializerDTF) Initializes the optional valuecannedLocalDateSerializerDTF
to cannedLocalDateSerializerDTF.cannedLocalDateSerializerDTF
(Optional<String> cannedLocalDateSerializerDTF) Initializes the optional valuecannedLocalDateSerializerDTF
to cannedLocalDateSerializerDTF.cannedLocalDateTimeSerializerDTF
(String cannedLocalDateTimeSerializerDTF) Initializes the optional valuecannedLocalDateTimeSerializerDTF
to cannedLocalDateTimeSerializerDTF.cannedLocalDateTimeSerializerDTF
(Optional<String> cannedLocalDateTimeSerializerDTF) Initializes the optional valuecannedLocalDateTimeSerializerDTF
to cannedLocalDateTimeSerializerDTF.cannedOffsetDateTimeSerializerDTF
(String cannedOffsetDateTimeSerializerDTF) Initializes the optional valuecannedOffsetDateTimeSerializerDTF
to cannedOffsetDateTimeSerializerDTF.cannedOffsetDateTimeSerializerDTF
(Optional<String> cannedOffsetDateTimeSerializerDTF) Initializes the optional valuecannedOffsetDateTimeSerializerDTF
to cannedOffsetDateTimeSerializerDTF.Initializes the value for theclassName
attribute.deserializer
(boolean deserializer) Initializes the value for thedeserializer
attribute.from
(CtxExtraDateSerializer instance) Fill a builder with attribute values from the providedCtxExtraDateSerializer
instance.generatedAnnotationClass
(String generatedAnnotationClass) Initializes the value for thegeneratedAnnotationClass
attribute.generatedDate
(String generatedDate) Initializes the optional valuegeneratedDate
to generatedDate.generatedDate
(Optional<String> generatedDate) Initializes the optional valuegeneratedDate
to generatedDate.generatorClass
(String generatorClass) Initializes the value for thegeneratorClass
attribute.Initializes the value for theimports
attribute.Initializes the optional valueinfoEmail
to infoEmail.Initializes the optional valueinfoEmail
to infoEmail.jacksonFasterxml
(boolean jacksonFasterxml) Initializes the value for thejacksonFasterxml
attribute.jsonb
(boolean jsonb) Initializes the value for thejsonb
attribute.packageName
(String packageName) Initializes the value for thepackageName
attribute.renderLocalDate
(boolean renderLocalDate) Initializes the value for therenderLocalDate
attribute.renderLocalDateTime
(boolean renderLocalDateTime) Initializes the value for therenderLocalDateTime
attribute.renderOffsetDateTime
(boolean renderOffsetDateTime) Initializes the value for therenderOffsetDateTime
attribute.Initializes the value for theversion
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxExtraDateSerializer
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
-
className
Initializes the value for theclassName
attribute.- Parameters:
className
- The value for className- Returns:
this
builder for use in a chained invocation
-
appName
Initializes the value for theappName
attribute.- Parameters:
appName
- The value for appName- Returns:
this
builder for use in a chained invocation
-
version
Initializes the value for theversion
attribute.- Parameters:
version
- The value for version- Returns:
this
builder for use in a chained invocation
-
appDescription
Initializes the optional valueappDescription
to appDescription.- Parameters:
appDescription
- The value for appDescription- Returns:
this
builder for chained invocation
-
appDescription
public final ImmutableCtxExtraDateSerializer.Builder appDescription(Optional<String> appDescription) Initializes the optional valueappDescription
to appDescription.- Parameters:
appDescription
- The value for appDescription- Returns:
this
builder for use in a chained invocation
-
infoEmail
Initializes the optional valueinfoEmail
to infoEmail.- Parameters:
infoEmail
- The value for infoEmail- Returns:
this
builder for chained invocation
-
infoEmail
Initializes the optional valueinfoEmail
to infoEmail.- Parameters:
infoEmail
- The value for infoEmail- Returns:
this
builder for use in a chained invocation
-
imports
Initializes the value for theimports
attribute.- Parameters:
imports
- The value for imports- Returns:
this
builder for use in a chained invocation
-
packageName
Initializes the value for thepackageName
attribute.- Parameters:
packageName
- The value for packageName- Returns:
this
builder for use in a chained invocation
-
jacksonFasterxml
Initializes the value for thejacksonFasterxml
attribute.- Parameters:
jacksonFasterxml
- The value for jacksonFasterxml- 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
-
deserializer
Initializes the value for thedeserializer
attribute.- Parameters:
deserializer
- The value for deserializer- Returns:
this
builder for use in a chained invocation
-
renderLocalDate
Initializes the value for therenderLocalDate
attribute.- Parameters:
renderLocalDate
- The value for renderLocalDate- Returns:
this
builder for use in a chained invocation
-
renderLocalDateTime
public final ImmutableCtxExtraDateSerializer.Builder renderLocalDateTime(boolean renderLocalDateTime) Initializes the value for therenderLocalDateTime
attribute.- Parameters:
renderLocalDateTime
- The value for renderLocalDateTime- Returns:
this
builder for use in a chained invocation
-
renderOffsetDateTime
public final ImmutableCtxExtraDateSerializer.Builder renderOffsetDateTime(boolean renderOffsetDateTime) Initializes the value for therenderOffsetDateTime
attribute.- Parameters:
renderOffsetDateTime
- The value for renderOffsetDateTime- Returns:
this
builder for use in a chained invocation
-
generatedAnnotationClass
public final ImmutableCtxExtraDateSerializer.Builder generatedAnnotationClass(String generatedAnnotationClass) Initializes the value for thegeneratedAnnotationClass
attribute.- Parameters:
generatedAnnotationClass
- The value for generatedAnnotationClass- Returns:
this
builder for use in a chained invocation
-
generatorClass
Initializes the value for thegeneratorClass
attribute.- Parameters:
generatorClass
- The value for generatorClass- Returns:
this
builder for use in a chained invocation
-
generatedDate
Initializes the optional valuegeneratedDate
to generatedDate.- Parameters:
generatedDate
- The value for generatedDate- Returns:
this
builder for chained invocation
-
generatedDate
Initializes the optional valuegeneratedDate
to generatedDate.- Parameters:
generatedDate
- The value for generatedDate- Returns:
this
builder for use in a chained invocation
-
cannedLocalDateSerializerDTF
public final ImmutableCtxExtraDateSerializer.Builder cannedLocalDateSerializerDTF(String cannedLocalDateSerializerDTF) Initializes the optional valuecannedLocalDateSerializerDTF
to cannedLocalDateSerializerDTF.- Parameters:
cannedLocalDateSerializerDTF
- The value for cannedLocalDateSerializerDTF- Returns:
this
builder for chained invocation
-
cannedLocalDateSerializerDTF
public final ImmutableCtxExtraDateSerializer.Builder cannedLocalDateSerializerDTF(Optional<String> cannedLocalDateSerializerDTF) Initializes the optional valuecannedLocalDateSerializerDTF
to cannedLocalDateSerializerDTF.- Parameters:
cannedLocalDateSerializerDTF
- The value for cannedLocalDateSerializerDTF- Returns:
this
builder for use in a chained invocation
-
cannedLocalDateTimeSerializerDTF
public final ImmutableCtxExtraDateSerializer.Builder cannedLocalDateTimeSerializerDTF(String cannedLocalDateTimeSerializerDTF) Initializes the optional valuecannedLocalDateTimeSerializerDTF
to cannedLocalDateTimeSerializerDTF.- Parameters:
cannedLocalDateTimeSerializerDTF
- The value for cannedLocalDateTimeSerializerDTF- Returns:
this
builder for chained invocation
-
cannedLocalDateTimeSerializerDTF
public final ImmutableCtxExtraDateSerializer.Builder cannedLocalDateTimeSerializerDTF(Optional<String> cannedLocalDateTimeSerializerDTF) Initializes the optional valuecannedLocalDateTimeSerializerDTF
to cannedLocalDateTimeSerializerDTF.- Parameters:
cannedLocalDateTimeSerializerDTF
- The value for cannedLocalDateTimeSerializerDTF- Returns:
this
builder for use in a chained invocation
-
cannedOffsetDateTimeSerializerDTF
public final ImmutableCtxExtraDateSerializer.Builder cannedOffsetDateTimeSerializerDTF(String cannedOffsetDateTimeSerializerDTF) Initializes the optional valuecannedOffsetDateTimeSerializerDTF
to cannedOffsetDateTimeSerializerDTF.- Parameters:
cannedOffsetDateTimeSerializerDTF
- The value for cannedOffsetDateTimeSerializerDTF- Returns:
this
builder for chained invocation
-
cannedOffsetDateTimeSerializerDTF
public final ImmutableCtxExtraDateSerializer.Builder cannedOffsetDateTimeSerializerDTF(Optional<String> cannedOffsetDateTimeSerializerDTF) Initializes the optional valuecannedOffsetDateTimeSerializerDTF
to cannedOffsetDateTimeSerializerDTF.- Parameters:
cannedOffsetDateTimeSerializerDTF
- The value for cannedOffsetDateTimeSerializerDTF- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableCtxExtraDateSerializer
.- Returns:
- An immutable instance of CtxExtraDateSerializer
- Throws:
IllegalStateException
- if any required attributes are missing
-