Class Inherit.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • defaultValue

        @Stability(Experimental)
        public Inherit.Builder defaultValue​(Boolean defaultValue)
        Sets the value of Inherit.getDefaultValue()
        Parameters:
        defaultValue - Whether to inherit all globally-defined defaults or not. Or subset of inherited defaults
        Returns:
        this
      • defaultValue

        @Stability(Experimental)
        public Inherit.Builder defaultValue​(List<? extends DefaultElement> defaultValue)
        Sets the value of Inherit.getDefaultValue()
        Parameters:
        defaultValue - Whether to inherit all globally-defined defaults or not. Or subset of inherited defaults
        Returns:
        this
      • variables

        @Stability(Experimental)
        public Inherit.Builder variables​(Boolean variables)
        Sets the value of Inherit.getVariables()
        Parameters:
        variables - Whether to inherit all globally-defined variables or not. Or subset of inherited variables
        Returns:
        this
      • variables

        @Stability(Experimental)
        public Inherit.Builder variables​(List<String> variables)
        Sets the value of Inherit.getVariables()
        Parameters:
        variables - Whether to inherit all globally-defined variables or not. Or subset of inherited variables
        Returns:
        this
      • build

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