1 package org.onap.msb.apiroute.wrapper.dao.route.bean;
3 import org.onap.msb.apiroute.wrapper.dao.DAOConstants;
5 import lombok.AllArgsConstructor;
7 import lombok.NoArgsConstructor;
14 public class RouteInfo {
15 private String kind = DAOConstants.ROUTE_KIND;
16 private String apiVersion = "";
17 private String status = "";
18 private Metadata metadata;
28 "name" : "kubernetes",
29 "namespace" : "default",
30 "uid" : "0b6f198e-c6ab-11e6-86aa-fa163ee2118b",
31 "creationTimestamp" : "2016-12-20T11:54:21Z",
32 "updateTimestamp" : "",
34 "component" : "apiserver",
35 "provider" : "kubernetes"
47 "consulServiceName" : ""
48 "useOwnUpstream" : "" //是否使用该服务独立的upstream转发
49 "publishProtocol" : "", //发布地址使用http还是http协议
50 "enable_ssl" : "0|1", //转发时,使用http还是http转发。http:0/https:1
51 "controll" : "", //是否可以修改
63 public boolean equals(Object o) {
64 if (this == o) return true;
65 if (o == null || getClass() != o.getClass()) return false;
66 RouteInfo that = (RouteInfo) o;
67 return Objects.equals(kind, that.kind) &&
68 Objects.equals(apiVersion, that.apiVersion) &&
69 Objects.equals(status, that.status) &&
70 Objects.equals(metadata, that.metadata) &&
71 Objects.equals(spec, that.spec);
75 public int hashCode() {
76 return Objects.hash(kind, apiVersion, status, metadata, spec);