Class Machine.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • image

        @Stability(Experimental)
        public Machine.Builder image​(String image)
        Sets the value of Machine.getImage()
        Parameters:
        image - The VM image to use. This parameter is required.
        Returns:
        this
      • build

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