me.snowdrop.istio.api.model.v1.mixer.AttributeValueBuilder Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.mixer;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class AttributeValueBuilder extends AttributeValueFluentImpl implements VisitableBuilder{
AttributeValueFluent> fluent;
Boolean validationEnabled;
public AttributeValueBuilder(){
this(true);
}
public AttributeValueBuilder(Boolean validationEnabled){
this(new AttributeValue(), validationEnabled);
}
public AttributeValueBuilder(AttributeValueFluent> fluent){
this(fluent, true);
}
public AttributeValueBuilder(AttributeValueFluent> fluent,Boolean validationEnabled){
this(fluent, new AttributeValue(), validationEnabled);
}
public AttributeValueBuilder(AttributeValueFluent> fluent,AttributeValue instance){
this(fluent, instance, true);
}
public AttributeValueBuilder(AttributeValueFluent> fluent,AttributeValue instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withValue(instance.getValue());
this.validationEnabled = validationEnabled;
}
public AttributeValueBuilder(AttributeValue instance){
this(instance,true);
}
public AttributeValueBuilder(AttributeValue instance,Boolean validationEnabled){
this.fluent = this;
this.withValue(instance.getValue());
this.validationEnabled = validationEnabled;
}
public AttributeValue build(){
AttributeValue buildable = new AttributeValue(fluent.getValue());
io.fabric8.kubernetes.api.builder.ValidationUtils.validate(buildable);
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;
AttributeValueBuilder that = (AttributeValueBuilder) 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