Class V1LeaseSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1LeaseSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1LeaseSpec
extends Object
LeaseSpec is a specification of a Lease.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireTime(ZonedDateTime acquireTime) Set acquireTime in a chainable fashion.booleanacquireTime is a time when the current lease was acquired.holderIdentity contains the identity of the holder of a current lease.leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.leaseTransitions is the number of transitions of a lease between holders.renewTime is a time when the current holder of a lease has last updated the lease.inthashCode()holderIdentity(String holderIdentity) Set holderIdentity in a chainable fashion.leaseDurationSeconds(Integer leaseDurationSeconds) Set leaseDurationSeconds in a chainable fashion.leaseTransitions(Integer leaseTransitions) Set leaseTransitions in a chainable fashion.renewTime(ZonedDateTime renewTime) Set renewTime in a chainable fashion.voidsetAcquireTime(ZonedDateTime acquireTime) Set the acquireTime property valuevoidsetHolderIdentity(String holderIdentity) Set the holderIdentity property valuevoidsetLeaseDurationSeconds(Integer leaseDurationSeconds) Set the leaseDurationSeconds property valuevoidsetLeaseTransitions(Integer leaseTransitions) Set the leaseTransitions property valuevoidsetRenewTime(ZonedDateTime renewTime) Set the renewTime property valuetoString()
-
Field Details
-
JSON_PROPERTY_ACQUIRE_TIME
- See Also:
-
JSON_PROPERTY_HOLDER_IDENTITY
- See Also:
-
JSON_PROPERTY_LEASE_DURATION_SECONDS
- See Also:
-
JSON_PROPERTY_LEASE_TRANSITIONS
- See Also:
-
JSON_PROPERTY_RENEW_TIME
- See Also:
-
-
Constructor Details
-
V1LeaseSpec
public V1LeaseSpec()
-
-
Method Details
-
getAcquireTime
acquireTime is a time when the current lease was acquired.- Returns:
- the acquireTime property value
-
setAcquireTime
Set the acquireTime property value -
acquireTime
Set acquireTime in a chainable fashion.- Returns:
- The same instance of V1LeaseSpec for chaining.
-
getHolderIdentity
holderIdentity contains the identity of the holder of a current lease.- Returns:
- the holderIdentity property value
-
setHolderIdentity
Set the holderIdentity property value -
holderIdentity
Set holderIdentity in a chainable fashion.- Returns:
- The same instance of V1LeaseSpec for chaining.
-
getLeaseDurationSeconds
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.- Returns:
- the leaseDurationSeconds property value
-
setLeaseDurationSeconds
Set the leaseDurationSeconds property value -
leaseDurationSeconds
Set leaseDurationSeconds in a chainable fashion.- Returns:
- The same instance of V1LeaseSpec for chaining.
-
getLeaseTransitions
leaseTransitions is the number of transitions of a lease between holders.- Returns:
- the leaseTransitions property value
-
setLeaseTransitions
Set the leaseTransitions property value -
leaseTransitions
Set leaseTransitions in a chainable fashion.- Returns:
- The same instance of V1LeaseSpec for chaining.
-
getRenewTime
renewTime is a time when the current holder of a lease has last updated the lease.- Returns:
- the renewTime property value
-
setRenewTime
Set the renewTime property value -
renewTime
Set renewTime in a chainable fashion.- Returns:
- The same instance of V1LeaseSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-