io.cert.manager.models.V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector Maven / Gradle / Ivy
The newest version!
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.cert.manager.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/** A label query over a set of resources, in this case pods. */
@ApiModel(description = "A label query over a set of resources, in this case pods.")
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2020-08-18T19:55:23.947Z[Etc/UTC]")
public
class V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector {
public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions";
@SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS)
private List<
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions>
matchExpressions = null;
public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels";
@SerializedName(SERIALIZED_NAME_MATCH_LABELS)
private Map matchLabels = null;
public
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
matchExpressions(
List<
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions>
matchExpressions) {
this.matchExpressions = matchExpressions;
return this;
}
public
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
addMatchExpressionsItem(
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions
matchExpressionsItem) {
if (this.matchExpressions == null) {
this.matchExpressions =
new ArrayList<
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions>();
}
this.matchExpressions.add(matchExpressionsItem);
return this;
}
/**
* matchExpressions is a list of label selector requirements. The requirements are ANDed.
*
* @return matchExpressions
*/
@javax.annotation.Nullable
@ApiModelProperty(
value =
"matchExpressions is a list of label selector requirements. The requirements are ANDed.")
public List<
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions>
getMatchExpressions() {
return matchExpressions;
}
public void setMatchExpressions(
List<
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions>
matchExpressions) {
this.matchExpressions = matchExpressions;
}
public
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
matchLabels(Map matchLabels) {
this.matchLabels = matchLabels;
return this;
}
public
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
putMatchLabelsItem(String key, String matchLabelsItem) {
if (this.matchLabels == null) {
this.matchLabels = new HashMap();
}
this.matchLabels.put(key, matchLabelsItem);
return this;
}
/**
* matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is
* equivalent to an element of matchExpressions, whose key field is \"key\", the
* operator is \"In\", and the values array contains only \"value\". The
* requirements are ANDed.
*
* @return matchLabels
*/
@javax.annotation.Nullable
@ApiModelProperty(
value =
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.")
public Map getMatchLabels() {
return matchLabels;
}
public void setMatchLabels(Map matchLabels) {
this.matchLabels = matchLabels;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
v1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector =
(V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector)
o;
return Objects.equals(
this.matchExpressions,
v1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
.matchExpressions)
&& Objects.equals(
this.matchLabels,
v1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector
.matchLabels);
}
@Override
public int hashCode() {
return Objects.hash(matchExpressions, matchLabels);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(
"class V1alpha2IssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelector {\n");
sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n");
sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy