Package org.cdk8s.plus28.k8s
Class KubeResourceClassV1Alpha2Props.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.KubeResourceClassV1Alpha2Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeResourceClassV1Alpha2Props>
- Enclosing interface:
- KubeResourceClassV1Alpha2Props
@Stability(Stable) public static final class KubeResourceClassV1Alpha2Props.Builder extends Object implements software.amazon.jsii.Builder<KubeResourceClassV1Alpha2Props>
A builder forKubeResourceClassV1Alpha2Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeResourceClassV1Alpha2Propsbuild()Builds the configured instance.KubeResourceClassV1Alpha2Props.BuilderdriverName(String driverName)Sets the value ofKubeResourceClassV1Alpha2Props.getDriverName()KubeResourceClassV1Alpha2Props.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeResourceClassV1Alpha2Props.getMetadata()KubeResourceClassV1Alpha2Props.BuilderparametersRef(ResourceClassParametersReferenceV1Alpha2 parametersRef)Sets the value ofKubeResourceClassV1Alpha2Props.getParametersRef()KubeResourceClassV1Alpha2Props.BuildersuitableNodes(NodeSelector suitableNodes)Sets the value ofKubeResourceClassV1Alpha2Props.getSuitableNodes()
-
-
-
Method Detail
-
driverName
@Stability(Stable) public KubeResourceClassV1Alpha2Props.Builder driverName(String driverName)
Sets the value ofKubeResourceClassV1Alpha2Props.getDriverName()- Parameters:
driverName- DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. This parameter is required. Resource drivers have a unique name in forward domain order (acme.example.com).- Returns:
this
-
metadata
@Stability(Stable) public KubeResourceClassV1Alpha2Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeResourceClassV1Alpha2Props.getMetadata()- Parameters:
metadata- Standard object metadata.- Returns:
this
-
parametersRef
@Stability(Stable) public KubeResourceClassV1Alpha2Props.Builder parametersRef(ResourceClassParametersReferenceV1Alpha2 parametersRef)
Sets the value ofKubeResourceClassV1Alpha2Props.getParametersRef()- Parameters:
parametersRef- ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.- Returns:
this
-
suitableNodes
@Stability(Stable) public KubeResourceClassV1Alpha2Props.Builder suitableNodes(NodeSelector suitableNodes)
Sets the value ofKubeResourceClassV1Alpha2Props.getSuitableNodes()- Parameters:
suitableNodes- Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates.- Returns:
this
-
build
@Stability(Stable) public KubeResourceClassV1Alpha2Props build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeResourceClassV1Alpha2Props>- Returns:
- a new instance of
KubeResourceClassV1Alpha2Props - Throws:
NullPointerException- if any required attribute was not provided
-
-