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

io.strimzi.api.kafka.model.KafkaConnectS2ISpecFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.45.0
Show newest version
package io.strimzi.api.kafka.model;

import java.lang.Object;
import java.lang.Boolean;
import io.fabric8.kubernetes.api.model.ResourceRequirements;

public class KafkaConnectS2ISpecFluentImpl> extends KafkaConnectSpecFluentImpl implements KafkaConnectS2ISpecFluent{

    private ResourceRequirements buildResources;
    private boolean insecureSourceRepository;

    public KafkaConnectS2ISpecFluentImpl(){
    }
    public KafkaConnectS2ISpecFluentImpl(KafkaConnectS2ISpec instance){
            this.withBuildResources(instance.getBuildResources());

            this.withInsecureSourceRepository(instance.isInsecureSourceRepository());

            this.withConfig(instance.getConfig());

            this.withLogging(instance.getLogging());

            this.withReplicas(instance.getReplicas());

            this.withVersion(instance.getVersion());

            this.withImage(instance.getImage());

            this.withResources(instance.getResources());

            this.withLivenessProbe(instance.getLivenessProbe());

            this.withReadinessProbe(instance.getReadinessProbe());

            this.withJvmOptions(instance.getJvmOptions());

            this.withMetrics(instance.getMetrics());

            this.withTracing(instance.getTracing());

            this.withAffinity(instance.getAffinity());

            this.withTolerations(instance.getTolerations());

            this.withBootstrapServers(instance.getBootstrapServers());

            this.withTls(instance.getTls());

            this.withAuthentication(instance.getAuthentication());

            this.withTemplate(instance.getTemplate());

            this.withExternalConfiguration(instance.getExternalConfiguration());

    }

    public ResourceRequirements getBuildResources(){
            return this.buildResources;
    }

    public A withBuildResources(ResourceRequirements buildResources){
            this.buildResources=buildResources; return (A) this;
    }

    public Boolean hasBuildResources(){
            return this.buildResources != null;
    }

    public boolean isInsecureSourceRepository(){
            return this.insecureSourceRepository;
    }

    public A withInsecureSourceRepository(boolean insecureSourceRepository){
            this.insecureSourceRepository=insecureSourceRepository; return (A) this;
    }

    public Boolean hasInsecureSourceRepository(){
            return true;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            KafkaConnectS2ISpecFluentImpl that = (KafkaConnectS2ISpecFluentImpl) o;
            if (buildResources != null ? !buildResources.equals(that.buildResources) :that.buildResources != null) return false;
            if (insecureSourceRepository != that.insecureSourceRepository) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy