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

com.yahoo.athenz.msd.KubernetesLabelSelector 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 java.util.List;
import java.util.Map;
import com.yahoo.rdl.*;

//
// KubernetesLabelSelector - A label selector is a label query over a set of
// resources. The result of matchLabels and matchExpressions are ANDed. An empty
// label selector matches all objects. A null label selector matches no objects.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class KubernetesLabelSelector {
    public List matchExpressions;
    public Map matchLabels;

    public KubernetesLabelSelector setMatchExpressions(List matchExpressions) {
        this.matchExpressions = matchExpressions;
        return this;
    }
    public List getMatchExpressions() {
        return matchExpressions;
    }
    public KubernetesLabelSelector setMatchLabels(Map matchLabels) {
        this.matchLabels = matchLabels;
        return this;
    }
    public Map getMatchLabels() {
        return matchLabels;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != KubernetesLabelSelector.class) {
                return false;
            }
            KubernetesLabelSelector a = (KubernetesLabelSelector) another;
            if (matchExpressions == null ? a.matchExpressions != null : !matchExpressions.equals(a.matchExpressions)) {
                return false;
            }
            if (matchLabels == null ? a.matchLabels != null : !matchLabels.equals(a.matchLabels)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy