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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacquireTime
(ZonedDateTime acquireTime) Set acquireTime in a chainable fashion.boolean
acquireTime 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.int
hashCode()
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.void
setAcquireTime
(ZonedDateTime acquireTime) Set the acquireTime property valuevoid
setHolderIdentity
(String holderIdentity) Set the holderIdentity property valuevoid
setLeaseDurationSeconds
(Integer leaseDurationSeconds) Set the leaseDurationSeconds property valuevoid
setLeaseTransitions
(Integer leaseTransitions) Set the leaseTransitions property valuevoid
setRenewTime
(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- Parameters:
acquireTime
- property value to set
-
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- Parameters:
holderIdentity
- property value to set
-
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- Parameters:
leaseDurationSeconds
- property value to set
-
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- Parameters:
leaseTransitions
- property value to set
-
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- Parameters:
renewTime
- property value to set
-
renewTime
Set renewTime in a chainable fashion.- Returns:
- The same instance of V1LeaseSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-