16 package org.openkilda.messaging.info.flow;
23 import com.fasterxml.jackson.annotation.JsonCreator;
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
28 import com.google.common.base.MoreObjects;
30 import java.util.Objects;
36 @JsonInclude(JsonInclude.Include.NON_NULL)
41 Utils.CORRELATION_ID})
46 private static final long serialVersionUID = 1L;
52 private String flowId;
64 protected String correlationId;
69 @JsonProperty("operation")
92 this.payload = payload;
93 this.operation = operation;
94 this.correlationId = correlationId;
112 this.flowId = flowId;
130 this.payload = payload;
148 this.operation = operation;
157 return correlationId;
166 this.correlationId = correlationId;
174 return MoreObjects.toStringHelper(
this)
177 .add(
"operation", operation)
187 if (
this ==
object) {
190 if (
object == null || getClass() !=
object.getClass()) {
197 && Objects.equals(getPayload(), that.
getPayload())
206 return Objects.hash(getFlowId(), getPayload(), getOperation(), getCorrelationId());
static final String PAYLOAD
FlowInfoData(@JsonProperty(Utils.FLOW_ID) final String flowId, @JsonProperty(Utils.PAYLOAD) ImmutablePair< Flow, Flow > payload, @JsonProperty("operation") FlowOperation operation, @JsonProperty(Utils.CORRELATION_ID) String correlationId)
void setCorrelationId(String correlationId)
FlowOperation getOperation()
ImmutablePair< Flow, Flow > getPayload()
void setOperation(FlowOperation operation)
boolean equals(Object object)
void setFlowId(String flowId)
static final String CORRELATION_ID
String getCorrelationId()
void setPayload(ImmutablePair< Flow, Flow > payload)
static final String FLOW_ID