Class InstanceStatusConditions

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class InstanceStatusConditions
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: "Available", "Progressing", and "Degraded" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

    // other fields }

    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceStatusConditions()  
      InstanceStatusConditions​(@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 InstanceStatusConditions.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.time.OffsetDateTime getLastTransitionTime()
      lastTransitionTime is the last time the condition transitioned from one status to another.
      @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)
      lastTransitionTime is the last time the condition transitioned from one status to another.
      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.
      InstanceStatusConditions.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InstanceStatusConditions

        public InstanceStatusConditions​(@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)
      • InstanceStatusConditions

        public InstanceStatusConditions()
    • Method Detail

      • getLastTransitionTime

        @NonNull
        public @NonNull java.time.OffsetDateTime getLastTransitionTime()
        lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
      • 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. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
      • setLastTransitionTime

        public void setLastTransitionTime​(@NonNull
                                          @NonNull java.time.OffsetDateTime lastTransitionTime)
        lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
      • 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. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object