Class LeaderElection
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.LeaderElection
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LeaderElectionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LeaderElection extends Object implements io.fabric8.kubernetes.api.builder.Editable<LeaderElectionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
LeaderElection provides information to elect a leader- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LeaderElection()No args constructor for use in serializationLeaderElection(Boolean disable, String leaseDuration, String name, String namespace, String renewDeadline, String retryPeriod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaderElectionBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetDisable()disable allows leader election to be suspended while allowing a fully defaulted "normal" startup case.StringgetLeaseDuration()LeaderElection provides information to elect a leaderStringgetName()name indicates what name to use for the resourceStringgetNamespace()namespace indicates which namespace the resource is inStringgetRenewDeadline()LeaderElection provides information to elect a leaderStringgetRetryPeriod()LeaderElection provides information to elect a leadervoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisable(Boolean disable)disable allows leader election to be suspended while allowing a fully defaulted "normal" startup case.voidsetLeaseDuration(String leaseDuration)LeaderElection provides information to elect a leadervoidsetName(String name)name indicates what name to use for the resourcevoidsetNamespace(String namespace)namespace indicates which namespace the resource is invoidsetRenewDeadline(String renewDeadline)LeaderElection provides information to elect a leadervoidsetRetryPeriod(String retryPeriod)LeaderElection provides information to elect a leaderLeaderElectionBuildertoBuilder()
-
-
-
Method Detail
-
getDisable
public Boolean getDisable()
disable allows leader election to be suspended while allowing a fully defaulted "normal" startup case.
-
setDisable
public void setDisable(Boolean disable)
disable allows leader election to be suspended while allowing a fully defaulted "normal" startup case.
-
getLeaseDuration
public String getLeaseDuration()
LeaderElection provides information to elect a leader
-
setLeaseDuration
public void setLeaseDuration(String leaseDuration)
LeaderElection provides information to elect a leader
-
getName
public String getName()
name indicates what name to use for the resource
-
setName
public void setName(String name)
name indicates what name to use for the resource
-
getNamespace
public String getNamespace()
namespace indicates which namespace the resource is in
-
setNamespace
public void setNamespace(String namespace)
namespace indicates which namespace the resource is in
-
getRenewDeadline
public String getRenewDeadline()
LeaderElection provides information to elect a leader
-
setRenewDeadline
public void setRenewDeadline(String renewDeadline)
LeaderElection provides information to elect a leader
-
getRetryPeriod
public String getRetryPeriod()
LeaderElection provides information to elect a leader
-
setRetryPeriod
public void setRetryPeriod(String retryPeriod)
LeaderElection provides information to elect a leader
-
edit
public LeaderElectionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LeaderElectionBuilder>
-
toBuilder
public LeaderElectionBuilder toBuilder()
-
-