16 package org.openkilda.northbound.dto.switches;
18 import com.fasterxml.jackson.annotation.JsonInclude;
19 import com.fasterxml.jackson.annotation.JsonProperty;
24 @JsonInclude(JsonInclude.Include.NON_NULL)
27 @JsonProperty(
"switch_id")
28 private String switchId;
30 @JsonProperty(
"port_no")
31 private int portNumber;
33 public PortDto(@JsonProperty(
"switch_id") String switchId,
34 @JsonProperty(
"port_id")
int portNumber) {
35 this.switchId = switchId;
36 this.portNumber = portNumber;
PortDto(@JsonProperty("switch_id") String switchId, @JsonProperty("port_id") int portNumber)