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

annotations.me.snowdrop.servicecatalog.api.model.ServiceInstanceStatusBuilder Maven / Gradle / Ivy

The newest version!
package me.snowdrop.servicecatalog.api.model;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
import javax.validation.Validator;

public class ServiceInstanceStatusBuilder extends ServiceInstanceStatusFluentImpl implements VisitableBuilder{

    ServiceInstanceStatusFluent fluent;
    Boolean validationEnabled;
    Validator validator;

    public ServiceInstanceStatusBuilder(){
            this(true);
    }
    public ServiceInstanceStatusBuilder(Boolean validationEnabled){
            this(new ServiceInstanceStatus(), validationEnabled);
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatusFluent fluent){
            this(fluent, true);
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatusFluent fluent,Boolean validationEnabled){
            this(fluent, new ServiceInstanceStatus(), validationEnabled);
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatusFluent fluent,ServiceInstanceStatus instance){
            this(fluent, instance, true);
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatusFluent fluent,ServiceInstanceStatus instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withAsyncOpInProgress(instance.getAsyncOpInProgress()); 
            fluent.withConditions(instance.getConditions()); 
            fluent.withCurrentOperation(instance.getCurrentOperation()); 
            fluent.withDashboardURL(instance.getDashboardURL()); 
            fluent.withDeprovisionStatus(instance.getDeprovisionStatus()); 
            fluent.withExternalProperties(instance.getExternalProperties()); 
            fluent.withInProgressProperties(instance.getInProgressProperties()); 
            fluent.withLastOperation(instance.getLastOperation()); 
            fluent.withObservedGeneration(instance.getObservedGeneration()); 
            fluent.withOperationStartTime(instance.getOperationStartTime()); 
            fluent.withOrphanMitigationInProgress(instance.getOrphanMitigationInProgress()); 
            fluent.withProvisionStatus(instance.getProvisionStatus()); 
            fluent.withReconciledGeneration(instance.getReconciledGeneration()); 
            this.validationEnabled = validationEnabled; 
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatus instance){
            this(instance,true);
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatus instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withAsyncOpInProgress(instance.getAsyncOpInProgress()); 
            this.withConditions(instance.getConditions()); 
            this.withCurrentOperation(instance.getCurrentOperation()); 
            this.withDashboardURL(instance.getDashboardURL()); 
            this.withDeprovisionStatus(instance.getDeprovisionStatus()); 
            this.withExternalProperties(instance.getExternalProperties()); 
            this.withInProgressProperties(instance.getInProgressProperties()); 
            this.withLastOperation(instance.getLastOperation()); 
            this.withObservedGeneration(instance.getObservedGeneration()); 
            this.withOperationStartTime(instance.getOperationStartTime()); 
            this.withOrphanMitigationInProgress(instance.getOrphanMitigationInProgress()); 
            this.withProvisionStatus(instance.getProvisionStatus()); 
            this.withReconciledGeneration(instance.getReconciledGeneration()); 
            this.validationEnabled = validationEnabled; 
    }
    public ServiceInstanceStatusBuilder(Validator validator){
            this(new ServiceInstanceStatus(), true);
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatusFluent fluent,ServiceInstanceStatus instance,Validator validator){
            this.fluent = fluent; 
            fluent.withAsyncOpInProgress(instance.getAsyncOpInProgress()); 
            fluent.withConditions(instance.getConditions()); 
            fluent.withCurrentOperation(instance.getCurrentOperation()); 
            fluent.withDashboardURL(instance.getDashboardURL()); 
            fluent.withDeprovisionStatus(instance.getDeprovisionStatus()); 
            fluent.withExternalProperties(instance.getExternalProperties()); 
            fluent.withInProgressProperties(instance.getInProgressProperties()); 
            fluent.withLastOperation(instance.getLastOperation()); 
            fluent.withObservedGeneration(instance.getObservedGeneration()); 
            fluent.withOperationStartTime(instance.getOperationStartTime()); 
            fluent.withOrphanMitigationInProgress(instance.getOrphanMitigationInProgress()); 
            fluent.withProvisionStatus(instance.getProvisionStatus()); 
            fluent.withReconciledGeneration(instance.getReconciledGeneration()); 
            this.validator = validator;
            this.validationEnabled = validator != null; 
    }
    public ServiceInstanceStatusBuilder(ServiceInstanceStatus instance,Validator validator){
            this.fluent = this; 
            this.withAsyncOpInProgress(instance.getAsyncOpInProgress()); 
            this.withConditions(instance.getConditions()); 
            this.withCurrentOperation(instance.getCurrentOperation()); 
            this.withDashboardURL(instance.getDashboardURL()); 
            this.withDeprovisionStatus(instance.getDeprovisionStatus()); 
            this.withExternalProperties(instance.getExternalProperties()); 
            this.withInProgressProperties(instance.getInProgressProperties()); 
            this.withLastOperation(instance.getLastOperation()); 
            this.withObservedGeneration(instance.getObservedGeneration()); 
            this.withOperationStartTime(instance.getOperationStartTime()); 
            this.withOrphanMitigationInProgress(instance.getOrphanMitigationInProgress()); 
            this.withProvisionStatus(instance.getProvisionStatus()); 
            this.withReconciledGeneration(instance.getReconciledGeneration()); 
            this.validator = validator; 
            this.validationEnabled = validator != null; 
    }

    public ServiceInstanceStatus build(){
            ServiceInstanceStatus buildable = new ServiceInstanceStatus(fluent.isAsyncOpInProgress(),fluent.getConditions(),fluent.getCurrentOperation(),fluent.getDashboardURL(),fluent.getDeprovisionStatus(),fluent.getExternalProperties(),fluent.getInProgressProperties(),fluent.getLastOperation(),fluent.getObservedGeneration(),fluent.getOperationStartTime(),fluent.isOrphanMitigationInProgress(),fluent.getProvisionStatus(),fluent.getReconciledGeneration());
            if (validationEnabled) {io.fabric8.kubernetes.api.builder.ValidationUtils.validate(buildable, validator);}
            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;
            ServiceInstanceStatusBuilder that = (ServiceInstanceStatusBuilder) 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