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

com.ecwid.consul.v1.catalog.model.CatalogService Maven / Gradle / Ivy

package com.ecwid.consul.v1.catalog.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @author Vasily Vasilkov ([email protected])
 */
public class CatalogService {

	@SerializedName("ID")
	private String id;

	@SerializedName("Node")
	private String node;

	@SerializedName("Address")
	private String address;

	@SerializedName("Datacenter")
	private String datacenter;

	@SerializedName("TaggedAddresses")
	private Map taggedAddresses;

	@SerializedName("NodeMeta")
	private Map nodeMeta;

	@SerializedName("ServiceID")
	private String serviceId;

	@SerializedName("ServiceName")
	private String serviceName;

	@SerializedName("ServiceTags")
	private List serviceTags;

	@SerializedName("ServiceAddress")
	private String serviceAddress;

	@SerializedName("ServiceMeta")
	private Map serviceMeta;

	@SerializedName("ServicePort")
	private Integer servicePort;

	@SerializedName("ServiceEnableTagOverride")
	private Boolean serviceEnableTagOverride;

	@SerializedName("CreateIndex")
	private Long createIndex;

	@SerializedName("ModifyIndex")
	private Long modifyIndex;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNode() {
		return node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDatacenter() {
		return datacenter;
	}

	public void setDatacenter(String datacenter) {
		this.datacenter = datacenter;
	}

	public Map getTaggedAddresses() {
		return taggedAddresses;
	}

	public void setTaggedAddresses(Map taggedAddresses) {
		this.taggedAddresses = taggedAddresses;
	}

	public Map getNodeMeta() {
		return nodeMeta;
	}

	public void setNodeMeta(Map nodeMeta) {
		this.nodeMeta = nodeMeta;
	}

	public String getServiceId() {
		return serviceId;
	}

	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public List getServiceTags() {
		return serviceTags;
	}

	public void setServiceTags(List serviceTags) {
		this.serviceTags = serviceTags;
	}

	public String getServiceAddress() {
		return serviceAddress;
	}

	public void setServiceAddress(String serviceAddress) {
		this.serviceAddress = serviceAddress;
	}

	public Map getServiceMeta() {
		return serviceMeta;
	}

	public void setServiceMeta(Map serviceMeta) {
		this.serviceMeta = serviceMeta;
	}

	public Integer getServicePort() {
		return servicePort;
	}

	public void setServicePort(Integer servicePort) {
		this.servicePort = servicePort;
	}

	public Boolean getServiceEnableTagOverride() {
		return serviceEnableTagOverride;
	}

	public void setServiceEnableTagOverride(Boolean serviceEnableTagOverride) {
		this.serviceEnableTagOverride = serviceEnableTagOverride;
	}

	public Long getCreateIndex() {
		return createIndex;
	}

	public void setCreateIndex(Long createIndex) {
		this.createIndex = createIndex;
	}

	public Long getModifyIndex() {
		return modifyIndex;
	}

	public void setModifyIndex(Long modifyIndex) {
		this.modifyIndex = modifyIndex;
	}

	@Override
	public String toString() {
		return "CatalogService{" +
				"id='" + id + '\'' +
				", node='" + node + '\'' +
				", address='" + address + '\'' +
				", datacenter='" + datacenter + '\'' +
				", taggedAddresses=" + taggedAddresses +
				", nodeMeta=" + nodeMeta +
				", serviceId='" + serviceId + '\'' +
				", serviceName='" + serviceName + '\'' +
				", serviceTags=" + serviceTags +
				", serviceAddress='" + serviceAddress + '\'' +
				", serviceMeta=" + serviceMeta +
				", servicePort=" + servicePort +
				", serviceEnableTagOverride=" + serviceEnableTagOverride +
				", createIndex=" + createIndex +
				", modifyIndex=" + modifyIndex +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		CatalogService that = (CatalogService) o;
		return Objects.equals(id, that.id) &&
				Objects.equals(node, that.node) &&
				Objects.equals(address, that.address) &&
				Objects.equals(datacenter, that.datacenter) &&
				Objects.equals(taggedAddresses, that.taggedAddresses) &&
				Objects.equals(nodeMeta, that.nodeMeta) &&
				Objects.equals(serviceId, that.serviceId) &&
				Objects.equals(serviceName, that.serviceName) &&
				Objects.equals(serviceTags, that.serviceTags) &&
				Objects.equals(serviceAddress, that.serviceAddress) &&
				Objects.equals(serviceMeta, that.serviceMeta) &&
				Objects.equals(servicePort, that.servicePort) &&
				Objects.equals(serviceEnableTagOverride, that.serviceEnableTagOverride) &&
				Objects.equals(createIndex, that.createIndex) &&
				Objects.equals(modifyIndex, that.modifyIndex);
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, node, address, datacenter, taggedAddresses, nodeMeta, serviceId, serviceName, serviceTags, serviceAddress, serviceMeta, servicePort, serviceEnableTagOverride, createIndex, modifyIndex);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy