Package org.cdk8s.plus24.k8s
Class KubeCustomResourceDefinitionProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeCustomResourceDefinitionProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeCustomResourceDefinitionProps>
- Enclosing interface:
- KubeCustomResourceDefinitionProps
@Stability(Stable) public static final class KubeCustomResourceDefinitionProps.Builder extends Object implements software.amazon.jsii.Builder<KubeCustomResourceDefinitionProps>
A builder forKubeCustomResourceDefinitionProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeCustomResourceDefinitionProps
build()
Builds the configured instance.KubeCustomResourceDefinitionProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeCustomResourceDefinitionProps.getMetadata()
KubeCustomResourceDefinitionProps.Builder
spec(CustomResourceDefinitionSpec spec)
Sets the value ofKubeCustomResourceDefinitionProps.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubeCustomResourceDefinitionProps.Builder spec(CustomResourceDefinitionSpec spec)
Sets the value ofKubeCustomResourceDefinitionProps.getSpec()
- Parameters:
spec
- spec describes how the user wants the resources to appear. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeCustomResourceDefinitionProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeCustomResourceDefinitionProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Returns:
this
-
build
@Stability(Stable) public KubeCustomResourceDefinitionProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeCustomResourceDefinitionProps>
- Returns:
- a new instance of
KubeCustomResourceDefinitionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-