com.rabbitmq.http.client.domain.BindingInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-client Show documentation
Show all versions of http-client Show documentation
Java client for the RabbitMQ HTTP API
The newest version!
/*
* Copyright 2015-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.rabbitmq.http.client.domain;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
@SuppressWarnings("unused")
public class BindingInfo {
private String vhost;
private String source;
private String destination;
@JsonProperty("destination_type")
private DestinationType destinationType;
@JsonProperty("routing_key")
private String routingKey;
private Map arguments;
@JsonProperty("properties_key")
private String propertiesKey;
public String getVhost() {
return vhost;
}
public void setVhost(String vhost) {
this.vhost = vhost;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public void setDestinationType(DestinationType destinationType){
this.destinationType = destinationType;
}
public void setDestinationType(String destinationType) {
if(destinationType != null) {
this.destinationType = DestinationType.valueOf(destinationType.toUpperCase());
}
}
public DestinationType getDestinationType(){
return destinationType;
}
public String getRoutingKey() {
return routingKey;
}
public void setRoutingKey(String routingKey) {
this.routingKey = routingKey;
}
public Map getArguments() {
return arguments;
}
public void setArguments(Map arguments) {
this.arguments = arguments;
}
public String getPropertiesKey() {
return propertiesKey;
}
public void setPropertiesKey(String propertiesKey) {
this.propertiesKey = propertiesKey;
}
@Override
public String toString() {
return "BindingInfo{" +
"vhost='" + vhost + '\'' +
", source='" + source + '\'' +
", destination='" + destination + '\'' +
", destinationType='" + destinationType + '\'' +
", routingKey='" + routingKey + '\'' +
", arguments=" + arguments +
", propertiesKey='" + propertiesKey + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy