Class V1alpha3ResourceSliceSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3ResourceSliceSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha3ResourceSliceSpec extends Object
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
  • Field Details

  • Constructor Details

  • Method Details

    • 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:
      the driver property value
    • setDriver

      public void setDriver(String driver)
      Set the driver property value
      Parameters:
      driver - property value to set
    • driver

      public V1alpha3ResourceSliceSpec driver(String driver)
      Set driver in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • getPool

      public V1alpha3ResourcePool getPool()
      Returns:
      the pool property value
    • setPool

      public void setPool(V1alpha3ResourcePool pool)
      Set the pool property value
      Parameters:
      pool - property value to set
    • pool

      Set pool in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • getAllNodes

      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:
      the allNodes property value
    • setAllNodes

      public void setAllNodes(Boolean allNodes)
      Set the allNodes property value
      Parameters:
      allNodes - property value to set
    • allNodes

      public V1alpha3ResourceSliceSpec allNodes(Boolean allNodes)
      Set allNodes in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • getDevices

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

      public void setDevices(List<@Valid V1alpha3Device> devices)
      Set the devices property value
      Parameters:
      devices - property value to set
    • devices

      public V1alpha3ResourceSliceSpec devices(List<@Valid V1alpha3Device> devices)
      Set devices in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • adddevicesItem

      public V1alpha3ResourceSliceSpec adddevicesItem(V1alpha3Device devicesItem)
      Add an item to the devices property in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • getNodeName

      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:
      the nodeName property value
    • setNodeName

      public void setNodeName(String nodeName)
      Set the nodeName property value
      Parameters:
      nodeName - property value to set
    • nodeName

      public V1alpha3ResourceSliceSpec nodeName(String nodeName)
      Set nodeName in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • getNodeSelector

      public V1NodeSelector getNodeSelector()
      Returns:
      the nodeSelector property value
    • setNodeSelector

      public void setNodeSelector(V1NodeSelector nodeSelector)
      Set the nodeSelector property value
      Parameters:
      nodeSelector - property value to set
    • nodeSelector

      public V1alpha3ResourceSliceSpec nodeSelector(V1NodeSelector nodeSelector)
      Set nodeSelector in a chainable fashion.
      Returns:
      The same instance of V1alpha3ResourceSliceSpec for chaining.
    • 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