Class Image.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Image>
    Enclosing interface:
    Image

    @Stability(Experimental)
    public static final class Image.Builder
    extends Object
    implements software.amazon.jsii.Builder<Image>
    A builder for Image
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Experimental)
        public Image.Builder name​(String name)
        Sets the value of Image.getName()
        Parameters:
        name - Full name of the image that should be used. This parameter is required. It should contain the Registry part if needed.
        Returns:
        this
      • entrypoint

        @Stability(Experimental)
        public Image.Builder entrypoint​(List<? extends Object> entrypoint)
        Sets the value of Image.getEntrypoint()
        Parameters:
        entrypoint - Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array.
        Returns:
        this
      • build

        @Stability(Experimental)
        public Image build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<Image>
        Returns:
        a new instance of Image
        Throws:
        NullPointerException - if any required attribute was not provided