Open Kilda Java Documentation
FlowEndpoint.java
Go to the documentation of this file.
1 package org.openkilda.integration.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 
15 @JsonInclude(JsonInclude.Include.NON_NULL)
16 @JsonIgnoreProperties(ignoreUnknown = true)
17 @JsonPropertyOrder({"switch-id", "port-id", "vlan-id"})
18 public class FlowEndpoint implements Serializable {
19 
20  private static final long serialVersionUID = 1L;
21 
22  @JsonProperty("switch-id")
23  private String switchId;
24 
25  @JsonProperty("port-id")
26  private int portId;
27 
28  @JsonProperty("vlan-id")
29  private int vlanId;
30 
31  @JsonProperty("switch-name")
32  private String switchName;
33 
34  public String getSwitchId() {
35  return switchId;
36  }
37 
38  public void setSwitchId(final String switchId) {
39  this.switchId = switchId;
40  }
41 
42  public int getPortId() {
43  return portId;
44  }
45 
46  public void setPortId(final int portId) {
47  this.portId = portId;
48  }
49 
50  public int getVlanId() {
51  return vlanId;
52  }
53 
54  public void setVlanId(final int vlanId) {
55  this.vlanId = vlanId;
56  }
57 
58  public static long getSerialversionuid() {
59  return serialVersionUID;
60  }
61 
62  public String getSwitchName() {
63  return switchName;
64  }
65 
66  public void setSwitchName(String switchName) {
67  this.switchName = switchName;
68  }
69 
70  @Override
71  public String toString() {
72  return "FlowEndpoint [switchId=" + switchId + ", portId=" + portId + ", vlanId=" + vlanId
73  + "]";
74  }
75 }
void setSwitchId(final String switchId)