
io.kubernetes.client.models.AppsV1beta1ScaleSpecBuilder Maven / Gradle / Ivy
package io.kubernetes.client.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class AppsV1beta1ScaleSpecBuilder extends AppsV1beta1ScaleSpecFluentImpl implements VisitableBuilder{
AppsV1beta1ScaleSpecFluent> fluent;
Boolean validationEnabled;
public AppsV1beta1ScaleSpecBuilder(){
this(true);
}
public AppsV1beta1ScaleSpecBuilder(Boolean validationEnabled){
this(new AppsV1beta1ScaleSpec(), validationEnabled);
}
public AppsV1beta1ScaleSpecBuilder(AppsV1beta1ScaleSpecFluent> fluent){
this(fluent, true);
}
public AppsV1beta1ScaleSpecBuilder(AppsV1beta1ScaleSpecFluent> fluent,Boolean validationEnabled){
this(fluent, new AppsV1beta1ScaleSpec(), validationEnabled);
}
public AppsV1beta1ScaleSpecBuilder(AppsV1beta1ScaleSpecFluent> fluent,AppsV1beta1ScaleSpec instance){
this(fluent, instance, true);
}
public AppsV1beta1ScaleSpecBuilder(AppsV1beta1ScaleSpecFluent> fluent,AppsV1beta1ScaleSpec instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withReplicas(instance.getReplicas());
this.validationEnabled = validationEnabled;
}
public AppsV1beta1ScaleSpecBuilder(AppsV1beta1ScaleSpec instance){
this(instance,true);
}
public AppsV1beta1ScaleSpecBuilder(AppsV1beta1ScaleSpec instance,Boolean validationEnabled){
this.fluent = this;
this.withReplicas(instance.getReplicas());
this.validationEnabled = validationEnabled;
}
public AppsV1beta1ScaleSpec build(){
AppsV1beta1ScaleSpec buildable = new AppsV1beta1ScaleSpec();
buildable.setReplicas(fluent.getReplicas());
return buildable;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
AppsV1beta1ScaleSpecBuilder that = (AppsV1beta1ScaleSpecBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy