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