Package org.cdk8s.plus28.k8s
Class ClaimSource.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.ClaimSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClaimSource>
- Enclosing interface:
- ClaimSource
@Stability(Stable) public static final class ClaimSource.Builder extends Object implements software.amazon.jsii.Builder<ClaimSource>
A builder forClaimSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClaimSourcebuild()Builds the configured instance.ClaimSource.BuilderresourceClaimName(String resourceClaimName)Sets the value ofClaimSource.getResourceClaimName()ClaimSource.BuilderresourceClaimTemplateName(String resourceClaimTemplateName)Sets the value ofClaimSource.getResourceClaimTemplateName()
-
-
-
Method Detail
-
resourceClaimName
@Stability(Stable) public ClaimSource.Builder resourceClaimName(String resourceClaimName)
Sets the value ofClaimSource.getResourceClaimName()- Parameters:
resourceClaimName- ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.- Returns:
this
-
resourceClaimTemplateName
@Stability(Stable) public ClaimSource.Builder resourceClaimTemplateName(String resourceClaimTemplateName)
Sets the value ofClaimSource.getResourceClaimTemplateName()- Parameters:
resourceClaimTemplateName- ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.
- Returns:
this
-
build
@Stability(Stable) public ClaimSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClaimSource>- Returns:
- a new instance of
ClaimSource - Throws:
NullPointerException- if any required attribute was not provided
-
-