All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.testvagrant.mdb.builders.DeviceDetailsBuilder Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy