Class ImmutableCtxInterface.Builder
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxInterface.Builder
- Enclosing class:
ImmutableCtxInterface
@Generated(from="CtxInterface",
generator="Immutables")
public static final class ImmutableCtxInterface.Builder
extends Object
Builds instances of type
ImmutableCtxInterface
.
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 newImmutableCtxInterface
.Initializes the value for theclassname
attribute.description
(String description) Initializes the optional valuedescription
to description.description
(Optional<String> description) Initializes the optional valuedescription
to description.from
(CtxInterface instance) Fill a builder with attribute values from the providedCtxInterface
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.implementations
(String implementations) Initializes the value for theimplementations
attribute.Initializes the value for theimports
attribute.Initializes the optional valueinfoEmail
to infoEmail.Initializes the optional valueinfoEmail
to infoEmail.packageName
(String packageName) Initializes the value for thepackageName
attribute.renderSchema
(boolean renderSchema) Initializes the value for therenderSchema
attribute.Initializes the value for theversion
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxInterface
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
-
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
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
-
description
Initializes the optional valuedescription
to description.- Parameters:
description
- The value for description- Returns:
this
builder for chained invocation
-
description
Initializes the optional valuedescription
to description.- Parameters:
description
- The value for description- 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
-
classname
Initializes the value for theclassname
attribute.- Parameters:
classname
- The value for classname- Returns:
this
builder for use in a chained invocation
-
generatedAnnotationClass
public final ImmutableCtxInterface.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
-
implementations
Initializes the value for theimplementations
attribute.- Parameters:
implementations
- The value for implementations- Returns:
this
builder for use in a chained invocation
-
renderSchema
Initializes the value for therenderSchema
attribute.- Parameters:
renderSchema
- The value for renderSchema- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableCtxInterface
.- Returns:
- An immutable instance of CtxInterface
- Throws:
IllegalStateException
- if any required attributes are missing
-