annotations.me.snowdrop.istio.api.networking.v1alpha3.ConsistentHashFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.api.networking.v1alpha3;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class ConsistentHashFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements ConsistentHashFluent{
private ConsistentHashLBBuilder consistentHash;
public ConsistentHashFluentImpl(){
}
public ConsistentHashFluentImpl(ConsistentHash instance){
this.withConsistentHash(instance.getConsistentHash());
}
/**
* This method has been deprecated, please use method buildConsistentHash instead.
* @return The buildable object.
*/
@Deprecated public ConsistentHashLB getConsistentHash(){
return this.consistentHash!=null?this.consistentHash.build():null;
}
public ConsistentHashLB buildConsistentHash(){
return this.consistentHash!=null?this.consistentHash.build():null;
}
public A withConsistentHash(ConsistentHashLB consistentHash){
_visitables.remove(this.consistentHash);
if (consistentHash!=null){ this.consistentHash= new ConsistentHashLBBuilder(consistentHash); _visitables.add(this.consistentHash);} return (A) this;
}
public Boolean hasConsistentHash(){
return this.consistentHash != null;
}
public ConsistentHashFluent.ConsistentHashNested withNewConsistentHash(){
return new ConsistentHashNestedImpl();
}
public ConsistentHashFluent.ConsistentHashNested withNewConsistentHashLike(ConsistentHashLB item){
return new ConsistentHashNestedImpl(item);
}
public ConsistentHashFluent.ConsistentHashNested editConsistentHash(){
return withNewConsistentHashLike(getConsistentHash());
}
public ConsistentHashFluent.ConsistentHashNested editOrNewConsistentHash(){
return withNewConsistentHashLike(getConsistentHash() != null ? getConsistentHash(): new ConsistentHashLBBuilder().build());
}
public ConsistentHashFluent.ConsistentHashNested editOrNewConsistentHashLike(ConsistentHashLB item){
return withNewConsistentHashLike(getConsistentHash() != null ? getConsistentHash(): item);
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
ConsistentHashFluentImpl that = (ConsistentHashFluentImpl) o;
if (consistentHash != null ? !consistentHash.equals(that.consistentHash) :that.consistentHash != null) return false;
return true;
}
public class ConsistentHashNestedImpl extends ConsistentHashLBFluentImpl> implements ConsistentHashFluent.ConsistentHashNested,io.fabric8.kubernetes.api.builder.Nested{
private final ConsistentHashLBBuilder builder;
ConsistentHashNestedImpl(ConsistentHashLB item){
this.builder = new ConsistentHashLBBuilder(this, item);
}
ConsistentHashNestedImpl(){
this.builder = new ConsistentHashLBBuilder(this);
}
public N and(){
return (N) ConsistentHashFluentImpl.this.withConsistentHash(builder.build());
}
public N endConsistentHash(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy