1 package org.openkilda.model;
3 import java.util.HashMap;
6 import com.fasterxml.jackson.annotation.JsonInclude;
7 import com.fasterxml.jackson.annotation.JsonProperty;
8 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11 @JsonInclude(JsonInclude.Include.NON_NULL)
14 private static final String DEFAULT =
"";
15 private String src_switch = DEFAULT;
16 private String src_port = DEFAULT;
17 private String dst_switch = DEFAULT;
18 private String dst_port = DEFAULT;
19 @JsonProperty(
"props")
20 private Map<String, String> props =
new HashMap<>();
31 this.props =
new HashMap<>(props);
35 return props.getOrDefault(key, DEFAULT);
39 props.put(key,
value);
48 this.src_switch = src_switch;
56 this.src_port = src_port;
64 this.dst_switch = dst_switch;
72 this.dst_port = dst_port;
void setDst_port(String dst_port)
void setSrc_port(String src_port)
void setDst_switch(String dst_switch)
LinkProps(Map< String, String > props)
LinkProps setProperty(String key, String value)
String getProperty(String key)
void setSrc_switch(String src_switch)