com.yahoo.athenz.msd.KubernetesIPBlock Maven / Gradle / Ivy
The newest version!
//
// 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.*;
//
// KubernetesIPBlock - Kubernetes network policy IP block source/target
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class KubernetesIPBlock {
public String cidr;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List except;
public KubernetesIPBlock setCidr(String cidr) {
this.cidr = cidr;
return this;
}
public String getCidr() {
return cidr;
}
public KubernetesIPBlock setExcept(List except) {
this.except = except;
return this;
}
public List getExcept() {
return except;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != KubernetesIPBlock.class) {
return false;
}
KubernetesIPBlock a = (KubernetesIPBlock) another;
if (cidr == null ? a.cidr != null : !cidr.equals(a.cidr)) {
return false;
}
if (except == null ? a.except != null : !except.equals(a.except)) {
return false;
}
}
return true;
}
}