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 valueappDescriptionto appDescription.appDescription(Optional<String> appDescription) Initializes the optional valueappDescriptionto appDescription.Initializes the value for theappNameattribute.build()Builds a newImmutableCtxInterface.Initializes the value for theclassnameattribute.description(String description) Initializes the optional valuedescriptionto description.description(Optional<String> description) Initializes the optional valuedescriptionto description.from(CtxInterface instance) Fill a builder with attribute values from the providedCtxInterfaceinstance.generatedAnnotationClass(String generatedAnnotationClass) Initializes the value for thegeneratedAnnotationClassattribute.generatedDate(String generatedDate) Initializes the optional valuegeneratedDateto generatedDate.generatedDate(Optional<String> generatedDate) Initializes the optional valuegeneratedDateto generatedDate.generatorClass(String generatorClass) Initializes the value for thegeneratorClassattribute.implementations(String implementations) Initializes the value for theimplementationsattribute.Initializes the value for theimportsattribute.Initializes the optional valueinfoEmailto infoEmail.Initializes the optional valueinfoEmailto infoEmail.packageName(String packageName) Initializes the value for thepackageNameattribute.renderSchema(boolean renderSchema) Initializes the value for therenderSchemaattribute.Initializes the value for theversionattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxInterfaceinstance. 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:
thisbuilder for use in a chained invocation
-
appName
Initializes the value for theappNameattribute.- Parameters:
appName- The value for appName- Returns:
thisbuilder for use in a chained invocation
-
version
Initializes the value for theversionattribute.- Parameters:
version- The value for version- Returns:
thisbuilder for use in a chained invocation
-
appDescription
Initializes the optional valueappDescriptionto appDescription.- Parameters:
appDescription- The value for appDescription- Returns:
thisbuilder for chained invocation
-
appDescription
Initializes the optional valueappDescriptionto appDescription.- Parameters:
appDescription- The value for appDescription- Returns:
thisbuilder for use in a chained invocation
-
infoEmail
Initializes the optional valueinfoEmailto infoEmail.- Parameters:
infoEmail- The value for infoEmail- Returns:
thisbuilder for chained invocation
-
infoEmail
Initializes the optional valueinfoEmailto infoEmail.- Parameters:
infoEmail- The value for infoEmail- Returns:
thisbuilder for use in a chained invocation
-
imports
Initializes the value for theimportsattribute.- Parameters:
imports- The value for imports- Returns:
thisbuilder for use in a chained invocation
-
description
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for chained invocation
-
description
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
packageName
Initializes the value for thepackageNameattribute.- Parameters:
packageName- The value for packageName- Returns:
thisbuilder for use in a chained invocation
-
classname
Initializes the value for theclassnameattribute.- Parameters:
classname- The value for classname- Returns:
thisbuilder for use in a chained invocation
-
generatedAnnotationClass
public final ImmutableCtxInterface.Builder generatedAnnotationClass(String generatedAnnotationClass) Initializes the value for thegeneratedAnnotationClassattribute.- Parameters:
generatedAnnotationClass- The value for generatedAnnotationClass- Returns:
thisbuilder for use in a chained invocation
-
generatorClass
Initializes the value for thegeneratorClassattribute.- Parameters:
generatorClass- The value for generatorClass- Returns:
thisbuilder for use in a chained invocation
-
generatedDate
Initializes the optional valuegeneratedDateto generatedDate.- Parameters:
generatedDate- The value for generatedDate- Returns:
thisbuilder for chained invocation
-
generatedDate
Initializes the optional valuegeneratedDateto generatedDate.- Parameters:
generatedDate- The value for generatedDate- Returns:
thisbuilder for use in a chained invocation
-
implementations
Initializes the value for theimplementationsattribute.- Parameters:
implementations- The value for implementations- Returns:
thisbuilder for use in a chained invocation
-
renderSchema
Initializes the value for therenderSchemaattribute.- Parameters:
renderSchema- The value for renderSchema- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableCtxInterface.- Returns:
- An immutable instance of CtxInterface
- Throws:
IllegalStateException- if any required attributes are missing
-