Class V1ExpressionWarning

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") 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(String fieldRef)
    • getFieldRef

      @Nonnull public String getFieldRef()
      The path to the field that refers 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(String fieldRef)
    • warning

      public V1ExpressionWarning warning(String warning)
    • getWarning

      @Nonnull public String getWarning()
      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(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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object 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