Package org.cdk8s.plus25.k8s
Class CustomResourceSubresourceScale.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.CustomResourceSubresourceScale.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResourceSubresourceScale>
- Enclosing interface:
- CustomResourceSubresourceScale
@Stability(Stable) public static final class CustomResourceSubresourceScale.Builder extends Object implements software.amazon.jsii.Builder<CustomResourceSubresourceScale>
A builder forCustomResourceSubresourceScale
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceSubresourceScalebuild()Builds the configured instance.CustomResourceSubresourceScale.BuilderlabelSelectorPath(String labelSelectorPath)Sets the value ofCustomResourceSubresourceScale.getLabelSelectorPath()CustomResourceSubresourceScale.BuilderspecReplicasPath(String specReplicasPath)Sets the value ofCustomResourceSubresourceScale.getSpecReplicasPath()CustomResourceSubresourceScale.BuilderstatusReplicasPath(String statusReplicasPath)Sets the value ofCustomResourceSubresourceScale.getStatusReplicasPath()
-
-
-
Method Detail
-
specReplicasPath
@Stability(Stable) public CustomResourceSubresourceScale.Builder specReplicasPath(String specReplicasPath)
Sets the value ofCustomResourceSubresourceScale.getSpecReplicasPath()- Parameters:
specReplicasPath- specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scalespec.replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under.spec. If there is no value under the given path in the custom resource, the/scalesubresource will return an error on GET. This parameter is required.- Returns:
this
-
statusReplicasPath
@Stability(Stable) public CustomResourceSubresourceScale.Builder statusReplicasPath(String statusReplicasPath)
Sets the value ofCustomResourceSubresourceScale.getStatusReplicasPath()- Parameters:
statusReplicasPath- statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scalestatus.replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under.status. If there is no value under the given path in the custom resource, thestatus.replicasvalue in the/scalesubresource will default to 0. This parameter is required.- Returns:
this
-
labelSelectorPath
@Stability(Stable) public CustomResourceSubresourceScale.Builder labelSelectorPath(String labelSelectorPath)
Sets the value ofCustomResourceSubresourceScale.getLabelSelectorPath()- Parameters:
labelSelectorPath- labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scalestatus.selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under.statusor.spec. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, thestatus.selectorvalue in the/scalesubresource will default to the empty string.- Returns:
this
-
build
@Stability(Stable) public CustomResourceSubresourceScale build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomResourceSubresourceScale>- Returns:
- a new instance of
CustomResourceSubresourceScale - Throws:
NullPointerException- if any required attribute was not provided
-
-