io.strimzi.api.kafka.model.GenericSecretSource Maven / Gradle / Ivy
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.api.kafka.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.strimzi.crdgenerator.annotations.Description;
import io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Represents a generic secret inside a Kubernetes Secret
*/
@Buildable(
editableEnabled = false,
builderPackage = Constants.FABRIC8_KUBERNETES_API
)
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode
public class GenericSecretSource implements UnknownPropertyPreserving, Serializable {
private static final long serialVersionUID = 1L;
protected String secretName;
protected String key;
protected Map additionalProperties;
@Description("The name of the Kubernetes Secret containing the secret value.")
@JsonProperty(required = true)
public String getSecretName() {
return secretName;
}
public void setSecretName(String secretName) {
this.secretName = secretName;
}
@Description("The key under which the secret value is stored in the Kubernetes Secret.")
@JsonProperty(required = true)
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
@Override
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@Override
public void setAdditionalProperty(String name, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap<>(1);
}
this.additionalProperties.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy