Package org.cdk8s.plus25.k8s
Class CustomResourceSubresources.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.CustomResourceSubresources.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResourceSubresources>
- Enclosing interface:
- CustomResourceSubresources
@Stability(Stable) public static final class CustomResourceSubresources.Builder extends Object implements software.amazon.jsii.Builder<CustomResourceSubresources>
A builder forCustomResourceSubresources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceSubresourcesbuild()Builds the configured instance.CustomResourceSubresources.Builderscale(CustomResourceSubresourceScale scale)Sets the value ofCustomResourceSubresources.getScale()CustomResourceSubresources.Builderstatus(Object status)Sets the value ofCustomResourceSubresources.getStatus()
-
-
-
Method Detail
-
scale
@Stability(Stable) public CustomResourceSubresources.Builder scale(CustomResourceSubresourceScale scale)
Sets the value ofCustomResourceSubresources.getScale()- Parameters:
scale- scale indicates the custom resource should serve a/scalesubresource that returns anautoscaling/v1Scale object.- Returns:
this
-
status
@Stability(Stable) public CustomResourceSubresources.Builder status(Object status)
Sets the value ofCustomResourceSubresources.getStatus()- Parameters:
status- status indicates the custom resource should serve a/statussubresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to thestatusstanza of the object. 2. requests to the custom resource/statussubresource ignore changes to anything other than thestatusstanza of the object.- Returns:
this
-
build
@Stability(Stable) public CustomResourceSubresources build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomResourceSubresources>- Returns:
- a new instance of
CustomResourceSubresources - Throws:
NullPointerException- if any required attribute was not provided
-
-