Open Kilda Java Documentation
SwitchRelationData.java
Go to the documentation of this file.
1 package org.openkilda.model;
2 
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 import com.fasterxml.jackson.annotation.JsonInclude;
5 import com.fasterxml.jackson.annotation.JsonProperty;
6 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
7 
8 import java.io.Serializable;
9 import java.util.List;
10 
17 @JsonInclude(JsonInclude.Include.NON_NULL)
18 @JsonIgnoreProperties(ignoreUnknown = true)
19 @JsonPropertyOrder({"switches", "switchrelation", "flows"})
20 public class SwitchRelationData implements Serializable {
21 
22 
23  @JsonProperty("switches")
24  private List<SwitchInfo> switches = null;
25 
26 
27  @JsonProperty("switchrelation")
28  private List<IslLinkInfo> flows = null;
29 
30 
31  @JsonProperty("flows")
32  private List<FlowInfo> flowResponse = null;
33 
34 
35  @JsonProperty("ports")
36  private List<PortInfo> portInfo = null;
37 
38 
39  private final static long serialVersionUID = -2510847461885912823L;
40 
47  public List<SwitchInfo> getSwitches() {
48  return switches;
49  }
50 
57  public void setSwitches(final List<SwitchInfo> switches) {
58  this.switches = switches;
59  }
60 
67  public List<IslLinkInfo> getFlows() {
68  return flows;
69  }
70 
77  public void setFlows(final List<IslLinkInfo> switchrelation) {
78  flows = switchrelation;
79  }
80 
87  public List<PortInfo> getPortInfo() {
88  return portInfo;
89  }
90 
97  public void setPortInfo(final List<PortInfo> portInfo) {
98  this.portInfo = portInfo;
99  }
100 
107  public List<FlowInfo> getFlowResponse() {
108  return flowResponse;
109  }
110 
117  public void setFlowResponse(final List<FlowInfo> flowResponse) {
118  this.flowResponse = flowResponse;
119  }
120 
121 }
void setPortInfo(final List< PortInfo > portInfo)
void setFlows(final List< IslLinkInfo > switchrelation)
void setSwitches(final List< SwitchInfo > switches)
void setFlowResponse(final List< FlowInfo > flowResponse)