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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddresourceHandlesItem
(V1alpha2ResourceHandle resourceHandlesItem) Add an item to the resourceHandles property in a chainable fashion.availableOnNodes
(V1NodeSelector availableOnNodes) Set availableOnNodes in a chainable fashion.boolean
List<@Valid V1alpha2ResourceHandle>
ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim.Shareable determines whether the resource supports more than one consumer at a time.int
hashCode()
resourceHandles
(List<@Valid V1alpha2ResourceHandle> resourceHandles) Set resourceHandles in a chainable fashion.void
setAvailableOnNodes
(V1NodeSelector availableOnNodes) Set the availableOnNodes property valuevoid
setResourceHandles
(List<@Valid V1alpha2ResourceHandle> resourceHandles) Set the resourceHandles property valuevoid
setShareable
(Boolean shareable) Set the shareable property valueSet shareable in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_AVAILABLE_ON_NODES
- See Also:
-
JSON_PROPERTY_RESOURCE_HANDLES
- See Also:
-
JSON_PROPERTY_SHAREABLE
- See Also:
-
-
Constructor Details
-
V1alpha2AllocationResult
public V1alpha2AllocationResult()
-
-
Method Details
-
getAvailableOnNodes
- Returns:
- the availableOnNodes property value
-
setAvailableOnNodes
Set the availableOnNodes property value- Parameters:
availableOnNodes
- property value to set
-
availableOnNodes
Set availableOnNodes in a chainable fashion.- Returns:
- The same instance of V1alpha2AllocationResult for chaining.
-
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
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
Add an item to the resourceHandles property in a chainable fashion.- Returns:
- The same instance of V1alpha2AllocationResult for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-