
annotations.io.alauda.kubernetes.api.model.CodeRepositoryOwnerSyncBuilder Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class CodeRepositoryOwnerSyncBuilder extends CodeRepositoryOwnerSyncFluentImpl implements VisitableBuilder{
CodeRepositoryOwnerSyncFluent> fluent;
Boolean validationEnabled;
public CodeRepositoryOwnerSyncBuilder(){
this(true);
}
public CodeRepositoryOwnerSyncBuilder(Boolean validationEnabled){
this(new CodeRepositoryOwnerSync(), validationEnabled);
}
public CodeRepositoryOwnerSyncBuilder(CodeRepositoryOwnerSyncFluent> fluent){
this(fluent, true);
}
public CodeRepositoryOwnerSyncBuilder(CodeRepositoryOwnerSyncFluent> fluent,Boolean validationEnabled){
this(fluent, new CodeRepositoryOwnerSync(), validationEnabled);
}
public CodeRepositoryOwnerSyncBuilder(CodeRepositoryOwnerSyncFluent> fluent,CodeRepositoryOwnerSync instance){
this(fluent, instance, true);
}
public CodeRepositoryOwnerSyncBuilder(CodeRepositoryOwnerSyncFluent> fluent,CodeRepositoryOwnerSync instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withAll(instance.getAll());
fluent.withName(instance.getName());
fluent.withRepositories(instance.getRepositories());
fluent.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public CodeRepositoryOwnerSyncBuilder(CodeRepositoryOwnerSync instance){
this(instance,true);
}
public CodeRepositoryOwnerSyncBuilder(CodeRepositoryOwnerSync instance,Boolean validationEnabled){
this.fluent = this;
this.withAll(instance.getAll());
this.withName(instance.getName());
this.withRepositories(instance.getRepositories());
this.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public CodeRepositoryOwnerSync build(){
CodeRepositoryOwnerSync buildable = new CodeRepositoryOwnerSync(fluent.isAll(),fluent.getName(),fluent.getRepositories(),fluent.getType());
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;
CodeRepositoryOwnerSyncBuilder that = (CodeRepositoryOwnerSyncBuilder) 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