Package org.cdk8s.plus28.k8s
Class KubeResourceClaimV1Alpha2.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.KubeResourceClaimV1Alpha2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeResourceClaimV1Alpha2>
- Enclosing class:
- KubeResourceClaimV1Alpha2
@Stability(Stable) public static final class KubeResourceClaimV1Alpha2.Builder extends Object implements software.amazon.jsii.Builder<KubeResourceClaimV1Alpha2>
A fluent builder forKubeResourceClaimV1Alpha2.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeResourceClaimV1Alpha2build()static KubeResourceClaimV1Alpha2.Buildercreate(software.constructs.Construct scope, String id)KubeResourceClaimV1Alpha2.Buildermetadata(ObjectMeta metadata)Standard object metadata.KubeResourceClaimV1Alpha2.Builderspec(ResourceClaimSpecV1Alpha2 spec)Spec describes the desired attributes of a resource that then needs to be allocated.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeResourceClaimV1Alpha2.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
KubeResourceClaimV1Alpha2.Builder.
-
spec
@Stability(Stable) public KubeResourceClaimV1Alpha2.Builder spec(ResourceClaimSpecV1Alpha2 spec)
Spec describes the desired attributes of a resource that then needs to be allocated.It can only be set once when creating the ResourceClaim.
- Parameters:
spec- Spec describes the desired attributes of a resource that then needs to be allocated. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeResourceClaimV1Alpha2.Builder metadata(ObjectMeta metadata)
Standard object metadata.- Parameters:
metadata- Standard object metadata. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeResourceClaimV1Alpha2 build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeResourceClaimV1Alpha2>- Returns:
- a newly built instance of
KubeResourceClaimV1Alpha2.
-
-