com.testvagrant.monitor.requests.builders.BuildsRequestBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optimus-monitor Show documentation
Show all versions of optimus-monitor Show documentation
The Java Client provides access to Optimus cloud for all java based projects.
The newest version!
package com.testvagrant.monitor.requests.builders;
import com.testvagrant.monitor.requests.Build;
import java.util.Date;
public class BuildsRequestBuilder {
private Build builds = new Build();
public BuildsRequestBuilder() {
Date date = new Date();
builds.setBuildEndTime(date);
builds.setBuildStartTime(date);
builds.setScenariosCount(0);
builds.setScenarioSuccessRate("0.0");
}
public BuildsRequestBuilder withBuildId(String id) {
builds.setId(id);
return this;
}
public BuildsRequestBuilder withBuildStartTime(Date buildStartTime) {
builds.setBuildStartTime(buildStartTime);
return this;
}
public BuildsRequestBuilder withRunMode(String runMode) {
builds.setRunMode(runMode);
return this;
}
public BuildsRequestBuilder withBuildEndTime(Date buildEndTime) {
builds.setBuildEndTime(buildEndTime);
return this;
}
public BuildsRequestBuilder withScenarioCount(int count) {
builds.setScenariosCount(count);
return this;
}
public BuildsRequestBuilder withScenarioSuccessRate(String scenarioSuccessRate) {
builds.setScenarioSuccessRate(scenarioSuccessRate);
return this;
}
public Build build() {
return builds;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy