All Downloads are FREE. Search and download functionalities are using the official Maven repository.

annotations.me.snowdrop.applicationcrd.api.model.DoneableImageSpec Maven / Gradle / Ivy

package me.snowdrop.applicationcrd.api.model;

import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;

public class DoneableImageSpec extends ImageSpecFluentImpl implements Doneable{

    private final ImageSpecBuilder builder;
    private final io.fabric8.kubernetes.api.builder.Function function;

    public DoneableImageSpec(io.fabric8.kubernetes.api.builder.Function function){
            super();this.builder=new ImageSpecBuilder(this);this.function=function;
    }
    public DoneableImageSpec(ImageSpec item,io.fabric8.kubernetes.api.builder.Function function){
            super(item);this.builder=new ImageSpecBuilder(this, item);this.function=function;
    }
    public DoneableImageSpec(ImageSpec item){
            super(item);this.builder=new ImageSpecBuilder(this, item);this.function=new Function() {
    public ImageSpec apply(ImageSpec item) {
        return item;
    }
}
;
    }

    public ImageSpec done(){
             return function.apply(builder.build());
    }




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy