16 package org.openkilda.messaging.info.discovery;
18 import static com.google.common.base.MoreObjects.toStringHelper;
27 import com.fasterxml.jackson.annotation.JsonCreator;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
33 import java.util.Objects;
40 @JsonInclude(JsonInclude.Include.NON_NULL)
51 private static final long serialVersionUID = 1L;
56 @JsonProperty(
"requester")
57 protected String requester;
62 @JsonProperty("switches")
68 @JsonProperty("ports")
80 @JsonProperty("flows")
99 @JsonProperty(
"switches") Set<SwitchInfoData> switches,
100 @JsonProperty(
"ports") Set<PortInfoData> ports,
101 @JsonProperty(
"isls") Set<IslInfoData> isls,
103 this.requester = requester;
104 this.switches = switches;
125 this.requester = requester;
143 this.switches = switches;
206 return toStringHelper(
this)
207 .add(
"requester", requester)
208 .add(
"switches", switches)
220 return Objects.hash(requester, switches, ports, isls, flows);
228 if (
this ==
object) {
231 if (
object == null || getClass() !=
object.getClass()) {
237 && Objects.equals(getSwitches(), that.
getSwitches())
238 && Objects.equals(getPorts(), that.
getPorts())
239 && Objects.equals(getIsls(), that.
getIsls())
240 && Objects.equals(getFlows(), that.
getFlows());
Set< IslInfoData > getIsls()
void setRequester(String requester)
Set< PortInfoData > getPorts()
Set< ImmutablePair< Flow, Flow > > getFlows()
void setIsls(Set< IslInfoData > isls)
void setPorts(Set< PortInfoData > ports)
boolean equals(Object object)
void setSwitches(Set< SwitchInfoData > switches)
void setFlows(Set< ImmutablePair< Flow, Flow >> flows)
Set< SwitchInfoData > getSwitches()
NetworkInfoData(@JsonProperty("requester") String requester, @JsonProperty("switches") Set< SwitchInfoData > switches, @JsonProperty("ports") Set< PortInfoData > ports, @JsonProperty("isls") Set< IslInfoData > isls, @JsonProperty("flows") Set< ImmutablePair< Flow, Flow >> flows)