Package org.cdk8s.plus24.k8s
Class KubePodDisruptionBudgetV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubePodDisruptionBudgetV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePodDisruptionBudgetV1Beta1>
- Enclosing class:
- KubePodDisruptionBudgetV1Beta1
@Stability(Stable) public static final class KubePodDisruptionBudgetV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<KubePodDisruptionBudgetV1Beta1>
A fluent builder forKubePodDisruptionBudgetV1Beta1
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodDisruptionBudgetV1Beta1
build()
static KubePodDisruptionBudgetV1Beta1.Builder
create(software.constructs.Construct scope, String id)
KubePodDisruptionBudgetV1Beta1.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubePodDisruptionBudgetV1Beta1.Builder
spec(PodDisruptionBudgetSpecV1Beta1 spec)
Specification of the desired behavior of the PodDisruptionBudget.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubePodDisruptionBudgetV1Beta1.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubePodDisruptionBudgetV1Beta1.Builder
.
-
metadata
@Stability(Stable) public KubePodDisruptionBudgetV1Beta1.Builder metadata(ObjectMeta metadata)
Standard object's metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- Standard object's metadata. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubePodDisruptionBudgetV1Beta1.Builder spec(PodDisruptionBudgetSpecV1Beta1 spec)
Specification of the desired behavior of the PodDisruptionBudget.- Parameters:
spec
- Specification of the desired behavior of the PodDisruptionBudget. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubePodDisruptionBudgetV1Beta1 build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubePodDisruptionBudgetV1Beta1>
-
-