All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.alauda.kubernetes.api.model.ValidationSchemaBuilder Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show 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 ValidationSchemaBuilder extends ValidationSchemaFluentImpl implements VisitableBuilder{

    ValidationSchemaFluent fluent;
    Boolean validationEnabled;

    public ValidationSchemaBuilder(){
            this(true);
    }
    public ValidationSchemaBuilder(Boolean validationEnabled){
            this(new ValidationSchema(), validationEnabled);
    }
    public ValidationSchemaBuilder(ValidationSchemaFluent fluent){
            this(fluent, true);
    }
    public ValidationSchemaBuilder(ValidationSchemaFluent fluent,Boolean validationEnabled){
            this(fluent, new ValidationSchema(), validationEnabled);
    }
    public ValidationSchemaBuilder(ValidationSchemaFluent fluent,ValidationSchema instance){
            this(fluent, instance, true);
    }
    public ValidationSchemaBuilder(ValidationSchemaFluent fluent,ValidationSchema instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withBaseKubernetesList(instance.getBaseKubernetesList()); 
            fluent.withBinding(instance.getBinding()); 
            fluent.withClusterPipelineTaskTemplate(instance.getClusterPipelineTaskTemplate()); 
            fluent.withClusterPipelineTaskTemplateList(instance.getClusterPipelineTaskTemplateList()); 
            fluent.withClusterPipelineTemplate(instance.getClusterPipelineTemplate()); 
            fluent.withClusterPipelineTemplateList(instance.getClusterPipelineTemplateList()); 
            fluent.withCodeRepoBinding(instance.getCodeRepoBinding()); 
            fluent.withCodeRepoBindingList(instance.getCodeRepoBindingList()); 
            fluent.withCodeRepoService(instance.getCodeRepoService()); 
            fluent.withCodeRepoServiceList(instance.getCodeRepoServiceList()); 
            fluent.withCodeRepository(instance.getCodeRepository()); 
            fluent.withCodeRepositoryList(instance.getCodeRepositoryList()); 
            fluent.withComponentStatusList(instance.getComponentStatusList()); 
            fluent.withConfig(instance.getConfig()); 
            fluent.withConfigMap(instance.getConfigMap()); 
            fluent.withConfigMapList(instance.getConfigMapList()); 
            fluent.withContainerStatus(instance.getContainerStatus()); 
            fluent.withCronJob(instance.getCronJob()); 
            fluent.withCronJobList(instance.getCronJobList()); 
            fluent.withCustomResourceDefinition(instance.getCustomResourceDefinition()); 
            fluent.withCustomResourceDefinitionCondition(instance.getCustomResourceDefinitionCondition()); 
            fluent.withCustomResourceDefinitionList(instance.getCustomResourceDefinitionList()); 
            fluent.withCustomResourceDefinitionNames(instance.getCustomResourceDefinitionNames()); 
            fluent.withCustomResourceDefinitionSpec(instance.getCustomResourceDefinitionSpec()); 
            fluent.withCustomResourceDefinitionStatus(instance.getCustomResourceDefinitionStatus()); 
            fluent.withDaemonSet(instance.getDaemonSet()); 
            fluent.withDaemonSetList(instance.getDaemonSetList()); 
            fluent.withDeleteOptions(instance.getDeleteOptions()); 
            fluent.withDeployment(instance.getDeployment()); 
            fluent.withDeploymentList(instance.getDeploymentList()); 
            fluent.withDeploymentRollback(instance.getDeploymentRollback()); 
            fluent.withEndpoints(instance.getEndpoints()); 
            fluent.withEndpointsList(instance.getEndpointsList()); 
            fluent.withEnvVar(instance.getEnvVar()); 
            fluent.withEventList(instance.getEventList()); 
            fluent.withHorizontalPodAutoscaler(instance.getHorizontalPodAutoscaler()); 
            fluent.withHorizontalPodAutoscalerList(instance.getHorizontalPodAutoscalerList()); 
            fluent.withInfo(instance.getInfo()); 
            fluent.withIngress(instance.getIngress()); 
            fluent.withIngressList(instance.getIngressList()); 
            fluent.withJenkins(instance.getJenkins()); 
            fluent.withJenkinsBinding(instance.getJenkinsBinding()); 
            fluent.withJenkinsBindingList(instance.getJenkinsBindingList()); 
            fluent.withJenkinsList(instance.getJenkinsList()); 
            fluent.withJenkinsfilePreview(instance.getJenkinsfilePreview()); 
            fluent.withJenkinsfilePreviewOptions(instance.getJenkinsfilePreviewOptions()); 
            fluent.withJob(instance.getJob()); 
            fluent.withJobList(instance.getJobList()); 
            fluent.withK8sLocalSubjectAccessReview(instance.getK8sLocalSubjectAccessReview()); 
            fluent.withK8sSubjectAccessReview(instance.getK8sSubjectAccessReview()); 
            fluent.withLimitRangeList(instance.getLimitRangeList()); 
            fluent.withListMeta(instance.getListMeta()); 
            fluent.withNamespace(instance.getNamespace()); 
            fluent.withNamespaceList(instance.getNamespaceList()); 
            fluent.withNetworkPolicy(instance.getNetworkPolicy()); 
            fluent.withNetworkPolicyList(instance.getNetworkPolicyList()); 
            fluent.withNode(instance.getNode()); 
            fluent.withNodeList(instance.getNodeList()); 
            fluent.withObjectMeta(instance.getObjectMeta()); 
            fluent.withPatch(instance.getPatch()); 
            fluent.withPersistentVolume(instance.getPersistentVolume()); 
            fluent.withPersistentVolumeClaim(instance.getPersistentVolumeClaim()); 
            fluent.withPersistentVolumeClaimList(instance.getPersistentVolumeClaimList()); 
            fluent.withPersistentVolumeList(instance.getPersistentVolumeList()); 
            fluent.withPipeline(instance.getPipeline()); 
            fluent.withPipelineConfig(instance.getPipelineConfig()); 
            fluent.withPipelineConfigList(instance.getPipelineConfigList()); 
            fluent.withPipelineList(instance.getPipelineList()); 
            fluent.withPipelineTaskTemplate(instance.getPipelineTaskTemplate()); 
            fluent.withPipelineTaskTemplateList(instance.getPipelineTaskTemplateList()); 
            fluent.withPipelineTemplate(instance.getPipelineTemplate()); 
            fluent.withPipelineTemplateList(instance.getPipelineTemplateList()); 
            fluent.withPodDisruptionBudget(instance.getPodDisruptionBudget()); 
            fluent.withPodDisruptionBudgetList(instance.getPodDisruptionBudgetList()); 
            fluent.withPodList(instance.getPodList()); 
            fluent.withPodSecurityPolicy(instance.getPodSecurityPolicy()); 
            fluent.withPodSecurityPolicyList(instance.getPodSecurityPolicyList()); 
            fluent.withPodTemplateList(instance.getPodTemplateList()); 
            fluent.withProject(instance.getProject()); 
            fluent.withProjectList(instance.getProjectList()); 
            fluent.withQuantity(instance.getQuantity()); 
            fluent.withReplicaSet(instance.getReplicaSet()); 
            fluent.withReplicaSetList(instance.getReplicaSetList()); 
            fluent.withReplicationControllerList(instance.getReplicationControllerList()); 
            fluent.withResourceQuota(instance.getResourceQuota()); 
            fluent.withResourceQuotaList(instance.getResourceQuotaList()); 
            fluent.withRootPaths(instance.getRootPaths()); 
            fluent.withScale(instance.getScale()); 
            fluent.withSecret(instance.getSecret()); 
            fluent.withSecretList(instance.getSecretList()); 
            fluent.withServiceAccount(instance.getServiceAccount()); 
            fluent.withServiceAccountList(instance.getServiceAccountList()); 
            fluent.withServiceList(instance.getServiceList()); 
            fluent.withStatefulSet(instance.getStatefulSet()); 
            fluent.withStatefulSetList(instance.getStatefulSetList()); 
            fluent.withStatus(instance.getStatus()); 
            fluent.withStorageClass(instance.getStorageClass()); 
            fluent.withStorageClassList(instance.getStorageClassList()); 
            fluent.withThirdPartyResource(instance.getThirdPartyResource()); 
            fluent.withThirdPartyResourceList(instance.getThirdPartyResourceList()); 
            fluent.withTokenReview(instance.getTokenReview()); 
            fluent.withToleration(instance.getToleration()); 
            fluent.withWatchEvent(instance.getWatchEvent()); 
            this.validationEnabled = validationEnabled; 
    }
    public ValidationSchemaBuilder(ValidationSchema instance){
            this(instance,true);
    }
    public ValidationSchemaBuilder(ValidationSchema instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withBaseKubernetesList(instance.getBaseKubernetesList()); 
            this.withBinding(instance.getBinding()); 
            this.withClusterPipelineTaskTemplate(instance.getClusterPipelineTaskTemplate()); 
            this.withClusterPipelineTaskTemplateList(instance.getClusterPipelineTaskTemplateList()); 
            this.withClusterPipelineTemplate(instance.getClusterPipelineTemplate()); 
            this.withClusterPipelineTemplateList(instance.getClusterPipelineTemplateList()); 
            this.withCodeRepoBinding(instance.getCodeRepoBinding()); 
            this.withCodeRepoBindingList(instance.getCodeRepoBindingList()); 
            this.withCodeRepoService(instance.getCodeRepoService()); 
            this.withCodeRepoServiceList(instance.getCodeRepoServiceList()); 
            this.withCodeRepository(instance.getCodeRepository()); 
            this.withCodeRepositoryList(instance.getCodeRepositoryList()); 
            this.withComponentStatusList(instance.getComponentStatusList()); 
            this.withConfig(instance.getConfig()); 
            this.withConfigMap(instance.getConfigMap()); 
            this.withConfigMapList(instance.getConfigMapList()); 
            this.withContainerStatus(instance.getContainerStatus()); 
            this.withCronJob(instance.getCronJob()); 
            this.withCronJobList(instance.getCronJobList()); 
            this.withCustomResourceDefinition(instance.getCustomResourceDefinition()); 
            this.withCustomResourceDefinitionCondition(instance.getCustomResourceDefinitionCondition()); 
            this.withCustomResourceDefinitionList(instance.getCustomResourceDefinitionList()); 
            this.withCustomResourceDefinitionNames(instance.getCustomResourceDefinitionNames()); 
            this.withCustomResourceDefinitionSpec(instance.getCustomResourceDefinitionSpec()); 
            this.withCustomResourceDefinitionStatus(instance.getCustomResourceDefinitionStatus()); 
            this.withDaemonSet(instance.getDaemonSet()); 
            this.withDaemonSetList(instance.getDaemonSetList()); 
            this.withDeleteOptions(instance.getDeleteOptions()); 
            this.withDeployment(instance.getDeployment()); 
            this.withDeploymentList(instance.getDeploymentList()); 
            this.withDeploymentRollback(instance.getDeploymentRollback()); 
            this.withEndpoints(instance.getEndpoints()); 
            this.withEndpointsList(instance.getEndpointsList()); 
            this.withEnvVar(instance.getEnvVar()); 
            this.withEventList(instance.getEventList()); 
            this.withHorizontalPodAutoscaler(instance.getHorizontalPodAutoscaler()); 
            this.withHorizontalPodAutoscalerList(instance.getHorizontalPodAutoscalerList()); 
            this.withInfo(instance.getInfo()); 
            this.withIngress(instance.getIngress()); 
            this.withIngressList(instance.getIngressList()); 
            this.withJenkins(instance.getJenkins()); 
            this.withJenkinsBinding(instance.getJenkinsBinding()); 
            this.withJenkinsBindingList(instance.getJenkinsBindingList()); 
            this.withJenkinsList(instance.getJenkinsList()); 
            this.withJenkinsfilePreview(instance.getJenkinsfilePreview()); 
            this.withJenkinsfilePreviewOptions(instance.getJenkinsfilePreviewOptions()); 
            this.withJob(instance.getJob()); 
            this.withJobList(instance.getJobList()); 
            this.withK8sLocalSubjectAccessReview(instance.getK8sLocalSubjectAccessReview()); 
            this.withK8sSubjectAccessReview(instance.getK8sSubjectAccessReview()); 
            this.withLimitRangeList(instance.getLimitRangeList()); 
            this.withListMeta(instance.getListMeta()); 
            this.withNamespace(instance.getNamespace()); 
            this.withNamespaceList(instance.getNamespaceList()); 
            this.withNetworkPolicy(instance.getNetworkPolicy()); 
            this.withNetworkPolicyList(instance.getNetworkPolicyList()); 
            this.withNode(instance.getNode()); 
            this.withNodeList(instance.getNodeList()); 
            this.withObjectMeta(instance.getObjectMeta()); 
            this.withPatch(instance.getPatch()); 
            this.withPersistentVolume(instance.getPersistentVolume()); 
            this.withPersistentVolumeClaim(instance.getPersistentVolumeClaim()); 
            this.withPersistentVolumeClaimList(instance.getPersistentVolumeClaimList()); 
            this.withPersistentVolumeList(instance.getPersistentVolumeList()); 
            this.withPipeline(instance.getPipeline()); 
            this.withPipelineConfig(instance.getPipelineConfig()); 
            this.withPipelineConfigList(instance.getPipelineConfigList()); 
            this.withPipelineList(instance.getPipelineList()); 
            this.withPipelineTaskTemplate(instance.getPipelineTaskTemplate()); 
            this.withPipelineTaskTemplateList(instance.getPipelineTaskTemplateList()); 
            this.withPipelineTemplate(instance.getPipelineTemplate()); 
            this.withPipelineTemplateList(instance.getPipelineTemplateList()); 
            this.withPodDisruptionBudget(instance.getPodDisruptionBudget()); 
            this.withPodDisruptionBudgetList(instance.getPodDisruptionBudgetList()); 
            this.withPodList(instance.getPodList()); 
            this.withPodSecurityPolicy(instance.getPodSecurityPolicy()); 
            this.withPodSecurityPolicyList(instance.getPodSecurityPolicyList()); 
            this.withPodTemplateList(instance.getPodTemplateList()); 
            this.withProject(instance.getProject()); 
            this.withProjectList(instance.getProjectList()); 
            this.withQuantity(instance.getQuantity()); 
            this.withReplicaSet(instance.getReplicaSet()); 
            this.withReplicaSetList(instance.getReplicaSetList()); 
            this.withReplicationControllerList(instance.getReplicationControllerList()); 
            this.withResourceQuota(instance.getResourceQuota()); 
            this.withResourceQuotaList(instance.getResourceQuotaList()); 
            this.withRootPaths(instance.getRootPaths()); 
            this.withScale(instance.getScale()); 
            this.withSecret(instance.getSecret()); 
            this.withSecretList(instance.getSecretList()); 
            this.withServiceAccount(instance.getServiceAccount()); 
            this.withServiceAccountList(instance.getServiceAccountList()); 
            this.withServiceList(instance.getServiceList()); 
            this.withStatefulSet(instance.getStatefulSet()); 
            this.withStatefulSetList(instance.getStatefulSetList()); 
            this.withStatus(instance.getStatus()); 
            this.withStorageClass(instance.getStorageClass()); 
            this.withStorageClassList(instance.getStorageClassList()); 
            this.withThirdPartyResource(instance.getThirdPartyResource()); 
            this.withThirdPartyResourceList(instance.getThirdPartyResourceList()); 
            this.withTokenReview(instance.getTokenReview()); 
            this.withToleration(instance.getToleration()); 
            this.withWatchEvent(instance.getWatchEvent()); 
            this.validationEnabled = validationEnabled; 
    }

    public ValidationSchema build(){
            ValidationSchema buildable = new ValidationSchema(fluent.getBaseKubernetesList(),fluent.getBinding(),fluent.getClusterPipelineTaskTemplate(),fluent.getClusterPipelineTaskTemplateList(),fluent.getClusterPipelineTemplate(),fluent.getClusterPipelineTemplateList(),fluent.getCodeRepoBinding(),fluent.getCodeRepoBindingList(),fluent.getCodeRepoService(),fluent.getCodeRepoServiceList(),fluent.getCodeRepository(),fluent.getCodeRepositoryList(),fluent.getComponentStatusList(),fluent.getConfig(),fluent.getConfigMap(),fluent.getConfigMapList(),fluent.getContainerStatus(),fluent.getCronJob(),fluent.getCronJobList(),fluent.getCustomResourceDefinition(),fluent.getCustomResourceDefinitionCondition(),fluent.getCustomResourceDefinitionList(),fluent.getCustomResourceDefinitionNames(),fluent.getCustomResourceDefinitionSpec(),fluent.getCustomResourceDefinitionStatus(),fluent.getDaemonSet(),fluent.getDaemonSetList(),fluent.getDeleteOptions(),fluent.getDeployment(),fluent.getDeploymentList(),fluent.getDeploymentRollback(),fluent.getEndpoints(),fluent.getEndpointsList(),fluent.getEnvVar(),fluent.getEventList(),fluent.getHorizontalPodAutoscaler(),fluent.getHorizontalPodAutoscalerList(),fluent.getInfo(),fluent.getIngress(),fluent.getIngressList(),fluent.getJenkins(),fluent.getJenkinsBinding(),fluent.getJenkinsBindingList(),fluent.getJenkinsList(),fluent.getJenkinsfilePreview(),fluent.getJenkinsfilePreviewOptions(),fluent.getJob(),fluent.getJobList(),fluent.getK8sLocalSubjectAccessReview(),fluent.getK8sSubjectAccessReview(),fluent.getLimitRangeList(),fluent.getListMeta(),fluent.getNamespace(),fluent.getNamespaceList(),fluent.getNetworkPolicy(),fluent.getNetworkPolicyList(),fluent.getNode(),fluent.getNodeList(),fluent.getObjectMeta(),fluent.getPatch(),fluent.getPersistentVolume(),fluent.getPersistentVolumeClaim(),fluent.getPersistentVolumeClaimList(),fluent.getPersistentVolumeList(),fluent.getPipeline(),fluent.getPipelineConfig(),fluent.getPipelineConfigList(),fluent.getPipelineList(),fluent.getPipelineTaskTemplate(),fluent.getPipelineTaskTemplateList(),fluent.getPipelineTemplate(),fluent.getPipelineTemplateList(),fluent.getPodDisruptionBudget(),fluent.getPodDisruptionBudgetList(),fluent.getPodList(),fluent.getPodSecurityPolicy(),fluent.getPodSecurityPolicyList(),fluent.getPodTemplateList(),fluent.getProject(),fluent.getProjectList(),fluent.getQuantity(),fluent.getReplicaSet(),fluent.getReplicaSetList(),fluent.getReplicationControllerList(),fluent.getResourceQuota(),fluent.getResourceQuotaList(),fluent.getRootPaths(),fluent.getScale(),fluent.getSecret(),fluent.getSecretList(),fluent.getServiceAccount(),fluent.getServiceAccountList(),fluent.getServiceList(),fluent.getStatefulSet(),fluent.getStatefulSetList(),fluent.getStatus(),fluent.getStorageClass(),fluent.getStorageClassList(),fluent.getThirdPartyResource(),fluent.getThirdPartyResourceList(),fluent.getTokenReview(),fluent.getToleration(),fluent.getWatchEvent());
            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;
            ValidationSchemaBuilder that = (ValidationSchemaBuilder) 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 - 2024 Weber Informatics LLC | Privacy Policy