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

org.openapitools.codegen.CodegenServerVariable Maven / Gradle / Ivy

package org.openapitools.codegen;

import java.util.List;
import java.util.Objects;

public class CodegenServerVariable {
    public String name;
    public String defaultValue;
    public String description;
    public List enumValues;
    public String value;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CodegenServerVariable that = (CodegenServerVariable) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(defaultValue, that.defaultValue) &&
                Objects.equals(description, that.description) &&
                Objects.equals(enumValues, that.enumValues) &&
                Objects.equals(value, that.value);
    }

    @Override
    public int hashCode() {

        return Objects.hash(name, defaultValue, description, enumValues, value);
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("CodegenServerVariable{");
        sb.append("name='").append(name).append('\'');
        sb.append(", defaultValue='").append(defaultValue).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append(", enumValues=").append(enumValues);
        sb.append(", value='").append(value).append('\'');
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy