Package com.netflix.genie.web.properties
Class JobResolutionProperties.DefaultImage
java.lang.Object
com.netflix.genie.web.properties.JobResolutionProperties.DefaultImage
- Enclosing class:
- JobResolutionProperties
Defaults for container images that will combine together to execute the Genie job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of arguments that should be used when launching the image.getName()
Get the name of the image if one was set.getTag()
Get the tag for the image that should be used if one was set.void
setArguments
(List<String> arguments) Set the arguments for the image.void
Set the new name of the image.void
Set the new tag for the image.
-
Constructor Details
-
DefaultImage
public DefaultImage()Constructor.
-
-
Method Details
-
getName
Get the name of the image if one was set.- Returns:
- The name or
Optional.empty()
-
setName
Set the new name of the image.- Parameters:
name
- The name or null
-
getTag
Get the tag for the image that should be used if one was set.- Returns:
- The tag or
Optional.empty()
-
setTag
Set the new tag for the image.- Parameters:
tag
- The tag or null
-
getArguments
Get the list of arguments that should be used when launching the image.- Returns:
- The list of arguments as unmodifiable list. Attempts to modify will throw exception.
-
setArguments
Set the arguments for the image.- Parameters:
arguments
- The new arguments. null will set the arguments to an empty list.
-