16 package org.openkilda.messaging.model.rule;
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import com.fasterxml.jackson.annotation.JsonProperty;
22 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
23 import com.google.common.base.MoreObjects;
25 import java.io.Serializable;
26 import java.util.Objects;
32 @JsonInclude(JsonInclude.Include.NON_NULL)
37 private static final long serialVersionUID = 1L;
43 protected String flowId;
55 protected String switchId;
75 this.switchId = switchId;
113 this.switchId = switchId;
131 this.cookie = cookie;
139 if (
this ==
object) {
143 if (
object == null || getClass() !=
object.getClass()) {
149 && Objects.equals(getSwitchId(), that.
getSwitchId())
158 return Objects.hash(getFlowId(), getCookie(), getSwitchId());
166 return MoreObjects.toStringHelper(
this)
static final String COOKIE
Rule(@JsonProperty(RuleConstants.FLOW_ID) String flowId, @JsonProperty(RuleConstants.COOKIE) int cookie, @JsonProperty(RuleConstants.SWITCH_ID) String switchId)
void setCookie(int cookie)
void setSwitchId(String switchId)
static final String FLOW_ID
void setFlowId(String flowId)
boolean equals(Object object)
static final String SWITCH_ID