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

io.fabric8.kubernetes.api.model.autoscaling.v1.ScaleStatusFluentImpl Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model.autoscaling.v1;

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

public class ScaleStatusFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.autoscaling.v1.ScaleStatusFluent {

    private java.lang.Integer replicas;
    private java.lang.String selector;

    public ScaleStatusFluentImpl() {
    }

    public ScaleStatusFluentImpl(io.fabric8.kubernetes.api.model.autoscaling.v1.ScaleStatus instance) {
        this.withReplicas(instance.getReplicas()); 
        this.withSelector(instance.getSelector()); 
    }

    public java.lang.Integer getReplicas() {
        return this.replicas;
    }

    public A withReplicas(java.lang.Integer replicas) {
        this.replicas=replicas; return (A) this;
    }

    public java.lang.Boolean hasReplicas() {
        return this.replicas != null;
    }

    public java.lang.String getSelector() {
        return this.selector;
    }

    public A withSelector(java.lang.String selector) {
        this.selector=selector; return (A) this;
    }

    public java.lang.Boolean hasSelector() {
        return this.selector != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withSelector instead.
     */
        public A withNewSelector(java.lang.String arg0) {
        return (A)withSelector(new String(arg0));
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ScaleStatusFluentImpl that = (ScaleStatusFluentImpl) o;
        if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false;
        if (selector != null ? !selector.equals(that.selector) :that.selector != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(replicas,  selector,  super.hashCode());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy