Class ErrorCodeValidationSetting.Builder

java.lang.Object
com.dna.jopt.framework.codedefinition.ErrorCodeValidationSetting.Builder
Enclosing class:
ErrorCodeValidationSetting

@NotThreadSafe public static final class ErrorCodeValidationSetting.Builder extends Object
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 Details

    • validSoftOvertime

      @CanIgnoreReturnValue public final ErrorCodeValidationSetting.Builder validSoftOvertime(boolean validSoftOvertime)
      Initializes the value for the validSoftOvertime 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 the validSoftOverdistance 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

      Returns:
      An immutable instance of ErrorCodeValidationSetting
      Throws:
      IllegalStateException - if any required attributes are missing