Class V1CustomResourceDefinitionStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-01-21T21:30:13.305152Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1CustomResourceDefinitionStatus extends Object
CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
  • Field Details

  • Constructor Details

    • V1CustomResourceDefinitionStatus

      public V1CustomResourceDefinitionStatus()
  • Method Details

    • acceptedNames

      public V1CustomResourceDefinitionStatus acceptedNames(@Nullable V1CustomResourceDefinitionNames acceptedNames)
    • getAcceptedNames

      @Nullable public V1CustomResourceDefinitionNames getAcceptedNames()
      Get acceptedNames
      Returns:
      acceptedNames
    • setAcceptedNames

      public void setAcceptedNames(@Nullable V1CustomResourceDefinitionNames acceptedNames)
    • conditions

    • addConditionsItem

      public V1CustomResourceDefinitionStatus addConditionsItem(V1CustomResourceDefinitionCondition conditionsItem)
    • getConditions

      @Nullable public List<V1CustomResourceDefinitionCondition> getConditions()
      conditions indicate state for particular aspects of a CustomResourceDefinition
      Returns:
      conditions
    • setConditions

      public void setConditions(@Nullable List<V1CustomResourceDefinitionCondition> conditions)
    • observedGeneration

      public V1CustomResourceDefinitionStatus observedGeneration(@Nullable Long observedGeneration)
    • getObservedGeneration

      @Nullable public Long getObservedGeneration()
      The generation observed by the CRD controller.
      Returns:
      observedGeneration
    • setObservedGeneration

      public void setObservedGeneration(@Nullable Long observedGeneration)
    • storedVersions

      public V1CustomResourceDefinitionStatus storedVersions(@Nullable List<String> storedVersions)
    • addStoredVersionsItem

      public V1CustomResourceDefinitionStatus addStoredVersionsItem(String storedVersionsItem)
    • getStoredVersions

      @Nullable public List<String> getStoredVersions()
      storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.
      Returns:
      storedVersions
    • setStoredVersions

      public void setStoredVersions(@Nullable List<String> storedVersions)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1CustomResourceDefinitionStatus
    • fromJson

      public static V1CustomResourceDefinitionStatus fromJson(String jsonString) throws IOException
      Create an instance of V1CustomResourceDefinitionStatus given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1CustomResourceDefinitionStatus
      Throws:
      IOException - if the JSON string is invalid with respect to V1CustomResourceDefinitionStatus
    • toJson

      public String toJson()
      Convert an instance of V1CustomResourceDefinitionStatus to an JSON string
      Returns:
      JSON string