Class FeatureFlag.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • recommendedValue

        @Stability(Stable)
        public FeatureFlag.Builder recommendedValue​(Object recommendedValue)
        Parameters:
        recommendedValue - The library-recommended value for this flag, if any. It is possible that there is no recommended value.
        Returns:
        this
      • userValue

        @Stability(Stable)
        public FeatureFlag.Builder userValue​(Object userValue)
        Sets the value of FeatureFlag.getUserValue()
        Parameters:
        userValue - The value configured by the user. This is the value configured at the root of the tree. Users may also have configured values at specific locations in the tree; we don't report on those.
        Returns:
        this
      • build

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