Class V1beta2ResourceSliceSpec

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta2ResourceSliceSpec 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 V1beta2ResourceSliceSpec driver(String driver)
      Set driver in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec for chaining.
    • getPool

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

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

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

      public Boolean getAllNodes()
      AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection 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 V1beta2ResourceSliceSpec allNodes(Boolean allNodes)
      Set allNodes in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec for chaining.
    • getDevices

      public List<@Valid V1beta2Device> 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 V1beta2Device> devices)
      Set the devices property value
      Parameters:
      devices - property value to set
    • devices

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

      public V1beta2ResourceSliceSpec addDevicesItem(V1beta2Device devicesItem)
      Add an item to the devices property in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec 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, AllNodes, and PerDeviceNodeSelection 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 V1beta2ResourceSliceSpec nodeName(String nodeName)
      Set nodeName in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec 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 V1beta2ResourceSliceSpec nodeSelector(V1NodeSelector nodeSelector)
      Set nodeSelector in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec for chaining.
    • getPerDeviceNodeSelection

      public Boolean getPerDeviceNodeSelection()
      PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
      Returns:
      the perDeviceNodeSelection property value
    • setPerDeviceNodeSelection

      public void setPerDeviceNodeSelection(Boolean perDeviceNodeSelection)
      Set the perDeviceNodeSelection property value
      Parameters:
      perDeviceNodeSelection - property value to set
    • perDeviceNodeSelection

      public V1beta2ResourceSliceSpec perDeviceNodeSelection(Boolean perDeviceNodeSelection)
      Set perDeviceNodeSelection in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec for chaining.
    • getSharedCounters

      public List<@Valid V1beta2CounterSet> getSharedCounters()
      SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32.
      Returns:
      the sharedCounters property value
    • setSharedCounters

      public void setSharedCounters(List<@Valid V1beta2CounterSet> sharedCounters)
      Set the sharedCounters property value
      Parameters:
      sharedCounters - property value to set
    • sharedCounters

      public V1beta2ResourceSliceSpec sharedCounters(List<@Valid V1beta2CounterSet> sharedCounters)
      Set sharedCounters in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec for chaining.
    • addSharedCountersItem

      public V1beta2ResourceSliceSpec addSharedCountersItem(V1beta2CounterSet sharedCountersItem)
      Add an item to the sharedCounters property in a chainable fashion.
      Returns:
      The same instance of V1beta2ResourceSliceSpec 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