public DoneableConnectionPoolSettings(ConnectionPoolSettings item){ super(item);this.builder=new ConnectionPoolSettingsBuilder(this, item);this.function=new Function<ConnectionPoolSettings, ConnectionPoolSettings>() { public ConnectionPoolSettings apply(ConnectionPoolSettings item) { return item; } } ; }
public ConnectionPoolSettings buildConnectionPool(){ return this.connectionPool!=null?this.connectionPool.build():null; }
public PortTrafficPolicyFluent.ConnectionPoolNested<A> editOrNewConnectionPool(){ return withNewConnectionPoolLike(getConnectionPool() != null ? getConnectionPool(): new ConnectionPoolSettingsBuilder().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; TrafficPolicyFluentImpl that = (TrafficPolicyFluentImpl) o; if (connectionPool != null ? !connectionPool.equals(that.connectionPool) :that.connectionPool != null) return false; if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) :that.loadBalancer != null) return false; if (outlierDetection != null ? !outlierDetection.equals(that.outlierDetection) :that.outlierDetection != null) return false; if (portLevelSettings != null ? !portLevelSettings.equals(that.portLevelSettings) :that.portLevelSettings != null) return false; if (tls != null ? !tls.equals(that.tls) :that.tls != null) return false; return true; }
public TrafficPolicyFluent.ConnectionPoolNested<A> editOrNewConnectionPool(){ return withNewConnectionPoolLike(getConnectionPool() != null ? getConnectionPool(): new ConnectionPoolSettingsBuilder().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; PortTrafficPolicyFluentImpl that = (PortTrafficPolicyFluentImpl) o; if (connectionPool != null ? !connectionPool.equals(that.connectionPool) :that.connectionPool != null) return false; if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) :that.loadBalancer != null) return false; if (outlierDetection != null ? !outlierDetection.equals(that.outlierDetection) :that.outlierDetection != null) return false; if (port != null ? !port.equals(that.port) :that.port != null) return false; if (tls != null ? !tls.equals(that.tls) :that.tls != null) return false; return true; }
public ConnectionPoolSettings buildConnectionPool(){ return this.connectionPool!=null?this.connectionPool.build():null; }
public DoneableConnectionPoolSettings(ConnectionPoolSettings item,io.fabric8.kubernetes.api.builder.Function<ConnectionPoolSettings,ConnectionPoolSettings> function){ super(item);this.builder=new ConnectionPoolSettingsBuilder(this, item);this.function=function; } public DoneableConnectionPoolSettings(ConnectionPoolSettings item){
/** * This method has been deprecated, please use method buildConnectionPool instead. * @return The buildable object. */ @Deprecated public ConnectionPoolSettings getConnectionPool(){ return this.connectionPool!=null?this.connectionPool.build():null; }
public DoneableConnectionPoolSettings(io.fabric8.kubernetes.api.builder.Function<ConnectionPoolSettings,ConnectionPoolSettings> function){ super();this.builder=new ConnectionPoolSettingsBuilder(this);this.function=function; } public DoneableConnectionPoolSettings(ConnectionPoolSettings item,io.fabric8.kubernetes.api.builder.Function<ConnectionPoolSettings,ConnectionPoolSettings> function){
/** * This method has been deprecated, please use method buildConnectionPool instead. * @return The buildable object. */ @Deprecated public ConnectionPoolSettings getConnectionPool(){ return this.connectionPool!=null?this.connectionPool.build():null; }
public A withConnectionPool(ConnectionPoolSettings connectionPool){ _visitables.remove(this.connectionPool); if (connectionPool!=null){ this.connectionPool= new ConnectionPoolSettingsBuilder(connectionPool); _visitables.add(this.connectionPool);} return (A) this; }
public ConnectionPoolSettings done(){ return function.apply(builder.build()); }
public A withConnectionPool(ConnectionPoolSettings connectionPool){ _visitables.remove(this.connectionPool); if (connectionPool!=null){ this.connectionPool= new ConnectionPoolSettingsBuilder(connectionPool); _visitables.add(this.connectionPool);} return (A) this; }