Package dk.mada.jaxrs.model.types
Class ImmutableTypeValidation.Builder
java.lang.Object
dk.mada.jaxrs.model.types.ImmutableTypeValidation.Builder
- Enclosing class:
ImmutableTypeValidation
@Generated(from="TypeValidation",
generator="Immutables")
public static final class ImmutableTypeValidation.Builder
extends Object
Builds instances of type
ImmutableTypeValidation
.
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 newImmutableTypeValidation
.Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.Type
instance.from
(TypeValidation instance) Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeValidation
instance.Initializes the value for thetypeName
attribute.validation
(Validation validation) Initializes the value for thevalidation
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.Type
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeValidation
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
typeName
Initializes the value for thetypeName
attribute.- Parameters:
typeName
- The value for typeName- Returns:
this
builder for use in a chained invocation
-
validation
Initializes the value for thevalidation
attribute.- Parameters:
validation
- The value for validation- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableTypeValidation
.- Returns:
- An immutable instance of TypeValidation
- Throws:
IllegalStateException
- if any required attributes are missing
-