public Swagger2MarkupConfigBuilder withPageBreaks(List<PageBreakLocations> locations) {
        Validate.notNull(locations, "%s must not be null", "locations");
        config.pageBreakLocations = locations;
        return this;
    }
public Swagger2MarkupConfigBuilder withPageBreaks ( List < PageBreakLocations > locations ) { Validate . notNull ( locations , "%s must not be null" , "locations" ) ; config . pageBreakLocations = locations ; return this ; }
Set the page break locations

@param locations List of locations to create new pages
@return this builder