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

org.touchbit.testrail4j.jackson2.model.Options__1 Maven / Gradle / Ivy

The newest version!

package org.touchbit.testrail4j.jackson2.model;

import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "format",
    "has_actual",
    "has_expected",
    "is_required",
    "rows"
})
public class Options__1 {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("format")
    private String format;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("has_actual")
    private Boolean hasActual;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("has_expected")
    private Boolean hasExpected;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_required")
    private Boolean isRequired;
    @JsonProperty("rows")
    private String rows;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * No args constructor for use in serialization
     * 
     */
    public Options__1() {
    }

    /**
     * 
     * @param isRequired
     * @param hasExpected
     * @param format
     * @param hasActual
     * @param rows
     */
    public Options__1(String format, Boolean hasActual, Boolean hasExpected, Boolean isRequired, String rows) {
        super();
        this.format = format;
        this.hasActual = hasActual;
        this.hasExpected = hasExpected;
        this.isRequired = isRequired;
        this.rows = rows;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("format")
    public String getFormat() {
        return format;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("format")
    public void setFormat(String format) {
        this.format = format;
    }

    public Options__1 withFormat(String format) {
        this.format = format;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("has_actual")
    public Boolean getHasActual() {
        return hasActual;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("has_actual")
    public void setHasActual(Boolean hasActual) {
        this.hasActual = hasActual;
    }

    public Options__1 withHasActual(Boolean hasActual) {
        this.hasActual = hasActual;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("has_expected")
    public Boolean getHasExpected() {
        return hasExpected;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("has_expected")
    public void setHasExpected(Boolean hasExpected) {
        this.hasExpected = hasExpected;
    }

    public Options__1 withHasExpected(Boolean hasExpected) {
        this.hasExpected = hasExpected;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_required")
    public Boolean getIsRequired() {
        return isRequired;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("is_required")
    public void setIsRequired(Boolean isRequired) {
        this.isRequired = isRequired;
    }

    public Options__1 withIsRequired(Boolean isRequired) {
        this.isRequired = isRequired;
        return this;
    }

    @JsonProperty("rows")
    public String getRows() {
        return rows;
    }

    @JsonProperty("rows")
    public void setRows(String rows) {
        this.rows = rows;
    }

    public Options__1 withRows(String rows) {
        this.rows = rows;
        return this;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public Options__1 withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(Options__1 .class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("format");
        sb.append('=');
        sb.append(((this.format == null)?"":this.format));
        sb.append(',');
        sb.append("hasActual");
        sb.append('=');
        sb.append(((this.hasActual == null)?"":this.hasActual));
        sb.append(',');
        sb.append("hasExpected");
        sb.append('=');
        sb.append(((this.hasExpected == null)?"":this.hasExpected));
        sb.append(',');
        sb.append("isRequired");
        sb.append('=');
        sb.append(((this.isRequired == null)?"":this.isRequired));
        sb.append(',');
        sb.append("rows");
        sb.append('=');
        sb.append(((this.rows == null)?"":this.rows));
        sb.append(',');
        sb.append("additionalProperties");
        sb.append('=');
        sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
        sb.append(',');
        if (sb.charAt((sb.length()- 1)) == ',') {
            sb.setCharAt((sb.length()- 1), ']');
        } else {
            sb.append(']');
        }
        return sb.toString();
    }

    @Override
    public int hashCode() {
        int result = 1;
        result = ((result* 31)+((this.isRequired == null)? 0 :this.isRequired.hashCode()));
        result = ((result* 31)+((this.hasExpected == null)? 0 :this.hasExpected.hashCode()));
        result = ((result* 31)+((this.format == null)? 0 :this.format.hashCode()));
        result = ((result* 31)+((this.hasActual == null)? 0 :this.hasActual.hashCode()));
        result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
        result = ((result* 31)+((this.rows == null)? 0 :this.rows.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Options__1) == false) {
            return false;
        }
        Options__1 rhs = ((Options__1) other);
        return (((((((this.isRequired == rhs.isRequired)||((this.isRequired!= null)&&this.isRequired.equals(rhs.isRequired)))&&((this.hasExpected == rhs.hasExpected)||((this.hasExpected!= null)&&this.hasExpected.equals(rhs.hasExpected))))&&((this.format == rhs.format)||((this.format!= null)&&this.format.equals(rhs.format))))&&((this.hasActual == rhs.hasActual)||((this.hasActual!= null)&&this.hasActual.equals(rhs.hasActual))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.rows == rhs.rows)||((this.rows!= null)&&this.rows.equals(rhs.rows))));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy