@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-07-29T18:17:00.375Z[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(org.joda.time.DateTime acquireTime) |
boolean |
equals(Object o) |
org.joda.time.DateTime |
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.
|
org.joda.time.DateTime |
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(org.joda.time.DateTime renewTime) |
void |
setAcquireTime(org.joda.time.DateTime acquireTime) |
void |
setHolderIdentity(String holderIdentity) |
void |
setLeaseDurationSeconds(Integer leaseDurationSeconds) |
void |
setLeaseTransitions(Integer leaseTransitions) |
void |
setRenewTime(org.joda.time.DateTime 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(org.joda.time.DateTime acquireTime)
@Nullable public org.joda.time.DateTime getAcquireTime()
public void setAcquireTime(org.joda.time.DateTime 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(org.joda.time.DateTime renewTime)
@Nullable public org.joda.time.DateTime getRenewTime()
public void setRenewTime(org.joda.time.DateTime renewTime)
Copyright © 2020. All rights reserved.