
annotations.io.alauda.kubernetes.api.model.CodeRepoBindingAccountBuilder Maven / Gradle / Ivy
The newest version!
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class CodeRepoBindingAccountBuilder extends CodeRepoBindingAccountFluentImpl implements VisitableBuilder{
CodeRepoBindingAccountFluent> fluent;
Boolean validationEnabled;
public CodeRepoBindingAccountBuilder(){
this(true);
}
public CodeRepoBindingAccountBuilder(Boolean validationEnabled){
this(new CodeRepoBindingAccount(), validationEnabled);
}
public CodeRepoBindingAccountBuilder(CodeRepoBindingAccountFluent> fluent){
this(fluent, true);
}
public CodeRepoBindingAccountBuilder(CodeRepoBindingAccountFluent> fluent,Boolean validationEnabled){
this(fluent, new CodeRepoBindingAccount(), validationEnabled);
}
public CodeRepoBindingAccountBuilder(CodeRepoBindingAccountFluent> fluent,CodeRepoBindingAccount instance){
this(fluent, instance, true);
}
public CodeRepoBindingAccountBuilder(CodeRepoBindingAccountFluent> fluent,CodeRepoBindingAccount instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withOwners(instance.getOwners());
fluent.withSecret(instance.getSecret());
this.validationEnabled = validationEnabled;
}
public CodeRepoBindingAccountBuilder(CodeRepoBindingAccount instance){
this(instance,true);
}
public CodeRepoBindingAccountBuilder(CodeRepoBindingAccount instance,Boolean validationEnabled){
this.fluent = this;
this.withOwners(instance.getOwners());
this.withSecret(instance.getSecret());
this.validationEnabled = validationEnabled;
}
public CodeRepoBindingAccount build(){
CodeRepoBindingAccount buildable = new CodeRepoBindingAccount(fluent.getOwners(),fluent.getSecret());
io.alauda.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;
CodeRepoBindingAccountBuilder that = (CodeRepoBindingAccountBuilder) 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