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

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

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

import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class CertificateAuthorityFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements CertificateAuthorityFluent{

    private int validityDays;
    private boolean generateCertificateAuthority;
    private int renewalDays;
    private CertificateExpirationPolicy certificateExpirationPolicy;

    public CertificateAuthorityFluentImpl(){
    }
    public CertificateAuthorityFluentImpl(CertificateAuthority instance){
            this.withValidityDays(instance.getValidityDays());

            this.withGenerateCertificateAuthority(instance.isGenerateCertificateAuthority());

            this.withRenewalDays(instance.getRenewalDays());

            this.withCertificateExpirationPolicy(instance.getCertificateExpirationPolicy());

    }

    public int getValidityDays(){
            return this.validityDays;
    }

    public A withValidityDays(int validityDays){
            this.validityDays=validityDays; return (A) this;
    }

    public Boolean hasValidityDays(){
            return true;
    }

    public boolean isGenerateCertificateAuthority(){
            return this.generateCertificateAuthority;
    }

    public A withGenerateCertificateAuthority(boolean generateCertificateAuthority){
            this.generateCertificateAuthority=generateCertificateAuthority; return (A) this;
    }

    public Boolean hasGenerateCertificateAuthority(){
            return true;
    }

    public int getRenewalDays(){
            return this.renewalDays;
    }

    public A withRenewalDays(int renewalDays){
            this.renewalDays=renewalDays; return (A) this;
    }

    public Boolean hasRenewalDays(){
            return true;
    }

    public CertificateExpirationPolicy getCertificateExpirationPolicy(){
            return this.certificateExpirationPolicy;
    }

    public A withCertificateExpirationPolicy(CertificateExpirationPolicy certificateExpirationPolicy){
            this.certificateExpirationPolicy=certificateExpirationPolicy; return (A) this;
    }

    public Boolean hasCertificateExpirationPolicy(){
            return this.certificateExpirationPolicy != null;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            CertificateAuthorityFluentImpl that = (CertificateAuthorityFluentImpl) o;
            if (validityDays != that.validityDays) return false;
            if (generateCertificateAuthority != that.generateCertificateAuthority) return false;
            if (renewalDays != that.renewalDays) return false;
            if (certificateExpirationPolicy != null ? !certificateExpirationPolicy.equals(that.certificateExpirationPolicy) :that.certificateExpirationPolicy != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy