Class Image.Builder
java.lang.Object
com.netflix.genie.common.internal.dtos.Image.Builder
- Enclosing class:
- Image
Builder for immutable instances of
Image
.- Since:
- 4.3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create an immutable instance ofImage
based on the current contents of this builder instance.withArguments
(List<String> arguments) Set the arguments for the image.Set the name of the image to use.Set the tag of the image to use.
-
Constructor Details
-
Builder
public Builder()Constructor.
-
-
Method Details
-
withName
Set the name of the image to use.- Parameters:
name
- The name or null- Returns:
- This
Image.Builder
instance
-
withTag
Set the tag of the image to use.- Parameters:
tag
- The tag or null- Returns:
- This
Image.Builder
instance
-
withArguments
Set the arguments for the image.- Parameters:
arguments
- The arguments. null will clear any currently set arguments, as will empty list. Any other value with replace.- Returns:
- This
Image.Builder
instance
-
build
Create an immutable instance ofImage
based on the current contents of this builder instance.- Returns:
- A new
Image
instance
-