io.alauda.devops.api.model.DoneableUserRestriction 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 DoneableUserRestriction extends UserRestrictionFluentImpl implements Doneable{
private final UserRestrictionBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableUserRestriction(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new UserRestrictionBuilder(this);this.function=function;
}
public DoneableUserRestriction(UserRestriction item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new UserRestrictionBuilder(this, item);this.function=function;
}
public DoneableUserRestriction(UserRestriction item){
super(item);this.builder=new UserRestrictionBuilder(this, item);this.function=new Function() {
public UserRestriction apply(UserRestriction item) {
return item;
}
}
;
}
public UserRestriction done(){
return function.apply(builder.build());
}
}