public DoneableAbort(Abort item){ super(item);this.builder=new AbortBuilder(this, item);this.function=new Function<Abort, Abort>() { public Abort apply(Abort item) { return item; } } ; }
public Abort buildAbort(){ return this.abort!=null?this.abort.build():null; }
public AbortBuilder(Abort instance,Validator validator){ this.fluent = this; this.withErrorType(instance.getErrorType()); this.withPercent(instance.getPercent()); this.validator = validator; this.validationEnabled = validator != null; }
public HTTPFaultInjectionFluent.AbortNested<A> editOrNewAbort(){ return withNewAbortLike(getAbort() != null ? getAbort(): new AbortBuilder().build()); }
public boolean equals(Object o){ if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; HTTPFaultInjectionFluentImpl that = (HTTPFaultInjectionFluentImpl) o; if (abort != null ? !abort.equals(that.abort) :that.abort != null) return false; if (delay != null ? !delay.equals(that.delay) :that.delay != null) return false; return true; }
public AbortBuilder(Abort instance,Boolean validationEnabled){ this.fluent = this; this.withErrorType(instance.getErrorType()); this.withPercent(instance.getPercent()); this.validationEnabled = validationEnabled; } public AbortBuilder(Validator validator){
public DoneableAbort(io.fabric8.kubernetes.api.builder.Function<Abort,Abort> function){ super();this.builder=new AbortBuilder(this);this.function=function; } public DoneableAbort(Abort item,io.fabric8.kubernetes.api.builder.Function<Abort,Abort> function){
/** * This method has been deprecated, please use method buildAbort instead. * @return The buildable object. */ @Deprecated public Abort getAbort(){ return this.abort!=null?this.abort.build():null; }
public DoneableAbort(Abort item,io.fabric8.kubernetes.api.builder.Function<Abort,Abort> function){ super(item);this.builder=new AbortBuilder(this, item);this.function=function; } public DoneableAbort(Abort item){
public Abort done(){ return function.apply(builder.build()); }
public A withAbort(Abort abort){ _visitables.remove(this.abort); if (abort!=null){ this.abort= new AbortBuilder(abort); _visitables.add(this.abort);} return (A) this; }