Class ImmutableCtxPropertyExt.Builder
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxPropertyExt.Builder
- Enclosing class:
ImmutableCtxPropertyExt
@Generated(from="CtxPropertyExt",
generator="Immutables")
public static final class ImmutableCtxPropertyExt.Builder
extends Object
Builds instances of type
ImmutableCtxPropertyExt
.
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 TypeMethodDescriptionbuild()
Builds a newImmutableCtxPropertyExt
.descriptionString
(@Nullable String descriptionString) Initializes the value for thedescriptionString
attribute.enumClassName
(@Nullable String enumClassName) Initializes the value for theenumClassName
attribute.enumSchemaOptions
(String enumSchemaOptions) Initializes the optional valueenumSchemaOptions
to enumSchemaOptions.enumSchemaOptions
(Optional<String> enumSchemaOptions) Initializes the optional valueenumSchemaOptions
to enumSchemaOptions.enumTypeName
(@Nullable String enumTypeName) Initializes the value for theenumTypeName
attribute.from
(CtxPropertyExt instance) Fill a builder with attribute values from the providedCtxPropertyExt
instance.Initializes the value for thegetter
attribute.innerDatatypeWithEnum
(@Nullable String innerDatatypeWithEnum) Initializes the value for theinnerDatatypeWithEnum
attribute.isByteArray
(boolean isByteArray) Initializes the value for theisByteArray
attribute.isEqualsPrimitive
(boolean isEqualsPrimitive) Initializes the value for theisEqualsPrimitive
attribute.isNullable
(boolean isNullable) Initializes the value for theisNullable
attribute.isRequireNonNull
(boolean isRequireNonNull) Initializes the value for theisRequireNonNull
attribute.isUseBigDecimalForDouble
(boolean isUseBigDecimalForDouble) Initializes the value for theisUseBigDecimalForDouble
attribute.isUseEmptyCollections
(boolean isUseEmptyCollections) Initializes the value for theisUseEmptyCollections
attribute.jsonb
(boolean jsonb) Initializes the value for thejsonb
attribute.jsonPropertyConstant
(@Nullable String jsonPropertyConstant) Initializes the value for thejsonPropertyConstant
attribute.multipartType
(@Nullable String multipartType) Initializes the value for themultipartType
attribute.schemaOptions
(String schemaOptions) Initializes the optional valueschemaOptions
to schemaOptions.schemaOptions
(Optional<String> schemaOptions) Initializes the optional valueschemaOptions
to schemaOptions.Initializes the value for thesetter
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxPropertyExt
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
-
innerDatatypeWithEnum
public final ImmutableCtxPropertyExt.Builder innerDatatypeWithEnum(@Nullable String innerDatatypeWithEnum) Initializes the value for theinnerDatatypeWithEnum
attribute.- Parameters:
innerDatatypeWithEnum
- The value for innerDatatypeWithEnum (can benull
)- Returns:
this
builder for use in a chained invocation
-
enumClassName
Initializes the value for theenumClassName
attribute.- Parameters:
enumClassName
- The value for enumClassName (can benull
)- Returns:
this
builder for use in a chained invocation
-
enumTypeName
Initializes the value for theenumTypeName
attribute.- Parameters:
enumTypeName
- The value for enumTypeName (can benull
)- Returns:
this
builder for use in a chained invocation
-
enumSchemaOptions
Initializes the optional valueenumSchemaOptions
to enumSchemaOptions.- Parameters:
enumSchemaOptions
- The value for enumSchemaOptions- Returns:
this
builder for chained invocation
-
enumSchemaOptions
Initializes the optional valueenumSchemaOptions
to enumSchemaOptions.- Parameters:
enumSchemaOptions
- The value for enumSchemaOptions- Returns:
this
builder for use in a chained invocation
-
schemaOptions
Initializes the optional valueschemaOptions
to schemaOptions.- Parameters:
schemaOptions
- The value for schemaOptions- Returns:
this
builder for chained invocation
-
schemaOptions
Initializes the optional valueschemaOptions
to schemaOptions.- Parameters:
schemaOptions
- The value for schemaOptions- Returns:
this
builder for use in a chained invocation
-
isUseBigDecimalForDouble
public final ImmutableCtxPropertyExt.Builder isUseBigDecimalForDouble(boolean isUseBigDecimalForDouble) Initializes the value for theisUseBigDecimalForDouble
attribute.- Parameters:
isUseBigDecimalForDouble
- The value for isUseBigDecimalForDouble- Returns:
this
builder for use in a chained invocation
-
isUseEmptyCollections
Initializes the value for theisUseEmptyCollections
attribute.- Parameters:
isUseEmptyCollections
- The value for isUseEmptyCollections- Returns:
this
builder for use in a chained invocation
-
isByteArray
Initializes the value for theisByteArray
attribute.- Parameters:
isByteArray
- The value for isByteArray- 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
-
getter
Initializes the value for thegetter
attribute.- Parameters:
getter
- The value for getter- Returns:
this
builder for use in a chained invocation
-
setter
Initializes the value for thesetter
attribute.- Parameters:
setter
- The value for setter- 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
-
descriptionString
Initializes the value for thedescriptionString
attribute.- Parameters:
descriptionString
- The value for descriptionString (can benull
)- Returns:
this
builder for use in a chained invocation
-
multipartType
Initializes the value for themultipartType
attribute.- Parameters:
multipartType
- The value for multipartType (can benull
)- Returns:
this
builder for use in a chained invocation
-
jsonPropertyConstant
public final ImmutableCtxPropertyExt.Builder jsonPropertyConstant(@Nullable String jsonPropertyConstant) Initializes the value for thejsonPropertyConstant
attribute.- Parameters:
jsonPropertyConstant
- The value for jsonPropertyConstant (can benull
)- Returns:
this
builder for use in a chained invocation
-
isNullable
Initializes the value for theisNullable
attribute.- Parameters:
isNullable
- The value for isNullable- Returns:
this
builder for use in a chained invocation
-
isRequireNonNull
Initializes the value for theisRequireNonNull
attribute.- Parameters:
isRequireNonNull
- The value for isRequireNonNull- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableCtxPropertyExt
.- Returns:
- An immutable instance of CtxPropertyExt
- Throws:
IllegalStateException
- if any required attributes are missing
-