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

com.indeed.rabbitmq.admin.pojo.Parameter Maven / Gradle / Ivy


package com.indeed.rabbitmq.admin.pojo;

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.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * Defines a parameter on a RabbitMQ component.
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "vhost",
    "component",
    "name",
    "value"
})
public class Parameter {

    /**
     * The virtual host that contains this parameter.
     * 
     */
    @JsonProperty("vhost")
    @JsonPropertyDescription("The virtual host that contains this parameter.")
    private java.lang.String vhost;
    /**
     * The component to which this parameter applies.
     * 
     */
    @JsonProperty("component")
    @JsonPropertyDescription("The component to which this parameter applies.")
    private java.lang.String component;
    /**
     * The parameter name.
     * 
     */
    @JsonProperty("name")
    @JsonPropertyDescription("The parameter name.")
    private java.lang.String name;
    /**
     * The parameter value represented as a Map.
     * 
     */
    @JsonProperty("value")
    @JsonPropertyDescription("The parameter value represented as a Map.")
    private Map value;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * The virtual host that contains this parameter.
     * 
     */
    @JsonProperty("vhost")
    public java.lang.String getVhost() {
        return vhost;
    }

    /**
     * The virtual host that contains this parameter.
     * 
     */
    @JsonProperty("vhost")
    public void setVhost(java.lang.String vhost) {
        this.vhost = vhost;
    }

    public Parameter withVhost(java.lang.String vhost) {
        this.vhost = vhost;
        return this;
    }

    /**
     * The component to which this parameter applies.
     * 
     */
    @JsonProperty("component")
    public java.lang.String getComponent() {
        return component;
    }

    /**
     * The component to which this parameter applies.
     * 
     */
    @JsonProperty("component")
    public void setComponent(java.lang.String component) {
        this.component = component;
    }

    public Parameter withComponent(java.lang.String component) {
        this.component = component;
        return this;
    }

    /**
     * The parameter name.
     * 
     */
    @JsonProperty("name")
    public java.lang.String getName() {
        return name;
    }

    /**
     * The parameter name.
     * 
     */
    @JsonProperty("name")
    public void setName(java.lang.String name) {
        this.name = name;
    }

    public Parameter withName(java.lang.String name) {
        this.name = name;
        return this;
    }

    /**
     * The parameter value represented as a Map.
     * 
     */
    @JsonProperty("value")
    public Map getValue() {
        return value;
    }

    /**
     * The parameter value represented as a Map.
     * 
     */
    @JsonProperty("value")
    public void setValue(Map value) {
        this.value = value;
    }

    public Parameter withValue(Map value) {
        this.value = value;
        return this;
    }

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

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

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

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

    @Override
    public boolean equals(java.lang.Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Parameter) == false) {
            return false;
        }
        Parameter rhs = ((Parameter) other);
        return ((((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.vhost == rhs.vhost)||((this.vhost!= null)&&this.vhost.equals(rhs.vhost))))&&((this.component == rhs.component)||((this.component!= null)&&this.component.equals(rhs.component))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.value == rhs.value)||((this.value!= null)&&this.value.equals(rhs.value))));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy