def expected_duration=(expected_duration)
      if expected_duration.nil?
        fail ArgumentError, "expected_duration cannot be nil"
      end

      if expected_duration.to_s.length < 1
        fail ArgumentError, "invalid value for 'expected_duration', the character length must be great than or equal to 1."
      end

      @expected_duration = expected_duration
    end
def expected_duration=(expected_duration)
      if expected_duration.nil?
        fail ArgumentError, "expected_duration cannot be nil"
      end

      if expected_duration.to_s.length < 1
        fail ArgumentError, "invalid value for 'expected_duration', the character length must be great than or equal to 1."
      end

      @expected_duration = expected_duration
    end
Custom attribute writer method with validation
 @param [Object] expected_duration Value to be assigned