Open Kilda Java Documentation
SwitchModMessage.java
Go to the documentation of this file.
1 package org.openkilda.simulator.messages.simulator.command;
2 
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
6 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8 
9 @JsonSerialize
10 @JsonInclude(JsonInclude.Include.NON_NULL)
11 @JsonPropertyOrder(value = {
12  "dpid",
13  "state"})
14 
16 
17  @JsonProperty("state")
18  private SwitchState state;
19 
20  public SwitchModMessage(@JsonProperty("dpid") String dpid,
21  @JsonProperty("state") SwitchState state) {
22  this.state = state;
23  }
24 
25  public SwitchState getState() {
26  return state;
27  }
28 
29  public void setState(SwitchState state) {
30  this.state = state;
31  }
32 }
value
Definition: nodes.py:62
SwitchModMessage(@JsonProperty("dpid") String dpid, @JsonProperty("state") SwitchState state)