Add license header for java files
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / onap / msb / apiroute / wrapper / dao / route / bean / Spec.java
1 /*******************************************************************************
2  * Copyright 2016-2017 ZTE, Inc. and others.
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * 
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  * 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  ******************************************************************************/
16 package org.onap.msb.apiroute.wrapper.dao.route.bean;
17
18 import lombok.AllArgsConstructor;
19 import lombok.Getter;
20 import lombok.NoArgsConstructor;
21 import lombok.Setter;
22
23 @AllArgsConstructor
24 @NoArgsConstructor
25 @Getter @Setter
26 public class Spec {
27     private String visualRange = "";
28     private String url = "";
29     private String publish_port;
30     private String host = "";
31     private String apijson = "";
32     private String apijsontype = "";
33     private String metricsUrl = "";
34     private String consulServiceName = "";
35     private String useOwnUpstream = "";
36     private String publish_protocol = "";
37     private boolean enable_ssl = false;
38     private String control = "";
39     private Node[] nodes;
40
41     /*
42     @Override
43     public boolean equals(Object o) {
44         if (this == o) return true;
45         if (o == null || getClass() != o.getClass()) return false;
46         Spec spec = (Spec) o;
47         return Objects.equals(enable_ssl, spec.enable_ssl) &&
48                 Objects.equals(visualRange, spec.visualRange) &&
49                 Objects.equals(url, spec.url) &&
50                 Objects.equals(publish_port, spec.publish_port) &&
51                 Objects.equals(host, spec.host) &&
52                 Objects.equals(apijson, spec.apijson) &&
53                 Objects.equals(apijsontype, spec.apijsontype) &&
54                 Objects.equals(metricsUrl, spec.metricsUrl) &&
55                 Objects.equals(consulServiceName, spec.consulServiceName) &&
56                 Objects.equals(useOwnUpstream, spec.useOwnUpstream) &&
57                 Objects.equals(publish_protocol, spec.publish_protocol) &&
58                 Objects.equals(control, spec.control) &&
59                 Arrays.equals(nodes, spec.nodes);
60     }
61
62     @Override
63     public int hashCode() {
64         return Objects.hash(visualRange, url, publish_port, host, apijson, apijsontype, metricsUrl, consulServiceName, useOwnUpstream, publish_protocol, enable_ssl, control, nodes);
65     }
66     */
67 }