Package org.cdk8s.plus25.k8s
Class KubeLeaseProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeLeaseProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeLeaseProps>
- Enclosing interface:
- KubeLeaseProps
@Stability(Stable) public static final class KubeLeaseProps.Builder extends Object implements software.amazon.jsii.Builder<KubeLeaseProps>
A builder forKubeLeaseProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeLeasePropsbuild()Builds the configured instance.KubeLeaseProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeLeaseProps.getMetadata()KubeLeaseProps.Builderspec(LeaseSpec spec)Sets the value ofKubeLeaseProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeLeaseProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeLeaseProps.getMetadata()- Parameters:
metadata- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Returns:
this
-
spec
@Stability(Stable) public KubeLeaseProps.Builder spec(LeaseSpec spec)
Sets the value ofKubeLeaseProps.getSpec()- Parameters:
spec- Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubeLeaseProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeLeaseProps>- Returns:
- a new instance of
KubeLeaseProps - Throws:
NullPointerException- if any required attribute was not provided
-
-