com.yahoo.athenz.msd.NetworkPolicyChangeImpactResponse 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 com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import com.yahoo.rdl.*;
//
// NetworkPolicyChangeImpactResponse - struct representing response of
// evaluating network policies change impact on transport policies
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class NetworkPolicyChangeImpactResponse {
public NetworkPolicyChangeEffect effect;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List details;
public NetworkPolicyChangeImpactResponse setEffect(NetworkPolicyChangeEffect effect) {
this.effect = effect;
return this;
}
public NetworkPolicyChangeEffect getEffect() {
return effect;
}
public NetworkPolicyChangeImpactResponse setDetails(List details) {
this.details = details;
return this;
}
public List getDetails() {
return details;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != NetworkPolicyChangeImpactResponse.class) {
return false;
}
NetworkPolicyChangeImpactResponse a = (NetworkPolicyChangeImpactResponse) another;
if (effect == null ? a.effect != null : !effect.equals(a.effect)) {
return false;
}
if (details == null ? a.details != null : !details.equals(a.details)) {
return false;
}
}
return true;
}
}