Package org.cdk8s
Class ChartProps.Builder
- java.lang.Object
-
- org.cdk8s.ChartProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChartProps>
- Enclosing interface:
- ChartProps
@Stability(Stable) public static final class ChartProps.Builder extends Object implements software.amazon.jsii.Builder<ChartProps>
A builder forChartProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartProps
build()
Builds the configured instance.ChartProps.Builder
labels(Map<String,String> labels)
Sets the value ofChartProps.getLabels()
ChartProps.Builder
namespace(String namespace)
Sets the value ofChartProps.getNamespace()
-
-
-
Method Detail
-
labels
@Stability(Stable) public ChartProps.Builder labels(Map<String,String> labels)
Sets the value ofChartProps.getLabels()
- Parameters:
labels
- Labels to apply to all resources in this chart.- Returns:
this
-
namespace
@Stability(Stable) public ChartProps.Builder namespace(String namespace)
Sets the value ofChartProps.getNamespace()
- Parameters:
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 anamespace
explicitly defined for them.- Returns:
this
-
build
@Stability(Stable) public ChartProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ChartProps>
- Returns:
- a new instance of
ChartProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-