All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.athenz.msd.KubernetesNetworkPolicyIngressRule Maven / Gradle / Ivy

There is a newer version: 1.11.66
Show 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.*;

//
// KubernetesNetworkPolicyIngressRule - Kubernetes network policy ingress rule
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class KubernetesNetworkPolicyIngressRule {
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List from;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List ports;

    public KubernetesNetworkPolicyIngressRule setFrom(List from) {
        this.from = from;
        return this;
    }
    public List getFrom() {
        return from;
    }
    public KubernetesNetworkPolicyIngressRule 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() != KubernetesNetworkPolicyIngressRule.class) {
                return false;
            }
            KubernetesNetworkPolicyIngressRule a = (KubernetesNetworkPolicyIngressRule) another;
            if (from == null ? a.from != null : !from.equals(a.from)) {
                return false;
            }
            if (ports == null ? a.ports != null : !ports.equals(a.ports)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy