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

com.testdroid.api.model.APIVisualTestAccess Maven / Gradle / Ivy

The newest version!
package com.testdroid.api.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.testdroid.api.APIEntity;

/**
 * @author Artur Ćwikliński 
 */
public class APIVisualTestAccess extends APIEntity {

    private boolean enabled;

    private String apiKey;

    public APIVisualTestAccess() {
    }

    public APIVisualTestAccess(Long id, boolean status, String apiKey) {
        super(id);
        this.enabled = status;
        this.apiKey = apiKey;
    }

    public APIVisualTestAccess(boolean status, String apiKey) {
        this.enabled = status;
        this.apiKey = apiKey;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    @Override
    @JsonIgnore
    protected  void clone(T from) {
        APIVisualTestAccess visualTestAccess = (APIVisualTestAccess) from;
        cloneBase(from);
        this.enabled = visualTestAccess.enabled;
        this.apiKey = visualTestAccess.apiKey;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy