16 package org.openkilda.messaging.command.switches;
18 import com.fasterxml.jackson.annotation.JsonCreator;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import lombok.Builder;
23 import java.io.Serializable;
32 private static final long serialVersionUID = 1L;
34 @JsonProperty(
"cookie")
37 @JsonProperty(
"in_port")
39 @JsonProperty(
"in_vlan")
42 @JsonProperty(
"priority")
45 @JsonProperty(
"out_port")
50 @JsonProperty(
"cookie") Long cookie,
51 @JsonProperty(
"in_port") Integer inPort,
52 @JsonProperty(
"in_vlan") Integer inVlan,
53 @JsonProperty(
"priority") Integer priority,
54 @JsonProperty(
"out_port") Integer outPort) {
55 if ((cookie == null || cookie == 0)
56 && (inPort == null || inPort == 0)
57 && (inVlan == null || inVlan == 0)
58 && (priority == null || priority == 0)
59 && (outPort == null || outPort == 0)) {
60 throw new IllegalArgumentException(
"DeleteRulesCriteria can't be constructed empty.");
66 this.priority = priority;
67 this.outPort = outPort;
DeleteRulesCriteria( @JsonProperty("cookie") Long cookie, @JsonProperty("in_port") Integer inPort, @JsonProperty("in_vlan") Integer inVlan, @JsonProperty("priority") Integer priority, @JsonProperty("out_port") Integer outPort)