Class V1alpha2AllocationResult

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha2AllocationResult extends Object
AllocationResult contains attributes of an allocated resource.
  • Field Details

  • Constructor Details

    • V1alpha2AllocationResult

      public V1alpha2AllocationResult()
  • Method Details

    • getAvailableOnNodes

      public V1NodeSelector getAvailableOnNodes()
      Returns:
      the availableOnNodes property value
    • setAvailableOnNodes

      public void setAvailableOnNodes(V1NodeSelector availableOnNodes)
      Set the availableOnNodes property value
      Parameters:
      availableOnNodes - property value to set
    • availableOnNodes

      public V1alpha2AllocationResult availableOnNodes(V1NodeSelector availableOnNodes)
      Set availableOnNodes in a chainable fashion.
      Returns:
      The same instance of V1alpha2AllocationResult for chaining.
    • getResourceHandles

      public List<@Valid V1alpha2ResourceHandle> getResourceHandles()
      ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.
      Returns:
      the resourceHandles property value
    • setResourceHandles

      public void setResourceHandles(List<@Valid V1alpha2ResourceHandle> resourceHandles)
      Set the resourceHandles property value
      Parameters:
      resourceHandles - property value to set
    • resourceHandles

      public V1alpha2AllocationResult resourceHandles(List<@Valid V1alpha2ResourceHandle> resourceHandles)
      Set resourceHandles in a chainable fashion.
      Returns:
      The same instance of V1alpha2AllocationResult for chaining.
    • addresourceHandlesItem

      public V1alpha2AllocationResult addresourceHandlesItem(V1alpha2ResourceHandle resourceHandlesItem)
      Add an item to the resourceHandles property in a chainable fashion.
      Returns:
      The same instance of V1alpha2AllocationResult for chaining.
    • getShareable

      public Boolean getShareable()
      Shareable determines whether the resource supports more than one consumer at a time.
      Returns:
      the shareable property value
    • setShareable

      public void setShareable(Boolean shareable)
      Set the shareable property value
      Parameters:
      shareable - property value to set
    • shareable

      public V1alpha2AllocationResult shareable(Boolean shareable)
      Set shareable in a chainable fashion.
      Returns:
      The same instance of V1alpha2AllocationResult 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