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

annotations.io.alauda.devops.api.model.BuildStatusOutputFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package io.alauda.devops.api.model;

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

public class BuildStatusOutputFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements BuildStatusOutputFluent{

    private BuildStatusOutputToBuilder to;

    public BuildStatusOutputFluentImpl(){
    }
    public BuildStatusOutputFluentImpl(BuildStatusOutput instance){
            this.withTo(instance.getTo()); 
    }

    
/**
 * This method has been deprecated, please use method buildTo instead.
 */
@Deprecated public BuildStatusOutputTo getTo(){
            return this.to!=null?this.to.build():null;
    }

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

    public A withTo(BuildStatusOutputTo to){
            _visitables.remove(this.to);
            if (to!=null){ this.to= new BuildStatusOutputToBuilder(to); _visitables.add(this.to);} return (A) this;
    }

    public Boolean hasTo(){
            return this.to!=null;
    }

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

    public BuildStatusOutputFluent.ToNested withNewToLike(BuildStatusOutputTo item){
            return new ToNestedImpl(item);
    }

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

    public BuildStatusOutputFluent.ToNested editOrNewTo(){
            return withNewToLike(getTo() != null ? getTo(): new BuildStatusOutputToBuilder().build());
    }

    public BuildStatusOutputFluent.ToNested editOrNewToLike(BuildStatusOutputTo item){
            return withNewToLike(getTo() != null ? getTo(): item);
    }

    public A withNewTo(String imageDigest){
            return (A)withTo(new BuildStatusOutputTo(imageDigest));
    }

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


    public class ToNestedImpl extends BuildStatusOutputToFluentImpl> implements BuildStatusOutputFluent.ToNested,io.alauda.kubernetes.api.builder.Nested{

            private final BuildStatusOutputToBuilder builder;
    
            ToNestedImpl(BuildStatusOutputTo item){
                    this.builder = new BuildStatusOutputToBuilder(this, item);
            }
            ToNestedImpl(){
                    this.builder = new BuildStatusOutputToBuilder(this);
            }
    
    public N and(){
            return (N) BuildStatusOutputFluentImpl.this.withTo(builder.build());
    }
    public N endTo(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy