Add license header for java files
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / onap / msb / apiroute / wrapper / dao / service / 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.service.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 path = "";
30     private String publish_port;
31     private String host = "";
32     private String protocol = "";
33     private String lb_policy = "";
34     private boolean enable_ssl = false;
35     private Node[] nodes;
36
37     /*
38     @Override
39     public boolean equals(Object o) {
40         if (this == o) return true;
41         if (o == null || getClass() != o.getClass()) return false;
42         Spec spec = (Spec) o;
43         return Objects.equals(enable_ssl, spec.enable_ssl) &&
44                 Objects.equals(visualRange, spec.visualRange) &&
45                 Objects.equals(url, spec.url) &&
46                 Objects.equals(path, spec.path) &&
47                 Objects.equals(publish_port, spec.publish_port) &&
48                 Objects.equals(host, spec.host) &&
49                 Objects.equals(protocol, spec.protocol) &&
50                 Objects.equals(lb_policy, spec.lb_policy) &&
51                 Arrays.equals(nodes, spec.nodes);
52     }
53
54     @Override
55     public int hashCode() {
56         return Objects.hash(visualRange, url, path, publish_port, host, protocol, lb_policy, enable_ssl, nodes);
57     }
58     */
59 }