public static class ContainerConfiguration.Builder extends Object
ContainerConfiguration.| Modifier and Type | Method and Description |
|---|---|
ContainerConfiguration |
build()
Builds the
ContainerConfiguration. |
ContainerConfiguration.Builder |
setCreationTime(Instant creationTime)
Sets the image creation time.
|
ContainerConfiguration.Builder |
setEntrypoint(List<String> entrypoint)
Sets the container entrypoint.
|
ContainerConfiguration.Builder |
setEnvironment(Map<String,String> environmentMap)
Sets the container's environment variables, mapping variable name to value.
|
ContainerConfiguration.Builder |
setExposedPorts(List<Port> exposedPorts)
Sets the container's exposed ports.
|
ContainerConfiguration.Builder |
setLabels(Map<String,String> labels)
Sets the container's labels.
|
ContainerConfiguration.Builder |
setProgramArguments(List<String> programArguments)
Sets the commandline arguments for main.
|
public ContainerConfiguration.Builder setCreationTime(Instant creationTime)
creationTime - the creation timepublic ContainerConfiguration.Builder setProgramArguments(@Nullable List<String> programArguments)
programArguments - the list of argumentspublic ContainerConfiguration.Builder setEnvironment(@Nullable Map<String,String> environmentMap)
environmentMap - the mappublic ContainerConfiguration.Builder setExposedPorts(@Nullable List<Port> exposedPorts)
exposedPorts - the list of portspublic ContainerConfiguration.Builder setLabels(@Nullable Map<String,String> labels)
labels - the map of labelspublic ContainerConfiguration.Builder setEntrypoint(@Nullable List<String> entrypoint)
entrypoint - the tokenized command to run when the container startspublic ContainerConfiguration build()
ContainerConfiguration.ContainerConfigurationCopyright © 2018. All rights reserved.