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

annotations.me.snowdrop.servicecatalog.api.model.DoneableServiceBroker Maven / Gradle / Ivy

The newest version!
package me.snowdrop.servicecatalog.api.model;

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

public class DoneableServiceBroker extends ServiceBrokerFluentImpl implements Doneable{

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

    public DoneableServiceBroker(io.fabric8.kubernetes.api.builder.Function function){
            super();this.builder=new ServiceBrokerBuilder(this);this.function=function;
    }
    public DoneableServiceBroker(ServiceBroker item,io.fabric8.kubernetes.api.builder.Function function){
            super(item);this.builder=new ServiceBrokerBuilder(this, item);this.function=function;
    }
    public DoneableServiceBroker(ServiceBroker item){
            super(item);this.builder=new ServiceBrokerBuilder(this, item);this.function=new Function() {
    public ServiceBroker apply(ServiceBroker item) {
        return item;
    }
}
;
    }

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




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy