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

com.emc.vipr.model.sys.healthmonitor.TestParam Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2013 EMC Corporation
 * All Rights Reserved
 */
package com.emc.vipr.model.sys.healthmonitor;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Represents test details - name, value and its status (if any) as returned by diagtool.
 */
@XmlRootElement(name = "param")
public class TestParam {

    public TestParam() {
    }

    public TestParam(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public TestParam(String key, String value, String status) {
        this.key = key;
        this.value = value;
        this.status = status;
    }

    private String key;
    private String value;
    private String status;

    @XmlElement(name = "key")
    public String getKey() {
        return key;
    }

    @XmlElement(name = "value")
    public String getValue() {
        return value;
    }

    @XmlElement(name = "status")
    public String getStatus() {
        return status;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return key + "=" + value + (status != null ? " [" + status + "]" : "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy