public DoneableDestinationRuleSpec(DestinationRuleSpec item){ super(item);this.builder=new DestinationRuleSpecBuilder(this, item);this.function=new Function<DestinationRuleSpec, DestinationRuleSpec>() { public DestinationRuleSpec apply(DestinationRuleSpec item) { return item; } } ; }
public DestinationRuleSpec buildSpec(){ return this.spec!=null?this.spec.build():null; }
public DestinationRuleSpecBuilder(DestinationRuleSpec instance,Validator validator){ this.fluent = this; this.withHost(instance.getHost()); this.withSubsets(instance.getSubsets()); this.withTrafficPolicy(instance.getTrafficPolicy()); this.validator = validator; this.validationEnabled = validator != null; }
public DestinationRuleFluent.SpecNested<A> editOrNewSpec(){ return withNewSpecLike(getSpec() != null ? getSpec(): new DestinationRuleSpecBuilder().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; DestinationRuleFluentImpl that = (DestinationRuleFluentImpl) o; if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false; return true; }
public DestinationRuleSpecBuilder(DestinationRuleSpec instance,Boolean validationEnabled){ this.fluent = this; this.withHost(instance.getHost()); this.withSubsets(instance.getSubsets()); this.withTrafficPolicy(instance.getTrafficPolicy()); this.validationEnabled = validationEnabled; } public DestinationRuleSpecBuilder(Validator validator){
public DoneableDestinationRuleSpec(io.fabric8.kubernetes.api.builder.Function<DestinationRuleSpec,DestinationRuleSpec> function){ super();this.builder=new DestinationRuleSpecBuilder(this);this.function=function; } public DoneableDestinationRuleSpec(DestinationRuleSpec item,io.fabric8.kubernetes.api.builder.Function<DestinationRuleSpec,DestinationRuleSpec> function){
/** * This method has been deprecated, please use method buildSpec instead. * @return The buildable object. */ @Deprecated public DestinationRuleSpec getSpec(){ return this.spec!=null?this.spec.build():null; }
public DoneableDestinationRuleSpec(DestinationRuleSpec item,io.fabric8.kubernetes.api.builder.Function<DestinationRuleSpec,DestinationRuleSpec> function){ super(item);this.builder=new DestinationRuleSpecBuilder(this, item);this.function=function; } public DoneableDestinationRuleSpec(DestinationRuleSpec item){
public DestinationRuleSpec done(){ return function.apply(builder.build()); }
public A withSpec(DestinationRuleSpec spec){ _visitables.remove(this.spec); if (spec!=null){ this.spec= new DestinationRuleSpecBuilder(spec); _visitables.add(this.spec);} return (A) this; }