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

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

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

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

 /**
  * Generated
  */
public class ScaleSpecFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.autoscaling.v1.ScaleSpecFluent{
  public ScaleSpecFluentImpl() {
  }
  public ScaleSpecFluentImpl(io.fabric8.kubernetes.api.model.autoscaling.v1.ScaleSpec instance) {
    this.withReplicas(instance.getReplicas()); 
  }
  private java.lang.Integer replicas;
  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 boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    ScaleSpecFluentImpl that = (ScaleSpecFluentImpl) o;
    if (replicas != null ? !replicas.equals(that.replicas) :that.replicas != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(replicas,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy