2 * Copyright 2023 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.holmes.common.msb.entity;
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21 import java.io.Serializable;
22 import java.util.List;
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 = "";
36 private List<KeyValuePair> metadata;
37 private boolean enable_ssl = false;
42 public boolean isEnable_ssl() {
43 return this.enable_ssl;
46 public void setEnable_ssl(boolean enable_ssl) {
47 this.enable_ssl = enable_ssl;
50 public String getPath() {
54 public void setPath(String path) {
58 public String getLb_policy() {
59 return this.lb_policy;
62 public void setLb_policy(String lb_policy) {
63 this.lb_policy = lb_policy;
66 public List<KeyValuePair> getMetadata() {
70 public void setMetadata(List<KeyValuePair> metadata) {
71 this.metadata = metadata;
74 public Set<T> getNodes() {
78 public void setNodes(Set<T> nodes) {
82 public String getServiceName() {
83 return this.serviceName;
86 public void setServiceName(String serviceName) {
87 this.serviceName = serviceName;
90 public String getVersion() {
94 public void setVersion(String version) {
95 this.version = version;
98 public String getUrl() {
102 public void setUrl(String url) {
106 public String getProtocol() {
107 return this.protocol;
110 public void setProtocol(String protocol) {
111 this.protocol = protocol;
114 public String getVisualRange() {
115 return this.visualRange;
118 public void setVisualRange(String visualRange) {
119 this.visualRange = visualRange;