Class V1ShardInfo

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1ShardInfo extends Object
ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.
  • Field Details

  • Constructor Details

    • V1ShardInfo

      public V1ShardInfo()
  • Method Details

    • selector

      public V1ShardInfo selector(@Nonnull String selector)
    • getSelector

      @Nonnull public String getSelector()
      selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.
      Returns:
      selector
    • setSelector

      public void setSelector(@Nonnull String selector)
    • 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 V1ShardInfo
    • fromJson

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

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