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