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

io.fabric8.kubernetes.api.model.extensions.ReplicaSetSpecBuilder Maven / Gradle / Ivy

There is a newer version: 6.13.4
Show newest version
package io.fabric8.kubernetes.api.model.extensions;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ReplicaSetSpecBuilder extends ReplicaSetSpecFluent implements VisitableBuilder{
  public ReplicaSetSpecBuilder() {
    this(new ReplicaSetSpec());
  }
  
  public ReplicaSetSpecBuilder(ReplicaSetSpecFluent fluent) {
    this(fluent, new ReplicaSetSpec());
  }
  
  public ReplicaSetSpecBuilder(ReplicaSetSpecFluent fluent,ReplicaSetSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ReplicaSetSpecBuilder(ReplicaSetSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ReplicaSetSpecFluent fluent;
  
  public ReplicaSetSpec build() {
    ReplicaSetSpec buildable = new ReplicaSetSpec(fluent.getMinReadySeconds(),fluent.getReplicas(),fluent.buildSelector(),fluent.buildTemplate());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy