Package org.cdk8s.plus28.k8s
Class ResourceClaimSpecV1Alpha2.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.ResourceClaimSpecV1Alpha2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourceClaimSpecV1Alpha2>
- Enclosing interface:
- ResourceClaimSpecV1Alpha2
@Stability(Stable) public static final class ResourceClaimSpecV1Alpha2.Builder extends Object implements software.amazon.jsii.Builder<ResourceClaimSpecV1Alpha2>
A builder forResourceClaimSpecV1Alpha2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceClaimSpecV1Alpha2.BuilderallocationMode(String allocationMode)Sets the value ofResourceClaimSpecV1Alpha2.getAllocationMode()ResourceClaimSpecV1Alpha2build()Builds the configured instance.ResourceClaimSpecV1Alpha2.BuilderparametersRef(ResourceClaimParametersReferenceV1Alpha2 parametersRef)Sets the value ofResourceClaimSpecV1Alpha2.getParametersRef()ResourceClaimSpecV1Alpha2.BuilderresourceClassName(String resourceClassName)Sets the value ofResourceClaimSpecV1Alpha2.getResourceClassName()
-
-
-
Method Detail
-
resourceClassName
@Stability(Stable) public ResourceClaimSpecV1Alpha2.Builder resourceClassName(String resourceClassName)
Sets the value ofResourceClaimSpecV1Alpha2.getResourceClassName()- Parameters:
resourceClassName- ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. This parameter is required.- Returns:
this
-
allocationMode
@Stability(Stable) public ResourceClaimSpecV1Alpha2.Builder allocationMode(String allocationMode)
Sets the value ofResourceClaimSpecV1Alpha2.getAllocationMode()- Parameters:
allocationMode- Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.- Returns:
this
-
parametersRef
@Stability(Stable) public ResourceClaimSpecV1Alpha2.Builder parametersRef(ResourceClaimParametersReferenceV1Alpha2 parametersRef)
Sets the value ofResourceClaimSpecV1Alpha2.getParametersRef()- Parameters:
parametersRef- ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim. The object must be in the same namespace as the ResourceClaim.- Returns:
this
-
build
@Stability(Stable) public ResourceClaimSpecV1Alpha2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ResourceClaimSpecV1Alpha2>- Returns:
- a new instance of
ResourceClaimSpecV1Alpha2 - Throws:
NullPointerException- if any required attribute was not provided
-
-