public Image<T> build() { return new Image<>( imageFormat, created, imageLayersBuilder.build(), historyBuilder.build(), ImmutableMap.copyOf(environmentBuilder), entrypoint, programArguments, healthCheck, ImmutableSet.copyOf(exposedPortsBuilder), ImmutableSet.copyOf(volumesBuilder), ImmutableMap.copyOf(labelsBuilder), workingDirectory, user); } }
public Image<T> build() { return new Image<>( imageFormat, created, imageLayersBuilder.build(), historyBuilder.build(), ImmutableMap.copyOf(environmentBuilder), entrypoint, programArguments, healthCheck, ImmutableSet.copyOf(exposedPortsBuilder), ImmutableSet.copyOf(volumesBuilder), ImmutableMap.copyOf(labelsBuilder), workingDirectory, user); } }
/** * Adds all layers in {@code layers}. * * @param <U> child type of {@link Layer} * @param layers the layers to add * @return this * @throws LayerPropertyNotFoundException if adding a layer fails */ public <U extends T> Builder<T> addAll(ImageLayers<U> layers) throws LayerPropertyNotFoundException { for (U layer : layers) { add(layer); } return this; }
public static <U extends Layer> Builder<U> builder() { return new Builder<>(); }
public Image<T> build() { return new Image<>( imageFormat, created, imageLayersBuilder.build(), historyBuilder.build(), ImmutableMap.copyOf(environmentBuilder), entrypoint, programArguments, healthCheck, ImmutableSet.copyOf(exposedPortsBuilder), ImmutableSet.copyOf(volumesBuilder), ImmutableMap.copyOf(labelsBuilder), workingDirectory, user); } }
/** * Adds all layers in {@code layers}. * * @param <U> child type of {@link Layer} * @param layers the layers to add * @return this * @throws LayerPropertyNotFoundException if adding a layer fails */ public <U extends T> Builder<T> addAll(ImageLayers<U> layers) throws LayerPropertyNotFoundException { for (U layer : layers) { add(layer); } return this; }
public static <U extends Layer> Builder<U> builder() { return new Builder<>(); }
/** * Adds a layer to the image. * * @param layer the layer to add * @return this * @throws LayerPropertyNotFoundException if adding the layer fails */ public Builder<T> addLayer(T layer) throws LayerPropertyNotFoundException { imageLayersBuilder.add(layer); return this; }
/** * Adds a layer to the image. * * @param layer the layer to add * @return this * @throws LayerPropertyNotFoundException if adding the layer fails */ public Builder<T> addLayer(T layer) throws LayerPropertyNotFoundException { imageLayersBuilder.add(layer); return this; }
/** * Adds all layers in {@code layers}. * * @param <U> child type of {@link Layer} * @param layers the layers to add * @return this * @throws LayerPropertyNotFoundException if adding a layer fails */ public <U extends T> Builder<T> addAll(ImageLayers<U> layers) throws LayerPropertyNotFoundException { for (U layer : layers) { add(layer); } return this; }
/** * Adds a layer to the image. * * @param layer the layer to add * @return this * @throws LayerPropertyNotFoundException if adding the layer fails */ public Builder<T> addLayer(T layer) throws LayerPropertyNotFoundException { imageLayersBuilder.add(layer); return this; }
public static <U extends Layer> Builder<U> builder() { return new Builder<>(); }