Class Condition
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Condition
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Condition extends java.lang.Object implements com.marcnuri.yakc.model.Model
Condition contains details for one aspect of the current state of this API Resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Condition.Builder
-
Constructor Summary
Constructors Constructor Description Condition()
Condition(@NonNull java.time.OffsetDateTime lastTransitionTime, @NonNull java.lang.String message, java.lang.Number observedGeneration, @NonNull java.lang.String reason, @NonNull java.lang.String status, @NonNull java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Condition.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.time.OffsetDateTime
getLastTransitionTime()
@NonNull java.lang.String
getMessage()
message is a human readable message indicating details about the transition.java.lang.Number
getObservedGeneration()
observedGeneration represents the .metadata.generation that the condition was set based upon.@NonNull java.lang.String
getReason()
reason contains a programmatic identifier indicating the reason for the condition's last transition.@NonNull java.lang.String
getStatus()
status of the condition, one of True, False, Unknown.@NonNull java.lang.String
getType()
type of condition in CamelCase or in foo.example.com/CamelCase.int
hashCode()
void
setLastTransitionTime(@NonNull java.time.OffsetDateTime lastTransitionTime)
void
setMessage(@NonNull java.lang.String message)
message is a human readable message indicating details about the transition.void
setObservedGeneration(java.lang.Number observedGeneration)
observedGeneration represents the .metadata.generation that the condition was set based upon.void
setReason(@NonNull java.lang.String reason)
reason contains a programmatic identifier indicating the reason for the condition's last transition.void
setStatus(@NonNull java.lang.String status)
status of the condition, one of True, False, Unknown.void
setType(@NonNull java.lang.String type)
type of condition in CamelCase or in foo.example.com/CamelCase.Condition.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Condition
public Condition(@NonNull @NonNull java.time.OffsetDateTime lastTransitionTime, @NonNull @NonNull java.lang.String message, java.lang.Number observedGeneration, @NonNull @NonNull java.lang.String reason, @NonNull @NonNull java.lang.String status, @NonNull @NonNull java.lang.String type)
-
Condition
public Condition()
-
-
Method Detail
-
builder
public static Condition.Builder builder()
-
toBuilder
public Condition.Builder toBuilder()
-
getLastTransitionTime
@NonNull public @NonNull java.time.OffsetDateTime getLastTransitionTime()
-
getMessage
@NonNull public @NonNull java.lang.String getMessage()
message is a human readable message indicating details about the transition. This may be an empty string.
-
getObservedGeneration
public java.lang.Number getObservedGeneration()
observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
-
getReason
@NonNull public @NonNull java.lang.String getReason()
reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
-
getStatus
@NonNull public @NonNull java.lang.String getStatus()
status of the condition, one of True, False, Unknown.
-
getType
@NonNull public @NonNull java.lang.String getType()
type of condition in CamelCase or in foo.example.com/CamelCase.
-
setLastTransitionTime
public void setLastTransitionTime(@NonNull @NonNull java.time.OffsetDateTime lastTransitionTime)
-
setMessage
public void setMessage(@NonNull @NonNull java.lang.String message)
message is a human readable message indicating details about the transition. This may be an empty string.
-
setObservedGeneration
public void setObservedGeneration(java.lang.Number observedGeneration)
observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
-
setReason
public void setReason(@NonNull @NonNull java.lang.String reason)
reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
-
setStatus
public void setStatus(@NonNull @NonNull java.lang.String status)
status of the condition, one of True, False, Unknown.
-
setType
public void setType(@NonNull @NonNull java.lang.String type)
type of condition in CamelCase or in foo.example.com/CamelCase.
-
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
-
-