Package org.cdk8s.plus24.k8s
Class CustomResourceSubresources.Builder
- java.lang.Object
-
- org.cdk8s.plus24.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 CustomResourceSubresources
build()
Builds the configured instance.CustomResourceSubresources.Builder
scale(CustomResourceSubresourceScale scale)
Sets the value ofCustomResourceSubresources.getScale()
CustomResourceSubresources.Builder
status(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 `/scale` subresource that returns an `autoscaling/v1` Scale 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 `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to thestatus
stanza of the object. 2. requests to the custom resource/status
subresource ignore changes to anything other than thestatus
stanza of the object.- Returns:
this
-
build
@Stability(Stable) public CustomResourceSubresources build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomResourceSubresources>
- Returns:
- a new instance of
CustomResourceSubresources
- Throws:
NullPointerException
- if any required attribute was not provided
-
-