Package org.cdk8s.plus24.k8s
Class KubeLease.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeLease.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeLease
build()
static KubeLease.Builder
create(software.constructs.Construct scope, String id)
KubeLease.Builder
metadata(ObjectMeta metadata)
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.KubeLease.Builder
spec(LeaseSpec spec)
Specification of the Lease.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeLease.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
KubeLease.Builder
.
-
metadata
@Stability(Stable) public KubeLease.Builder metadata(ObjectMeta metadata)
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Parameters:
metadata
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubeLease.Builder spec(LeaseSpec spec)
Specification of the Lease.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
- Parameters:
spec
- Specification of the Lease. This parameter is required.- Returns:
this
-
-