io.fabric8.openclustermanagement.api.model.cluster.v1.ManagedClusterStatusBuilder Maven / Gradle / Ivy
package io.fabric8.openclustermanagement.api.model.cluster.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ManagedClusterStatusBuilder extends ManagedClusterStatusFluent implements VisitableBuilder{
public ManagedClusterStatusBuilder() {
this(new ManagedClusterStatus());
}
public ManagedClusterStatusBuilder(ManagedClusterStatusFluent> fluent) {
this(fluent, new ManagedClusterStatus());
}
public ManagedClusterStatusBuilder(ManagedClusterStatusFluent> fluent,ManagedClusterStatus instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ManagedClusterStatusBuilder(ManagedClusterStatus instance) {
this.fluent = this;
this.copyInstance(instance);
}
ManagedClusterStatusFluent> fluent;
public ManagedClusterStatus build() {
ManagedClusterStatus buildable = new ManagedClusterStatus(fluent.getAllocatable(),fluent.getCapacity(),fluent.buildClusterClaims(),fluent.getConditions(),fluent.buildVersion());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}