Package io.dialob.executor.model
Class ImmutableValueSetId.Builder
- java.lang.Object
-
- io.dialob.executor.model.ImmutableValueSetId.Builder
-
- Enclosing class:
- ImmutableValueSetId
@NotThreadSafe public static final class ImmutableValueSetId.Builder extends Object
Builds instances of typeImmutableValueSetId. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableValueSetIdbuild()Builds a newImmutableValueSetId.ImmutableValueSetId.Builderfrom(ValueSetId instance)Fill a builder with attribute values from the providedValueSetIdinstance.ImmutableValueSetId.BuildervalueSetId(String valueSetId)Initializes the value for thevalueSetIdattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableValueSetId.Builder from(ValueSetId instance)
Fill a builder with attribute values from the providedValueSetIdinstance. 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
-
valueSetId
@CanIgnoreReturnValue public final ImmutableValueSetId.Builder valueSetId(String valueSetId)
Initializes the value for thevalueSetIdattribute.- Parameters:
valueSetId- The value for valueSetId- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableValueSetId build()
Builds a newImmutableValueSetId.- Returns:
- An immutable instance of ValueSetId
- Throws:
IllegalStateException- if any required attributes are missing
-
-