annotations.io.alauda.kubernetes.api.model.extensions.DoneableReplicaSet Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableReplicaSet extends ReplicaSetFluentImpl implements Doneable{
private final ReplicaSetBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableReplicaSet(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new ReplicaSetBuilder(this);this.function=function;
}
public DoneableReplicaSet(ReplicaSet item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new ReplicaSetBuilder(this, item);this.function=function;
}
public DoneableReplicaSet(ReplicaSet item){
super(item);this.builder=new ReplicaSetBuilder(this, item);this.function=new Function() {
public ReplicaSet apply(ReplicaSet item) {
return item;
}
}
;
}
public ReplicaSet done(){
return function.apply(builder.build());
}
}