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

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

package io.kubernetes.client.models;

import java.lang.Integer;
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 V2beta1ResourceMetricStatusFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V2beta1ResourceMetricStatusFluent{

    private Integer currentAverageUtilization;
    private String currentAverageValue;
    private String name;

    public V2beta1ResourceMetricStatusFluentImpl(){
    }
    public V2beta1ResourceMetricStatusFluentImpl(V2beta1ResourceMetricStatus instance){
            this.withCurrentAverageUtilization(instance.getCurrentAverageUtilization());

            this.withCurrentAverageValue(instance.getCurrentAverageValue());

            this.withName(instance.getName());

    }

    public Integer getCurrentAverageUtilization(){
            return this.currentAverageUtilization;
    }

    public A withCurrentAverageUtilization(Integer currentAverageUtilization){
            this.currentAverageUtilization=currentAverageUtilization; return (A) this;
    }

    public Boolean hasCurrentAverageUtilization(){
            return this.currentAverageUtilization != null;
    }

    public A withNewCurrentAverageUtilization(int arg1){
            return (A)withCurrentAverageUtilization(new Integer(arg1));
    }

    public A withNewCurrentAverageUtilization(String arg1){
            return (A)withCurrentAverageUtilization(new Integer(arg1));
    }

    public String getCurrentAverageValue(){
            return this.currentAverageValue;
    }

    public A withCurrentAverageValue(String currentAverageValue){
            this.currentAverageValue=currentAverageValue; return (A) this;
    }

    public Boolean hasCurrentAverageValue(){
            return this.currentAverageValue != null;
    }

    public String getName(){
            return this.name;
    }

    public A withName(String name){
            this.name=name; return (A) this;
    }

    public Boolean hasName(){
            return this.name != 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;
            V2beta1ResourceMetricStatusFluentImpl that = (V2beta1ResourceMetricStatusFluentImpl) o;
            if (currentAverageUtilization != null ? !currentAverageUtilization.equals(that.currentAverageUtilization) :that.currentAverageUtilization != null) return false;
            if (currentAverageValue != null ? !currentAverageValue.equals(that.currentAverageValue) :that.currentAverageValue != null) return false;
            if (name != null ? !name.equals(that.name) :that.name != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy