Package org.cdk8s.plus28.k8s
Class KubeResourceClaimV1Alpha2Props.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.KubeResourceClaimV1Alpha2Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeResourceClaimV1Alpha2Props>
- Enclosing interface:
- KubeResourceClaimV1Alpha2Props
@Stability(Stable) public static final class KubeResourceClaimV1Alpha2Props.Builder extends Object implements software.amazon.jsii.Builder<KubeResourceClaimV1Alpha2Props>
A builder forKubeResourceClaimV1Alpha2Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeResourceClaimV1Alpha2Propsbuild()Builds the configured instance.KubeResourceClaimV1Alpha2Props.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeResourceClaimV1Alpha2Props.getMetadata()KubeResourceClaimV1Alpha2Props.Builderspec(ResourceClaimSpecV1Alpha2 spec)Sets the value ofKubeResourceClaimV1Alpha2Props.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubeResourceClaimV1Alpha2Props.Builder spec(ResourceClaimSpecV1Alpha2 spec)
Sets the value ofKubeResourceClaimV1Alpha2Props.getSpec()- Parameters:
spec- Spec describes the desired attributes of a resource that then needs to be allocated. This parameter is required. It can only be set once when creating the ResourceClaim.- Returns:
this
-
metadata
@Stability(Stable) public KubeResourceClaimV1Alpha2Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeResourceClaimV1Alpha2Props.getMetadata()- Parameters:
metadata- Standard object metadata.- Returns:
this
-
build
@Stability(Stable) public KubeResourceClaimV1Alpha2Props build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeResourceClaimV1Alpha2Props>- Returns:
- a new instance of
KubeResourceClaimV1Alpha2Props - Throws:
NullPointerException- if any required attribute was not provided
-
-