Class V1beta1LeaseCandidateSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta1LeaseCandidateSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta1LeaseCandidateSpec extends Object
LeaseCandidateSpec is a specification of a Lease.
  • Field Details

  • Constructor Details

    • V1beta1LeaseCandidateSpec

      public V1beta1LeaseCandidateSpec(String binaryVersion, String leaseName, String strategy)
  • Method Details

    • getBinaryVersion

      public String getBinaryVersion()
      BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
      Returns:
      the binaryVersion property value
    • setBinaryVersion

      public void setBinaryVersion(String binaryVersion)
      Set the binaryVersion property value
      Parameters:
      binaryVersion - property value to set
    • binaryVersion

      public V1beta1LeaseCandidateSpec binaryVersion(String binaryVersion)
      Set binaryVersion in a chainable fashion.
      Returns:
      The same instance of V1beta1LeaseCandidateSpec for chaining.
    • 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.
      Returns:
      the leaseName property value
    • setLeaseName

      public void setLeaseName(String leaseName)
      Set the leaseName property value
      Parameters:
      leaseName - property value to set
    • leaseName

      public V1beta1LeaseCandidateSpec leaseName(String leaseName)
      Set leaseName in a chainable fashion.
      Returns:
      The same instance of V1beta1LeaseCandidateSpec for chaining.
    • 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.
      Returns:
      the strategy property value
    • setStrategy

      public void setStrategy(String strategy)
      Set the strategy property value
      Parameters:
      strategy - property value to set
    • strategy

      public V1beta1LeaseCandidateSpec strategy(String strategy)
      Set strategy in a chainable fashion.
      Returns:
      The same instance of V1beta1LeaseCandidateSpec for chaining.
    • 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\"
      Returns:
      the emulationVersion property value
    • setEmulationVersion

      public void setEmulationVersion(String emulationVersion)
      Set the emulationVersion property value
      Parameters:
      emulationVersion - property value to set
    • emulationVersion

      public V1beta1LeaseCandidateSpec emulationVersion(String emulationVersion)
      Set emulationVersion in a chainable fashion.
      Returns:
      The same instance of V1beta1LeaseCandidateSpec for chaining.
    • getPingTime

      public OffsetDateTime getPingTime()
      PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
      Returns:
      the pingTime property value
    • setPingTime

      public void setPingTime(OffsetDateTime pingTime)
      Set the pingTime property value
      Parameters:
      pingTime - property value to set
    • pingTime

      public V1beta1LeaseCandidateSpec pingTime(OffsetDateTime pingTime)
      Set pingTime in a chainable fashion.
      Returns:
      The same instance of V1beta1LeaseCandidateSpec for chaining.
    • getRenewTime

      public OffsetDateTime getRenewTime()
      RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
      Returns:
      the renewTime property value
    • setRenewTime

      public void setRenewTime(OffsetDateTime renewTime)
      Set the renewTime property value
      Parameters:
      renewTime - property value to set
    • renewTime

      public V1beta1LeaseCandidateSpec renewTime(OffsetDateTime renewTime)
      Set renewTime in a chainable fashion.
      Returns:
      The same instance of V1beta1LeaseCandidateSpec for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object