Open Kilda Java Documentation
AddLinkCommandMessage.java
Go to the documentation of this file.
1 package org.openkilda.simulator.messages.simulator.command;
2 
5 
6 import com.fasterxml.jackson.annotation.JsonInclude;
7 import com.fasterxml.jackson.annotation.JsonProperty;
8 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
9 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10 
11 @JsonSerialize
12 @JsonInclude(JsonInclude.Include.NON_NULL)
13 @JsonPropertyOrder(value = {
14  "dpid",
15  "link"})
16 
18  @JsonProperty("dpid")
19  private SwitchId dpid;
20 
21  @JsonProperty("link")
22  private LinkMessage link;
23 
25 
26  }
27 
28  public AddLinkCommandMessage(@JsonProperty("dpid") SwitchId dpid,
29  @JsonProperty("link") LinkMessage link) {
30  this.dpid = dpid;
31  this.link = link;
32  }
33 
34  @Override
35  public SwitchId getDpid() {
36  return dpid;
37  }
38 
39  @Override
40  public void setDpid(SwitchId dpid) {
41  this.dpid = dpid;
42  }
43 
44  public LinkMessage getLink() {
45  return link;
46  }
47 
48  public void setLink(LinkMessage link) {
49  this.link = link;
50  }
51 }
value
Definition: nodes.py:62