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

com.indeed.rabbitmq.admin.pojo.Capabilities 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.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "exchange_exchange_bindings",
    "consumer_cancel_notify",
    "publisher_confirms",
    "basic.nack"
})
public class Capabilities {

    @JsonProperty("exchange_exchange_bindings")
    private Boolean exchangeExchangeBindings;
    @JsonProperty("consumer_cancel_notify")
    private Boolean consumerCancelNotify;
    @JsonProperty("publisher_confirms")
    private Boolean publisherConfirms;
    @JsonProperty("basic.nack")
    private Boolean basicNack;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    @JsonProperty("exchange_exchange_bindings")
    public Boolean getExchangeExchangeBindings() {
        return exchangeExchangeBindings;
    }

    @JsonProperty("exchange_exchange_bindings")
    public void setExchangeExchangeBindings(Boolean exchangeExchangeBindings) {
        this.exchangeExchangeBindings = exchangeExchangeBindings;
    }

    public Capabilities withExchangeExchangeBindings(Boolean exchangeExchangeBindings) {
        this.exchangeExchangeBindings = exchangeExchangeBindings;
        return this;
    }

    @JsonProperty("consumer_cancel_notify")
    public Boolean getConsumerCancelNotify() {
        return consumerCancelNotify;
    }

    @JsonProperty("consumer_cancel_notify")
    public void setConsumerCancelNotify(Boolean consumerCancelNotify) {
        this.consumerCancelNotify = consumerCancelNotify;
    }

    public Capabilities withConsumerCancelNotify(Boolean consumerCancelNotify) {
        this.consumerCancelNotify = consumerCancelNotify;
        return this;
    }

    @JsonProperty("publisher_confirms")
    public Boolean getPublisherConfirms() {
        return publisherConfirms;
    }

    @JsonProperty("publisher_confirms")
    public void setPublisherConfirms(Boolean publisherConfirms) {
        this.publisherConfirms = publisherConfirms;
    }

    public Capabilities withPublisherConfirms(Boolean publisherConfirms) {
        this.publisherConfirms = publisherConfirms;
        return this;
    }

    @JsonProperty("basic.nack")
    public Boolean getBasicNack() {
        return basicNack;
    }

    @JsonProperty("basic.nack")
    public void setBasicNack(Boolean basicNack) {
        this.basicNack = basicNack;
    }

    public Capabilities withBasicNack(Boolean basicNack) {
        this.basicNack = basicNack;
        return this;
    }

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

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

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

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

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Capabilities) == false) {
            return false;
        }
        Capabilities rhs = ((Capabilities) other);
        return ((((((this.exchangeExchangeBindings == rhs.exchangeExchangeBindings)||((this.exchangeExchangeBindings!= null)&&this.exchangeExchangeBindings.equals(rhs.exchangeExchangeBindings)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.basicNack == rhs.basicNack)||((this.basicNack!= null)&&this.basicNack.equals(rhs.basicNack))))&&((this.consumerCancelNotify == rhs.consumerCancelNotify)||((this.consumerCancelNotify!= null)&&this.consumerCancelNotify.equals(rhs.consumerCancelNotify))))&&((this.publisherConfirms == rhs.publisherConfirms)||((this.publisherConfirms!= null)&&this.publisherConfirms.equals(rhs.publisherConfirms))));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy