Class ErrorCodeValidationSetting.Builder
java.lang.Object
com.dna.jopt.framework.codedefinition.ErrorCodeValidationSetting.Builder
- Enclosing class:
- ErrorCodeValidationSetting
Builds instances of type
ErrorCodeValidationSetting
.
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 newErrorCodeValidationSetting
.validSoftOverdistance
(boolean validSoftOverdistance) Initializes the value for thevalidSoftOverdistance
attribute.validSoftOvertime
(boolean validSoftOvertime) Initializes the value for thevalidSoftOvertime
attribute.
-
Method Details
-
validSoftOvertime
@CanIgnoreReturnValue public final ErrorCodeValidationSetting.Builder validSoftOvertime(boolean validSoftOvertime) Initializes the value for thevalidSoftOvertime
attribute.If not set, this attribute will have a default value as returned by the initializer of
validSoftOvertime
.- Parameters:
validSoftOvertime
- The value for validSoftOvertime- Returns:
this
builder for use in a chained invocation
-
validSoftOverdistance
@CanIgnoreReturnValue public final ErrorCodeValidationSetting.Builder validSoftOverdistance(boolean validSoftOverdistance) Initializes the value for thevalidSoftOverdistance
attribute.If not set, this attribute will have a default value as returned by the initializer of
validSoftOverdistance
.- Parameters:
validSoftOverdistance
- The value for validSoftOverdistance- Returns:
this
builder for use in a chained invocation
-
build
Builds a newErrorCodeValidationSetting
.- Returns:
- An immutable instance of ErrorCodeValidationSetting
- Throws:
IllegalStateException
- if any required attributes are missing
-