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

com.capitalone.dashboard.request.CollectorRequest Maven / Gradle / Ivy

There is a newer version: 3.4.53
Show newest version
package com.capitalone.dashboard.request;

import com.capitalone.dashboard.model.Collector;
import com.capitalone.dashboard.model.CollectorType;

import javax.validation.constraints.NotNull;

/**
 * Created by yaf107 on 1/11/16.
 */
public class CollectorRequest {
    @NotNull
    private String name;
    @NotNull
    private CollectorType collectorType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CollectorType getCollectorType() {
        return collectorType;
    }

    public void setCollectorType(CollectorType collectorType) {
        this.collectorType = collectorType;
    }

    public Collector toCollector() {
        Collector collector = new Collector();
        collector.setCollectorType(collectorType);
        collector.setName(name);
        return collector;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy