Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoordinationV1LeaseSpec
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoordinationV1LeaseSpec
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoordinationV1LeaseSpec extends Object
LeaseSpec is a specification of a Lease.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRE_TIMEstatic StringJSON_PROPERTY_HOLDER_IDENTITYstatic StringJSON_PROPERTY_LEASE_DURATION_SECONDSstatic StringJSON_PROPERTY_LEASE_TRANSITIONSstatic StringJSON_PROPERTY_RENEW_TIME
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoordinationV1LeaseSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoordinationV1LeaseSpecacquireTime(OffsetDateTime acquireTime)booleanequals(Object o)OffsetDateTimegetAcquireTime()MicroTime is version of Time with microsecond level precision.StringgetHolderIdentity()holderIdentity contains the identity of the holder of a current lease.IntegergetLeaseDurationSeconds()leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.IntegergetLeaseTransitions()leaseTransitions is the number of transitions of a lease between holders.OffsetDateTimegetRenewTime()MicroTime is version of Time with microsecond level precision.inthashCode()IoK8sApiCoordinationV1LeaseSpecholderIdentity(String holderIdentity)IoK8sApiCoordinationV1LeaseSpecleaseDurationSeconds(Integer leaseDurationSeconds)IoK8sApiCoordinationV1LeaseSpecleaseTransitions(Integer leaseTransitions)IoK8sApiCoordinationV1LeaseSpecrenewTime(OffsetDateTime renewTime)voidsetAcquireTime(OffsetDateTime acquireTime)voidsetHolderIdentity(String holderIdentity)voidsetLeaseDurationSeconds(Integer leaseDurationSeconds)voidsetLeaseTransitions(Integer leaseTransitions)voidsetRenewTime(OffsetDateTime renewTime)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACQUIRE_TIME
public static final String JSON_PROPERTY_ACQUIRE_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOLDER_IDENTITY
public static final String JSON_PROPERTY_HOLDER_IDENTITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEASE_DURATION_SECONDS
public static final String JSON_PROPERTY_LEASE_DURATION_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEASE_TRANSITIONS
public static final String JSON_PROPERTY_LEASE_TRANSITIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RENEW_TIME
public static final String JSON_PROPERTY_RENEW_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquireTime
public IoK8sApiCoordinationV1LeaseSpec acquireTime(OffsetDateTime acquireTime)
-
getAcquireTime
@Nullable public OffsetDateTime getAcquireTime()
MicroTime is version of Time with microsecond level precision.- Returns:
- acquireTime
-
setAcquireTime
public void setAcquireTime(OffsetDateTime acquireTime)
-
holderIdentity
public IoK8sApiCoordinationV1LeaseSpec holderIdentity(String holderIdentity)
-
getHolderIdentity
@Nullable public String getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.- Returns:
- holderIdentity
-
setHolderIdentity
public void setHolderIdentity(String holderIdentity)
-
leaseDurationSeconds
public IoK8sApiCoordinationV1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds)
-
getLeaseDurationSeconds
@Nullable public Integer 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:
- leaseDurationSeconds
-
setLeaseDurationSeconds
public void setLeaseDurationSeconds(Integer leaseDurationSeconds)
-
leaseTransitions
public IoK8sApiCoordinationV1LeaseSpec leaseTransitions(Integer leaseTransitions)
-
getLeaseTransitions
@Nullable public Integer getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.- Returns:
- leaseTransitions
-
setLeaseTransitions
public void setLeaseTransitions(Integer leaseTransitions)
-
renewTime
public IoK8sApiCoordinationV1LeaseSpec renewTime(OffsetDateTime renewTime)
-
getRenewTime
@Nullable public OffsetDateTime getRenewTime()
MicroTime is version of Time with microsecond level precision.- Returns:
- renewTime
-
setRenewTime
public void setRenewTime(OffsetDateTime renewTime)
-
-