// CHECKSTYLE:OFF /** * Source code generated by Fluent Builders Generator * Do not modify this file * See generator home page at: http://code.google.com/p/fluent-builders-generator-eclipse-plugin/ */ package com.intuit.tank.results; import java.util.Date; /* * #%L * Reporting API * %% * Copyright (C) 2011 - 2015 Intuit Inc. * %% * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * #L% */ public class TankResultBuilder extends TankResultBuilderBase<TankResultBuilder> { public static TankResultBuilder tankResult() { return new TankResultBuilder(); } public TankResultBuilder() { super(new TankResult()); } public TankResult build() { return getInstance(); } } class TankResultBuilderBase<GeneratorT extends TankResultBuilderBase<GeneratorT>> { private TankResult instance; protected TankResultBuilderBase(TankResult aInstance) { instance = aInstance; } protected TankResult getInstance() { return instance; } @SuppressWarnings("unchecked") public GeneratorT withResponseTime(int aValue) { instance.setResponseTime(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withJobId(String aValue) { instance.setJobId(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withInstanceId(String aValue) { instance.setInstanceId(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withTimestamp(Date aValue) { instance.setTimeStamp(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withStatusCode(int aValue) { instance.setStatusCode(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withResponseSize(int aValue) { instance.setResponseSize(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withError(boolean aValue) { instance.setError(aValue); return (GeneratorT) this; } @SuppressWarnings("unchecked") public GeneratorT withRequestName(String aValue) { instance.setRequestName(aValue); return (GeneratorT) this; } }