Package org.cdk8s.plus24.k8s
Class KubeCustomResourceDefinition.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeCustomResourceDefinition.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeCustomResourceDefinition>
- Enclosing class:
- KubeCustomResourceDefinition
@Stability(Stable) public static final class KubeCustomResourceDefinition.Builder extends Object implements software.amazon.jsii.Builder<KubeCustomResourceDefinition>
A fluent builder forKubeCustomResourceDefinition
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeCustomResourceDefinition
build()
static KubeCustomResourceDefinition.Builder
create(software.constructs.Construct scope, String id)
KubeCustomResourceDefinition.Builder
metadata(ObjectMeta metadata)
Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.KubeCustomResourceDefinition.Builder
spec(CustomResourceDefinitionSpec spec)
spec describes how the user wants the resources to appear.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeCustomResourceDefinition.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeCustomResourceDefinition.Builder
.
-
spec
@Stability(Stable) public KubeCustomResourceDefinition.Builder spec(CustomResourceDefinitionSpec spec)
spec describes how the user wants the resources to appear.- Parameters:
spec
- spec describes how the user wants the resources to appear. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeCustomResourceDefinition.Builder metadata(ObjectMeta metadata)
Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Parameters:
metadata
- Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeCustomResourceDefinition build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeCustomResourceDefinition>
- Returns:
- a newly built instance of
KubeCustomResourceDefinition
.
-
-