Package org.cdk8s.plus24.k8s
Class KubePodDisruptionBudgetProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubePodDisruptionBudgetProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePodDisruptionBudgetProps>
- Enclosing interface:
- KubePodDisruptionBudgetProps
@Stability(Stable) public static final class KubePodDisruptionBudgetProps.Builder extends Object implements software.amazon.jsii.Builder<KubePodDisruptionBudgetProps>
A builder forKubePodDisruptionBudgetProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodDisruptionBudgetProps
build()
Builds the configured instance.KubePodDisruptionBudgetProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubePodDisruptionBudgetProps.getMetadata()
KubePodDisruptionBudgetProps.Builder
spec(PodDisruptionBudgetSpec spec)
Sets the value ofKubePodDisruptionBudgetProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubePodDisruptionBudgetProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePodDisruptionBudgetProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubePodDisruptionBudgetProps.Builder spec(PodDisruptionBudgetSpec spec)
Sets the value ofKubePodDisruptionBudgetProps.getSpec()
- Parameters:
spec
- Specification of the desired behavior of the PodDisruptionBudget.- Returns:
this
-
build
@Stability(Stable) public KubePodDisruptionBudgetProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubePodDisruptionBudgetProps>
- Returns:
- a new instance of
KubePodDisruptionBudgetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-