Class EndpointConditions
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.discovery.v1beta1.EndpointConditions
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class EndpointConditions extends java.lang.Object implements com.marcnuri.yakc.model.Model
EndpointConditions represents the current condition of an endpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EndpointConditions.Builder
-
Constructor Summary
Constructors Constructor Description EndpointConditions()
EndpointConditions(java.lang.Boolean ready, java.lang.Boolean serving, java.lang.Boolean terminating)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointConditions.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Boolean
getReady()
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint.java.lang.Boolean
getServing()
serving is identical to ready except that it is set regardless of the terminating state of endpoints.java.lang.Boolean
getTerminating()
terminating indicates that this endpoint is terminating.int
hashCode()
void
setReady(java.lang.Boolean ready)
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint.void
setServing(java.lang.Boolean serving)
serving is identical to ready except that it is set regardless of the terminating state of endpoints.void
setTerminating(java.lang.Boolean terminating)
terminating indicates that this endpoint is terminating.EndpointConditions.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static EndpointConditions.Builder builder()
-
toBuilder
public EndpointConditions.Builder toBuilder()
-
getReady
public java.lang.Boolean getReady()
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints.
-
getServing
public java.lang.Boolean getServing()
serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
-
getTerminating
public java.lang.Boolean getTerminating()
terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
-
setReady
public void setReady(java.lang.Boolean ready)
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints.
-
setServing
public void setServing(java.lang.Boolean serving)
serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
-
setTerminating
public void setTerminating(java.lang.Boolean terminating)
terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-