com.yahoo.athenz.msd.NetworkPolicyChangeImpactRequest Maven / Gradle / Ivy
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.msd;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
import com.yahoo.rdl.*;
//
// NetworkPolicyChangeImpactRequest - struct representing input details for
// evaluating network policies change impact on transport policies
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class NetworkPolicyChangeImpactRequest {
public List from;
public List to;
public List ports;
public NetworkPolicyChangeImpactRequest setFrom(List from) {
this.from = from;
return this;
}
public List getFrom() {
return from;
}
public NetworkPolicyChangeImpactRequest setTo(List to) {
this.to = to;
return this;
}
public List getTo() {
return to;
}
public NetworkPolicyChangeImpactRequest setPorts(List ports) {
this.ports = ports;
return this;
}
public List getPorts() {
return ports;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != NetworkPolicyChangeImpactRequest.class) {
return false;
}
NetworkPolicyChangeImpactRequest a = (NetworkPolicyChangeImpactRequest) another;
if (from == null ? a.from != null : !from.equals(a.from)) {
return false;
}
if (to == null ? a.to != null : !to.equals(a.to)) {
return false;
}
if (ports == null ? a.ports != null : !ports.equals(a.ports)) {
return false;
}
}
return true;
}
}