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

org.touchbit.testrail4j.jackson2.model.TRResultFieldConfig 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({
    "context",
    "id",
    "options"
})
public class TRResultFieldConfig {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("context")
    private Context__1 context;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("id")
    private String id;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("options")
    private Options__1 options;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

    /**
     * 
     * @param context
     * @param options
     * @param id
     */
    public TRResultFieldConfig(Context__1 context, String id, Options__1 options) {
        super();
        this.context = context;
        this.id = id;
        this.options = options;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("context")
    public Context__1 getContext() {
        return context;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("context")
    public void setContext(Context__1 context) {
        this.context = context;
    }

    public TRResultFieldConfig withContext(Context__1 context) {
        this.context = context;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("id")
    public String getId() {
        return id;
    }

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

    public TRResultFieldConfig withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("options")
    public Options__1 getOptions() {
        return options;
    }

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("options")
    public void setOptions(Options__1 options) {
        this.options = options;
    }

    public TRResultFieldConfig withOptions(Options__1 options) {
        this.options = options;
        return this;
    }

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

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

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

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(TRResultFieldConfig.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("context");
        sb.append('=');
        sb.append(((this.context == null)?"":this.context));
        sb.append(',');
        sb.append("id");
        sb.append('=');
        sb.append(((this.id == null)?"":this.id));
        sb.append(',');
        sb.append("options");
        sb.append('=');
        sb.append(((this.options == null)?"":this.options));
        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.context == null)? 0 :this.context.hashCode()));
        result = ((result* 31)+((this.options == null)? 0 :this.options.hashCode()));
        result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
        result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof TRResultFieldConfig) == false) {
            return false;
        }
        TRResultFieldConfig rhs = ((TRResultFieldConfig) other);
        return (((((this.context == rhs.context)||((this.context!= null)&&this.context.equals(rhs.context)))&&((this.options == rhs.options)||((this.options!= null)&&this.options.equals(rhs.options))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy