Class Image.Builder

java.lang.Object
com.netflix.genie.common.internal.dtos.Image.Builder
Enclosing class:
Image

public static class Image.Builder extends Object
Builder for immutable instances of Image.
Since:
4.3.0
  • Constructor Details

    • Builder

      public Builder()
      Constructor.
  • Method Details

    • withName

      public Image.Builder withName(@Nullable String name)
      Set the name of the image to use.
      Parameters:
      name - The name or null
      Returns:
      This Image.Builder instance
    • withTag

      public Image.Builder withTag(@Nullable String tag)
      Set the tag of the image to use.
      Parameters:
      tag - The tag or null
      Returns:
      This Image.Builder instance
    • withArguments

      public Image.Builder withArguments(@Nullable List<String> arguments)
      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

      public Image build()
      Create an immutable instance of Image based on the current contents of this builder instance.
      Returns:
      A new Image instance