Class V1beta1ResourceSliceSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T23:08:31.638427Z[Etc/UTC]") public class V1beta1ResourceSliceSpec extends Object
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
  • Field Details

  • Constructor Details

    • V1beta1ResourceSliceSpec

      public V1beta1ResourceSliceSpec()
  • Method Details

    • allNodes

      public V1beta1ResourceSliceSpec allNodes(Boolean allNodes)
    • getAllNodes

      @Nullable public Boolean getAllNodes()
      AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set.
      Returns:
      allNodes
    • setAllNodes

      public void setAllNodes(Boolean allNodes)
    • devices

      public V1beta1ResourceSliceSpec devices(List<V1beta1Device> devices)
    • addDevicesItem

      public V1beta1ResourceSliceSpec addDevicesItem(V1beta1Device devicesItem)
    • getDevices

      @Nullable public List<V1beta1Device> getDevices()
      Devices lists some or all of the devices in this pool. Must not have more than 128 entries.
      Returns:
      devices
    • setDevices

      public void setDevices(List<V1beta1Device> devices)
    • driver

      public V1beta1ResourceSliceSpec driver(String driver)
    • getDriver

      public String getDriver()
      Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • nodeName

      public V1beta1ResourceSliceSpec nodeName(String nodeName)
    • getNodeName

      @Nullable public String getNodeName()
      NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
      Returns:
      nodeName
    • setNodeName

      public void setNodeName(String nodeName)
    • nodeSelector

      public V1beta1ResourceSliceSpec nodeSelector(V1NodeSelector nodeSelector)
    • getNodeSelector

      @Nullable public V1NodeSelector getNodeSelector()
      Get nodeSelector
      Returns:
      nodeSelector
    • setNodeSelector

      public void setNodeSelector(V1NodeSelector nodeSelector)
    • pool

    • getPool

      public V1beta1ResourcePool getPool()
      Get pool
      Returns:
      pool
    • setPool

      public void setPool(V1beta1ResourcePool pool)
    • 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