io.fabric8.knative.eventing.contrib.gitlab.v1alpha1.SecretValueFromSourceFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.eventing.contrib.gitlab.v1alpha1;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import io.fabric8.kubernetes.api.model.SecretKeySelector;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class SecretValueFromSourceFluentImpl> extends BaseFluent implements SecretValueFromSourceFluent{
public SecretValueFromSourceFluentImpl() {
}
public SecretValueFromSourceFluentImpl(SecretValueFromSource instance) {
this.withSecretKeyRef(instance.getSecretKeyRef());
}
private SecretKeySelector secretKeyRef;
public SecretKeySelector getSecretKeyRef() {
return this.secretKeyRef;
}
public A withSecretKeyRef(SecretKeySelector secretKeyRef) {
this.secretKeyRef=secretKeyRef; return (A) this;
}
public Boolean hasSecretKeyRef() {
return this.secretKeyRef != null;
}
public A withNewSecretKeyRef(String key,String name,Boolean optional) {
return (A)withSecretKeyRef(new SecretKeySelector(key, name, optional));
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SecretValueFromSourceFluentImpl that = (SecretValueFromSourceFluentImpl) o;
if (secretKeyRef != null ? !secretKeyRef.equals(that.secretKeyRef) :that.secretKeyRef != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(secretKeyRef, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (secretKeyRef != null) { sb.append("secretKeyRef:"); sb.append(secretKeyRef); }
sb.append("}");
return sb.toString();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy