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

io.kubernetes.client.openapi.models.V1ReplicaSetStatusBuilder Maven / Gradle / Ivy

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluentImpl implements VisitableBuilder{
  public V1ReplicaSetStatusBuilder() {
    this(false);
  }
  public V1ReplicaSetStatusBuilder(Boolean validationEnabled) {
    this(new V1ReplicaSetStatus(), validationEnabled);
  }
  public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent) {
    this(fluent, false);
  }
  public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1ReplicaSetStatus(), validationEnabled);
  }
  public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance) {
    this(fluent, instance, false);
  }
  public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withAvailableReplicas(instance.getAvailableReplicas());
      fluent.withConditions(instance.getConditions());
      fluent.withFullyLabeledReplicas(instance.getFullyLabeledReplicas());
      fluent.withObservedGeneration(instance.getObservedGeneration());
      fluent.withReadyReplicas(instance.getReadyReplicas());
      fluent.withReplicas(instance.getReplicas());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance) {
    this(instance,false);
  }
  public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withAvailableReplicas(instance.getAvailableReplicas());
      this.withConditions(instance.getConditions());
      this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas());
      this.withObservedGeneration(instance.getObservedGeneration());
      this.withReadyReplicas(instance.getReadyReplicas());
      this.withReplicas(instance.getReplicas());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1ReplicaSetStatusFluent fluent;
  Boolean validationEnabled;
  public V1ReplicaSetStatus build() {
    V1ReplicaSetStatus buildable = new V1ReplicaSetStatus();
    buildable.setAvailableReplicas(fluent.getAvailableReplicas());
    buildable.setConditions(fluent.getConditions());
    buildable.setFullyLabeledReplicas(fluent.getFullyLabeledReplicas());
    buildable.setObservedGeneration(fluent.getObservedGeneration());
    buildable.setReadyReplicas(fluent.getReadyReplicas());
    buildable.setReplicas(fluent.getReplicas());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy