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

io.kubernetes.client.models.ExtensionsV1beta1RollingUpdateDeploymentFluentImpl Maven / Gradle / Ivy

package io.kubernetes.client.models;

import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class ExtensionsV1beta1RollingUpdateDeploymentFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements ExtensionsV1beta1RollingUpdateDeploymentFluent{

    private String maxSurge;
    private String maxUnavailable;

    public ExtensionsV1beta1RollingUpdateDeploymentFluentImpl(){
    }
    public ExtensionsV1beta1RollingUpdateDeploymentFluentImpl(ExtensionsV1beta1RollingUpdateDeployment instance){
            this.withMaxSurge(instance.getMaxSurge());

            this.withMaxUnavailable(instance.getMaxUnavailable());

    }

    public String getMaxSurge(){
            return this.maxSurge;
    }

    public A withMaxSurge(String maxSurge){
            this.maxSurge=maxSurge; return (A) this;
    }

    public Boolean hasMaxSurge(){
            return this.maxSurge != null;
    }

    public String getMaxUnavailable(){
            return this.maxUnavailable;
    }

    public A withMaxUnavailable(String maxUnavailable){
            this.maxUnavailable=maxUnavailable; return (A) this;
    }

    public Boolean hasMaxUnavailable(){
            return this.maxUnavailable != null;
    }

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




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy