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

annotations.me.snowdrop.servicecatalog.api.model.ClusterBasicAuthConfigFluentImpl Maven / Gradle / Ivy

The newest version!
package me.snowdrop.servicecatalog.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class ClusterBasicAuthConfigFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements ClusterBasicAuthConfigFluent{

    private ObjectReferenceBuilder secretRef;

    public ClusterBasicAuthConfigFluentImpl(){
    }
    public ClusterBasicAuthConfigFluentImpl(ClusterBasicAuthConfig instance){
            this.withSecretRef(instance.getSecretRef()); 
    }

    
/**
 * This method has been deprecated, please use method buildSecretRef instead.
 * @return The buildable object.
 */
@Deprecated public ObjectReference getSecretRef(){
            return this.secretRef!=null?this.secretRef.build():null;
    }

    public ObjectReference buildSecretRef(){
            return this.secretRef!=null?this.secretRef.build():null;
    }

    public A withSecretRef(ObjectReference secretRef){
            _visitables.get("secretRef").remove(this.secretRef);
            if (secretRef!=null){ this.secretRef= new ObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef);} return (A) this;
    }

    public Boolean hasSecretRef(){
            return this.secretRef != null;
    }

    public A withNewSecretRef(String name,String namespace){
            return (A)withSecretRef(new ObjectReference(name, namespace));
    }

    public ClusterBasicAuthConfigFluent.SecretRefNested withNewSecretRef(){
            return new SecretRefNestedImpl();
    }

    public ClusterBasicAuthConfigFluent.SecretRefNested withNewSecretRefLike(ObjectReference item){
            return new SecretRefNestedImpl(item);
    }

    public ClusterBasicAuthConfigFluent.SecretRefNested editSecretRef(){
            return withNewSecretRefLike(getSecretRef());
    }

    public ClusterBasicAuthConfigFluent.SecretRefNested editOrNewSecretRef(){
            return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): new ObjectReferenceBuilder().build());
    }

    public ClusterBasicAuthConfigFluent.SecretRefNested editOrNewSecretRefLike(ObjectReference item){
            return withNewSecretRefLike(getSecretRef() != null ? getSecretRef(): item);
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            ClusterBasicAuthConfigFluentImpl that = (ClusterBasicAuthConfigFluentImpl) o;
            if (secretRef != null ? !secretRef.equals(that.secretRef) :that.secretRef != null) return false;
            return true;
    }


    public class SecretRefNestedImpl extends ObjectReferenceFluentImpl> implements ClusterBasicAuthConfigFluent.SecretRefNested,io.fabric8.kubernetes.api.builder.Nested{

            private final ObjectReferenceBuilder builder;
    
            SecretRefNestedImpl(ObjectReference item){
                    this.builder = new ObjectReferenceBuilder(this, item);
            }
            SecretRefNestedImpl(){
                    this.builder = new ObjectReferenceBuilder(this);
            }
    
    public N and(){
            return (N) ClusterBasicAuthConfigFluentImpl.this.withSecretRef(builder.build());
    }
    public N endSecretRef(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy