Class V1alpha1Mutation

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1alpha1Mutation extends Object
Mutation specifies the CEL expression which is used to apply the Mutation.
  • Field Details

  • Constructor Details

    • V1alpha1Mutation

      public V1alpha1Mutation()
  • Method Details

    • applyConfiguration

      public V1alpha1Mutation applyConfiguration(@Nullable V1alpha1ApplyConfiguration applyConfiguration)
    • getApplyConfiguration

      @Nullable public V1alpha1ApplyConfiguration getApplyConfiguration()
      Get applyConfiguration
      Returns:
      applyConfiguration
    • setApplyConfiguration

      public void setApplyConfiguration(@Nullable V1alpha1ApplyConfiguration applyConfiguration)
    • jsonPatch

      public V1alpha1Mutation jsonPatch(@Nullable V1alpha1JSONPatch jsonPatch)
    • getJsonPatch

      @Nullable public V1alpha1JSONPatch getJsonPatch()
      Get jsonPatch
      Returns:
      jsonPatch
    • setJsonPatch

      public void setJsonPatch(@Nullable V1alpha1JSONPatch jsonPatch)
    • patchType

      public V1alpha1Mutation patchType(@Nonnull String patchType)
    • getPatchType

      @Nonnull public String getPatchType()
      patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.
      Returns:
      patchType
    • setPatchType

      public void setPatchType(@Nonnull String patchType)
    • 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 V1alpha1Mutation
    • fromJson

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

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