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.Typeinstance.from(TypeValidation instance) Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeValidationinstance.Initializes the value for thetypeNameattribute.validation(Validation validation) Initializes the value for thevalidationattribute.
-
Method Details
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.Typeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeValidationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
typeName
Initializes the value for thetypeNameattribute.- Parameters:
typeName- The value for typeName- Returns:
thisbuilder for use in a chained invocation
-
validation
Initializes the value for thevalidationattribute.- Parameters:
validation- The value for validation- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableTypeValidation.- Returns:
- An immutable instance of TypeValidation
- Throws:
IllegalStateException- if any required attributes are missing
-