Class V1alpha3DeviceClaim

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha3DeviceClaim extends Object
DeviceClaim defines how to request devices with a ResourceClaim.
  • Field Details

  • Constructor Details

    • V1alpha3DeviceClaim

      public V1alpha3DeviceClaim()
  • Method Details

    • getConfig

      public List<@Valid V1alpha3DeviceClaimConfiguration> getConfig()
      This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
      Returns:
      the config property value
    • setConfig

      public void setConfig(List<@Valid V1alpha3DeviceClaimConfiguration> config)
      Set the config property value
      Parameters:
      config - property value to set
    • config

      Set config in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceClaim for chaining.
    • addconfigItem

      public V1alpha3DeviceClaim addconfigItem(V1alpha3DeviceClaimConfiguration configItem)
      Add an item to the config property in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceClaim for chaining.
    • getConstraints

      public List<@Valid V1alpha3DeviceConstraint> getConstraints()
      These constraints must be satisfied by the set of devices that get allocated for the claim.
      Returns:
      the constraints property value
    • setConstraints

      public void setConstraints(List<@Valid V1alpha3DeviceConstraint> constraints)
      Set the constraints property value
      Parameters:
      constraints - property value to set
    • constraints

      public V1alpha3DeviceClaim constraints(List<@Valid V1alpha3DeviceConstraint> constraints)
      Set constraints in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceClaim for chaining.
    • addconstraintsItem

      public V1alpha3DeviceClaim addconstraintsItem(V1alpha3DeviceConstraint constraintsItem)
      Add an item to the constraints property in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceClaim for chaining.
    • getRequests

      public List<@Valid V1alpha3DeviceRequest> getRequests()
      Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
      Returns:
      the requests property value
    • setRequests

      public void setRequests(List<@Valid V1alpha3DeviceRequest> requests)
      Set the requests property value
      Parameters:
      requests - property value to set
    • requests

      public V1alpha3DeviceClaim requests(List<@Valid V1alpha3DeviceRequest> requests)
      Set requests in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceClaim for chaining.
    • addrequestsItem

      public V1alpha3DeviceClaim addrequestsItem(V1alpha3DeviceRequest requestsItem)
      Add an item to the requests property in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceClaim 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