Class V1ExpressionWarning

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1ExpressionWarning extends Object
ExpressionWarning is a warning information that targets a specific expression.
  • Field Details

  • Constructor Details

    • V1ExpressionWarning

      public V1ExpressionWarning()
  • Method Details

    • fieldRef

      public V1ExpressionWarning fieldRef(@Nonnull String fieldRef)
    • getFieldRef

      @Nonnull public String getFieldRef()
      fieldRef is the path to the field that refers to the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"
      Returns:
      fieldRef
    • setFieldRef

      public void setFieldRef(@Nonnull String fieldRef)
    • warning

      public V1ExpressionWarning warning(@Nonnull String warning)
    • getWarning

      @Nonnull public String getWarning()
      warning contains the content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
      Returns:
      warning
    • setWarning

      public void setWarning(@Nonnull String warning)
    • 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 V1ExpressionWarning
    • fromJson

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

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