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

annotations.io.fabric8.knative.eventing.contrib.github.v1alpha1.SecretValueFromSourceFluentImpl Maven / Gradle / Ivy

package io.fabric8.knative.eventing.contrib.github.v1alpha1;

import com.fasterxml.jackson.annotation.JsonProperty;
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;

public class SecretValueFromSourceFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements SecretValueFromSourceFluent {

    private SecretKeySelector secretKeyRef;

    public SecretValueFromSourceFluentImpl() {
    }

    public SecretValueFromSourceFluentImpl(SecretValueFromSource instance) {
        this.withSecretKeyRef(instance.getSecretKeyRef()); 
    }

    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());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy