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 thevalidSoftOverdistanceattribute.validSoftOvertime(boolean validSoftOvertime) Initializes the value for thevalidSoftOvertimeattribute.
-
Method Details
-
validSoftOvertime
@CanIgnoreReturnValue public final ErrorCodeValidationSetting.Builder validSoftOvertime(boolean validSoftOvertime) Initializes the value for thevalidSoftOvertimeattribute.If not set, this attribute will have a default value as returned by the initializer of
validSoftOvertime.- Parameters:
validSoftOvertime- The value for validSoftOvertime- Returns:
thisbuilder for use in a chained invocation
-
validSoftOverdistance
@CanIgnoreReturnValue public final ErrorCodeValidationSetting.Builder validSoftOverdistance(boolean validSoftOverdistance) Initializes the value for thevalidSoftOverdistanceattribute.If not set, this attribute will have a default value as returned by the initializer of
validSoftOverdistance.- Parameters:
validSoftOverdistance- The value for validSoftOverdistance- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newErrorCodeValidationSetting.- Returns:
- An immutable instance of ErrorCodeValidationSetting
- Throws:
IllegalStateException- if any required attributes are missing
-