Package org.cdk8s.plus24.k8s
Class KubePodDisruptionBudgetV1Beta1Props.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubePodDisruptionBudgetV1Beta1Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePodDisruptionBudgetV1Beta1Props>
- Enclosing interface:
- KubePodDisruptionBudgetV1Beta1Props
@Stability(Stable) public static final class KubePodDisruptionBudgetV1Beta1Props.Builder extends Object implements software.amazon.jsii.Builder<KubePodDisruptionBudgetV1Beta1Props>
A builder forKubePodDisruptionBudgetV1Beta1Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodDisruptionBudgetV1Beta1Props
build()
Builds the configured instance.KubePodDisruptionBudgetV1Beta1Props.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubePodDisruptionBudgetV1Beta1Props.getMetadata()
KubePodDisruptionBudgetV1Beta1Props.Builder
spec(PodDisruptionBudgetSpecV1Beta1 spec)
Sets the value ofKubePodDisruptionBudgetV1Beta1Props.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubePodDisruptionBudgetV1Beta1Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePodDisruptionBudgetV1Beta1Props.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 KubePodDisruptionBudgetV1Beta1Props.Builder spec(PodDisruptionBudgetSpecV1Beta1 spec)
Sets the value ofKubePodDisruptionBudgetV1Beta1Props.getSpec()
- Parameters:
spec
- Specification of the desired behavior of the PodDisruptionBudget.- Returns:
this
-
build
@Stability(Stable) public KubePodDisruptionBudgetV1Beta1Props build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubePodDisruptionBudgetV1Beta1Props>
- Returns:
- a new instance of
KubePodDisruptionBudgetV1Beta1Props
- Throws:
NullPointerException
- if any required attribute was not provided
-
-