Package com.netflix.genie.common.dto
Class Runtime.Builder
java.lang.Object
com.netflix.genie.common.dto.Runtime.Builder
- Enclosing class:
- Runtime
Builder class for
Runtime
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new immutableRuntime
instance based on the current contents of this builder instance.withImages
(Map<String, ContainerImage> images) Set any container images needed with this resource (job, command, etc).withResources
(RuntimeResources resources) Set the compute runtime resources to use.
-
Constructor Details
-
Builder
public Builder()Constructor.
-
-
Method Details
-
withResources
Set the compute runtime resources to use.- Parameters:
resources
- TheRuntimeResources
to use- Returns:
- This
Runtime.Builder
instance
-
withImages
Set any container images needed with this resource (job, command, etc).- Parameters:
images
- The map of system-wide image key toContainerImage
definition.- Returns:
- This
Runtime.Builder
instance
-
build
Create a new immutableRuntime
instance based on the current contents of this builder instance.- Returns:
- A new
Runtime
instance
-