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

annotations.io.fabric8.openshift.api.model.BuildOutputFluentImpl Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import java.lang.String;
import io.fabric8.kubernetes.api.model.ObjectReference;
import java.lang.Object;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.kubernetes.api.model.LocalObjectReferenceFluentImpl;
import io.fabric8.kubernetes.api.model.LocalObjectReferenceBuilder;
import io.fabric8.kubernetes.api.model.ObjectReferenceFluentImpl;
import io.fabric8.kubernetes.api.model.ObjectReferenceBuilder;

public class BuildOutputFluentImpl> extends BaseFluent implements BuildOutputFluent{

    private VisitableBuilder pushSecret;
    private VisitableBuilder to;

    public BuildOutputFluentImpl(){
    }
    public BuildOutputFluentImpl(BuildOutput instance){
            this.withPushSecret(instance.getPushSecret()); 
            this.withTo(instance.getTo()); 
    }

    public LocalObjectReference getPushSecret(){
            return this.pushSecret!=null?this.pushSecret.build():null;
    }

    public A withPushSecret(LocalObjectReference pushSecret){
            if (pushSecret!=null){ this.pushSecret= new LocalObjectReferenceBuilder(pushSecret); _visitables.add(this.pushSecret);} return (A) this;
    }

    public BuildOutputFluent.PushSecretNested withNewPushSecret(){
            return new PushSecretNestedImpl();
    }

    public BuildOutputFluent.PushSecretNested withNewPushSecretLike(LocalObjectReference item){
            return new PushSecretNestedImpl(item);
    }

    public BuildOutputFluent.PushSecretNested editPushSecret(){
            return withNewPushSecretLike(getPushSecret());
    }

    public A withNewPushSecret(String name){
            return (A)withPushSecret(new LocalObjectReference(name));
    }

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

    public A withTo(ObjectReference to){
            if (to!=null){ this.to= new ObjectReferenceBuilder(to); _visitables.add(this.to);} return (A) this;
    }

    public BuildOutputFluent.ToNested withNewTo(){
            return new ToNestedImpl();
    }

    public BuildOutputFluent.ToNested withNewToLike(ObjectReference item){
            return new ToNestedImpl(item);
    }

    public BuildOutputFluent.ToNested editTo(){
            return withNewToLike(getTo());
    }

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


    public class PushSecretNestedImpl extends LocalObjectReferenceFluentImpl> implements BuildOutputFluent.PushSecretNested,Nested{

            private final LocalObjectReferenceBuilder builder;
    
            PushSecretNestedImpl(){
                    this.builder = new LocalObjectReferenceBuilder(this);
            }
            PushSecretNestedImpl(LocalObjectReference item){
                    this.builder = new LocalObjectReferenceBuilder(this, item);
            }
    
    public N endPushSecret(){
            return and();
    }
    public N and(){
            return (N) BuildOutputFluentImpl.this.withPushSecret(builder.build());
    }

}
    public class ToNestedImpl extends ObjectReferenceFluentImpl> implements BuildOutputFluent.ToNested,Nested{

            private final ObjectReferenceBuilder builder;
    
            ToNestedImpl(){
                    this.builder = new ObjectReferenceBuilder(this);
            }
            ToNestedImpl(ObjectReference item){
                    this.builder = new ObjectReferenceBuilder(this, item);
            }
    
    public N endTo(){
            return and();
    }
    public N and(){
            return (N) BuildOutputFluentImpl.this.withTo(builder.build());
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy