com.testvagrant.mdb.builders.DeviceDetailsBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optimusmonitor Show documentation
Show all versions of optimusmonitor Show documentation
The Java Client provides access to Optimus cloud for all java based projects.
The newest version!
package com.testvagrant.mdb.builders;
import com.testvagrant.monitor.entities.DeviceDetails;
import com.testvagrant.monitor.entities.device.DeviceType;
import com.testvagrant.monitor.entities.device.Platform;
import com.testvagrant.monitor.entities.device.Status;
public class DeviceDetailsBuilder {
private DeviceDetails deviceDetails;
public DeviceDetailsBuilder() {
deviceDetails = new DeviceDetails();
}
public DeviceDetailsBuilder withDeviceUdid(String deviceUdid) {
deviceDetails.setUdid(deviceUdid);
return this;
}
public DeviceDetailsBuilder withPlatform(Platform platform){
deviceDetails.setPlatform(platform);
return this;
}
public DeviceDetailsBuilder withOSVersion(String osVersion) {
deviceDetails.setPlatformVersion(osVersion);
return this;
}
public DeviceDetailsBuilder withDeviceType(DeviceType deviceType) {
deviceDetails.setRunsOn(deviceType);
return this;
}
public DeviceDetailsBuilder withStatus(Status status) {
deviceDetails.setStatus(status);
return this;
}
public DeviceDetailsBuilder withDeviceName(String deviceName) {
deviceDetails.setDeviceName(deviceName);
return this;
}
public DeviceDetails build() {
return deviceDetails;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy