io.fabric8.kubernetes.api.model.apps.DeploymentBuilder Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model.apps;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class DeploymentBuilder extends DeploymentFluent implements VisitableBuilder{
public DeploymentBuilder() {
this(new Deployment());
}
public DeploymentBuilder(DeploymentFluent fluent) {
this(fluent, new Deployment());
}
public DeploymentBuilder(DeploymentFluent fluent,Deployment instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public DeploymentBuilder(Deployment instance) {
this.fluent = this;
this.copyInstance(instance);
}
DeploymentFluent fluent;
public Deployment build() {
Deployment buildable = new Deployment(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec(),fluent.buildStatus());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}