Class LeaseCandidateSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.coordination.v1beta1.LeaseCandidateSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LeaseCandidateSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LeaseCandidateSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<LeaseCandidateSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
LeaseCandidateSpec is a specification of a Lease.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LeaseCandidateSpec()No args constructor for use in serializationLeaseCandidateSpec(String binaryVersion, String emulationVersion, String leaseName, io.fabric8.kubernetes.api.model.MicroTime pingTime, io.fabric8.kubernetes.api.model.MicroTime renewTime, String strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaseCandidateSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetBinaryVersion()BinaryVersion is the binary version.StringgetEmulationVersion()EmulationVersion is the emulation version.StringgetLeaseName()LeaseName is the name of the lease for which this candidate is contending.io.fabric8.kubernetes.api.model.MicroTimegetPingTime()LeaseCandidateSpec is a specification of a Lease.io.fabric8.kubernetes.api.model.MicroTimegetRenewTime()LeaseCandidateSpec is a specification of a Lease.StringgetStrategy()Strategy is the strategy that coordinated leader election will use for picking the leader.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetBinaryVersion(String binaryVersion)BinaryVersion is the binary version.voidsetEmulationVersion(String emulationVersion)EmulationVersion is the emulation version.voidsetLeaseName(String leaseName)LeaseName is the name of the lease for which this candidate is contending.voidsetPingTime(io.fabric8.kubernetes.api.model.MicroTime pingTime)LeaseCandidateSpec is a specification of a Lease.voidsetRenewTime(io.fabric8.kubernetes.api.model.MicroTime renewTime)LeaseCandidateSpec is a specification of a Lease.voidsetStrategy(String strategy)Strategy is the strategy that coordinated leader election will use for picking the leader.LeaseCandidateSpecBuildertoBuilder()
-
-
-
Method Detail
-
getBinaryVersion
public String getBinaryVersion()
BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
-
setBinaryVersion
public void setBinaryVersion(String binaryVersion)
BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
-
getEmulationVersion
public String getEmulationVersion()
EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
-
setEmulationVersion
public void setEmulationVersion(String emulationVersion)
EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
-
getLeaseName
public String getLeaseName()
LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
-
setLeaseName
public void setLeaseName(String leaseName)
LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
-
getPingTime
public io.fabric8.kubernetes.api.model.MicroTime getPingTime()
LeaseCandidateSpec is a specification of a Lease.
-
setPingTime
public void setPingTime(io.fabric8.kubernetes.api.model.MicroTime pingTime)
LeaseCandidateSpec is a specification of a Lease.
-
getRenewTime
public io.fabric8.kubernetes.api.model.MicroTime getRenewTime()
LeaseCandidateSpec is a specification of a Lease.
-
setRenewTime
public void setRenewTime(io.fabric8.kubernetes.api.model.MicroTime renewTime)
LeaseCandidateSpec is a specification of a Lease.
-
getStrategy
public String getStrategy()
Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
-
setStrategy
public void setStrategy(String strategy)
Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
-
edit
public LeaseCandidateSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LeaseCandidateSpecBuilder>
-
toBuilder
public LeaseCandidateSpecBuilder toBuilder()
-
-