
annotations.io.alauda.kubernetes.api.model.MultiBranchPipelineFluentImpl Maven / Gradle / Ivy
The newest version!
package io.alauda.kubernetes.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.Nested;
import java.lang.Integer;
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 MultiBranchPipelineFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements MultiBranchPipelineFluent{
private MultiBranchBehavioursBuilder behaviours;
private MultiBranchOrphanBuilder orphaned;
public MultiBranchPipelineFluentImpl(){
}
public MultiBranchPipelineFluentImpl(MultiBranchPipeline instance){
this.withBehaviours(instance.getBehaviours());
this.withOrphaned(instance.getOrphaned());
}
/**
* This method has been deprecated, please use method buildBehaviours instead.
*/
@Deprecated public MultiBranchBehaviours getBehaviours(){
return this.behaviours!=null?this.behaviours.build():null;
}
public MultiBranchBehaviours buildBehaviours(){
return this.behaviours!=null?this.behaviours.build():null;
}
public A withBehaviours(MultiBranchBehaviours behaviours){
_visitables.remove(this.behaviours);
if (behaviours!=null){ this.behaviours= new MultiBranchBehavioursBuilder(behaviours); _visitables.add(this.behaviours);} return (A) this;
}
public Boolean hasBehaviours(){
return this.behaviours!=null;
}
public MultiBranchPipelineFluent.BehavioursNested withNewBehaviours(){
return new BehavioursNestedImpl();
}
public MultiBranchPipelineFluent.BehavioursNested withNewBehavioursLike(MultiBranchBehaviours item){
return new BehavioursNestedImpl(item);
}
public MultiBranchPipelineFluent.BehavioursNested editBehaviours(){
return withNewBehavioursLike(getBehaviours());
}
public MultiBranchPipelineFluent.BehavioursNested editOrNewBehaviours(){
return withNewBehavioursLike(getBehaviours() != null ? getBehaviours(): new MultiBranchBehavioursBuilder().build());
}
public MultiBranchPipelineFluent.BehavioursNested editOrNewBehavioursLike(MultiBranchBehaviours item){
return withNewBehavioursLike(getBehaviours() != null ? getBehaviours(): item);
}
/**
* This method has been deprecated, please use method buildOrphaned instead.
*/
@Deprecated public MultiBranchOrphan getOrphaned(){
return this.orphaned!=null?this.orphaned.build():null;
}
public MultiBranchOrphan buildOrphaned(){
return this.orphaned!=null?this.orphaned.build():null;
}
public A withOrphaned(MultiBranchOrphan orphaned){
_visitables.remove(this.orphaned);
if (orphaned!=null){ this.orphaned= new MultiBranchOrphanBuilder(orphaned); _visitables.add(this.orphaned);} return (A) this;
}
public Boolean hasOrphaned(){
return this.orphaned!=null;
}
public MultiBranchPipelineFluent.OrphanedNested withNewOrphaned(){
return new OrphanedNestedImpl();
}
public MultiBranchPipelineFluent.OrphanedNested withNewOrphanedLike(MultiBranchOrphan item){
return new OrphanedNestedImpl(item);
}
public MultiBranchPipelineFluent.OrphanedNested editOrphaned(){
return withNewOrphanedLike(getOrphaned());
}
public MultiBranchPipelineFluent.OrphanedNested editOrNewOrphaned(){
return withNewOrphanedLike(getOrphaned() != null ? getOrphaned(): new MultiBranchOrphanBuilder().build());
}
public MultiBranchPipelineFluent.OrphanedNested editOrNewOrphanedLike(MultiBranchOrphan item){
return withNewOrphanedLike(getOrphaned() != null ? getOrphaned(): item);
}
public A withNewOrphaned(Integer days,Integer max){
return (A)withOrphaned(new MultiBranchOrphan(days, max));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
MultiBranchPipelineFluentImpl that = (MultiBranchPipelineFluentImpl) o;
if (behaviours != null ? !behaviours.equals(that.behaviours) :that.behaviours != null) return false;
if (orphaned != null ? !orphaned.equals(that.orphaned) :that.orphaned != null) return false;
return true;
}
public class BehavioursNestedImpl extends MultiBranchBehavioursFluentImpl> implements MultiBranchPipelineFluent.BehavioursNested,io.alauda.kubernetes.api.builder.Nested{
private final MultiBranchBehavioursBuilder builder;
BehavioursNestedImpl(MultiBranchBehaviours item){
this.builder = new MultiBranchBehavioursBuilder(this, item);
}
BehavioursNestedImpl(){
this.builder = new MultiBranchBehavioursBuilder(this);
}
public N and(){
return (N) MultiBranchPipelineFluentImpl.this.withBehaviours(builder.build());
}
public N endBehaviours(){
return and();
}
}
public class OrphanedNestedImpl extends MultiBranchOrphanFluentImpl> implements MultiBranchPipelineFluent.OrphanedNested,io.alauda.kubernetes.api.builder.Nested{
private final MultiBranchOrphanBuilder builder;
OrphanedNestedImpl(MultiBranchOrphan item){
this.builder = new MultiBranchOrphanBuilder(this, item);
}
OrphanedNestedImpl(){
this.builder = new MultiBranchOrphanBuilder(this);
}
public N and(){
return (N) MultiBranchPipelineFluentImpl.this.withOrphaned(builder.build());
}
public N endOrphaned(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy