Removed MSB Dependencies
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / msb / entity / Service.java
1 /**
2  * Copyright 2023 ZTE Corporation.
3  * <p>
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  * <p>
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * <p>
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
17 package org.onap.holmes.common.msb.entity;
18
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20
21 import java.io.Serializable;
22 import java.util.List;
23 import java.util.Set;
24
25 @JsonIgnoreProperties(ignoreUnknown = true)
26 public class Service<T> implements Serializable {
27     private static final long serialVersionUID = 1L;
28     private String serviceName;
29     private String version = "";
30     private String url = "";
31     private String protocol = "";
32     private String visualRange = "1";
33     private String lb_policy = "";
34     private String path = "";
35     private Set<T> nodes;
36     private List<KeyValuePair> metadata;
37     private boolean enable_ssl = false;
38
39     public Service() {
40     }
41
42     public boolean isEnable_ssl() {
43         return this.enable_ssl;
44     }
45
46     public void setEnable_ssl(boolean enable_ssl) {
47         this.enable_ssl = enable_ssl;
48     }
49
50     public String getPath() {
51         return this.path;
52     }
53
54     public void setPath(String path) {
55         this.path = path;
56     }
57
58     public String getLb_policy() {
59         return this.lb_policy;
60     }
61
62     public void setLb_policy(String lb_policy) {
63         this.lb_policy = lb_policy;
64     }
65
66     public List<KeyValuePair> getMetadata() {
67         return this.metadata;
68     }
69
70     public void setMetadata(List<KeyValuePair> metadata) {
71         this.metadata = metadata;
72     }
73
74     public Set<T> getNodes() {
75         return this.nodes;
76     }
77
78     public void setNodes(Set<T> nodes) {
79         this.nodes = nodes;
80     }
81
82     public String getServiceName() {
83         return this.serviceName;
84     }
85
86     public void setServiceName(String serviceName) {
87         this.serviceName = serviceName;
88     }
89
90     public String getVersion() {
91         return this.version;
92     }
93
94     public void setVersion(String version) {
95         this.version = version;
96     }
97
98     public String getUrl() {
99         return this.url;
100     }
101
102     public void setUrl(String url) {
103         this.url = url;
104     }
105
106     public String getProtocol() {
107         return this.protocol;
108     }
109
110     public void setProtocol(String protocol) {
111         this.protocol = protocol;
112     }
113
114     public String getVisualRange() {
115         return this.visualRange;
116     }
117
118     public void setVisualRange(String visualRange) {
119         this.visualRange = visualRange;
120     }
121 }