io.alauda.devops.api.model.DoneableClusterRoleScopeRestriction Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableClusterRoleScopeRestriction extends ClusterRoleScopeRestrictionFluentImpl implements Doneable{
private final ClusterRoleScopeRestrictionBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableClusterRoleScopeRestriction(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new ClusterRoleScopeRestrictionBuilder(this);this.function=function;
}
public DoneableClusterRoleScopeRestriction(ClusterRoleScopeRestriction item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new ClusterRoleScopeRestrictionBuilder(this, item);this.function=function;
}
public DoneableClusterRoleScopeRestriction(ClusterRoleScopeRestriction item){
super(item);this.builder=new ClusterRoleScopeRestrictionBuilder(this, item);this.function=new Function() {
public ClusterRoleScopeRestriction apply(ClusterRoleScopeRestriction item) {
return item;
}
}
;
}
public ClusterRoleScopeRestriction done(){
return function.apply(builder.build());
}
}