Package org.cdk8s

Class Chart.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Chart>
    Enclosing class:
    Chart

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

      • create

        @Stability(Stable)
        public static Chart.Builder create​(software.constructs.Construct scope,
                                           String id)
        Parameters:
        scope - This parameter is required.
        id - This parameter is required.
        Returns:
        a new instance of Chart.Builder.
      • labels

        @Stability(Stable)
        public Chart.Builder labels​(Map<String,​String> labels)
        Labels to apply to all resources in this chart.

        Default: - no common labels

        Parameters:
        labels - Labels to apply to all resources in this chart. This parameter is required.
        Returns:
        this
      • namespace

        @Stability(Stable)
        public Chart.Builder namespace​(String namespace)
        The default namespace for all objects defined in this chart (directly or indirectly).

        This namespace will only apply to objects that don't have a namespace explicitly defined for them.

        Default: - no namespace is synthesized (usually this implies "default")

        Parameters:
        namespace - The default namespace for all objects defined in this chart (directly or indirectly). This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public Chart build()
        Specified by:
        build in interface software.amazon.jsii.Builder<Chart>