@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-04T09:55:14.976Z[Etc/UTC]") public class V1LeaseSpec extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_ACQUIRE_TIME |
static String |
SERIALIZED_NAME_HOLDER_IDENTITY |
static String |
SERIALIZED_NAME_LEASE_DURATION_SECONDS |
static String |
SERIALIZED_NAME_LEASE_TRANSITIONS |
static String |
SERIALIZED_NAME_RENEW_TIME |
Constructor and Description |
---|
V1LeaseSpec() |
Modifier and Type | Method and Description |
---|---|
V1LeaseSpec |
acquireTime(OffsetDateTime acquireTime) |
boolean |
equals(Object o) |
OffsetDateTime |
getAcquireTime()
acquireTime is a time when the current lease was acquired.
|
String |
getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.
|
Integer |
getLeaseDurationSeconds()
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire
it.
|
Integer |
getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.
|
OffsetDateTime |
getRenewTime()
renewTime is a time when the current holder of a lease has last updated the lease.
|
int |
hashCode() |
V1LeaseSpec |
holderIdentity(String holderIdentity) |
V1LeaseSpec |
leaseDurationSeconds(Integer leaseDurationSeconds) |
V1LeaseSpec |
leaseTransitions(Integer leaseTransitions) |
V1LeaseSpec |
renewTime(OffsetDateTime renewTime) |
void |
setAcquireTime(OffsetDateTime acquireTime) |
void |
setHolderIdentity(String holderIdentity) |
void |
setLeaseDurationSeconds(Integer leaseDurationSeconds) |
void |
setLeaseTransitions(Integer leaseTransitions) |
void |
setRenewTime(OffsetDateTime renewTime) |
String |
toString() |
public static final String SERIALIZED_NAME_ACQUIRE_TIME
public static final String SERIALIZED_NAME_HOLDER_IDENTITY
public static final String SERIALIZED_NAME_LEASE_DURATION_SECONDS
public static final String SERIALIZED_NAME_LEASE_TRANSITIONS
public static final String SERIALIZED_NAME_RENEW_TIME
public V1LeaseSpec acquireTime(OffsetDateTime acquireTime)
@Nullable public OffsetDateTime getAcquireTime()
public void setAcquireTime(OffsetDateTime acquireTime)
public V1LeaseSpec holderIdentity(String holderIdentity)
@Nullable public String getHolderIdentity()
public void setHolderIdentity(String holderIdentity)
public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds)
@Nullable public Integer getLeaseDurationSeconds()
public void setLeaseDurationSeconds(Integer leaseDurationSeconds)
public V1LeaseSpec leaseTransitions(Integer leaseTransitions)
@Nullable public Integer getLeaseTransitions()
public void setLeaseTransitions(Integer leaseTransitions)
public V1LeaseSpec renewTime(OffsetDateTime renewTime)
@Nullable public OffsetDateTime getRenewTime()
public void setRenewTime(OffsetDateTime renewTime)
Copyright © 2021. All rights reserved.