Class AllocationResult.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.resource.v1alpha1.AllocationResult.Builder
-
- Enclosing class:
- AllocationResult
public static class AllocationResult.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationResult.Builder
availableOnNodes(NodeSelector availableOnNodes)
AllocationResult
build()
AllocationResult.Builder
resourceHandle(java.lang.String resourceHandle)
ResourceHandle contains arbitrary data returned by the driver after a successful allocation.AllocationResult.Builder
shareable(java.lang.Boolean shareable)
Shareable determines whether the resource supports more than one consumer at a time.java.lang.String
toString()
-
-
-
Method Detail
-
availableOnNodes
public AllocationResult.Builder availableOnNodes(NodeSelector availableOnNodes)
- Returns:
this
.
-
resourceHandle
public AllocationResult.Builder resourceHandle(java.lang.String resourceHandle)
ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
- Returns:
this
.
-
shareable
public AllocationResult.Builder shareable(java.lang.Boolean shareable)
Shareable determines whether the resource supports more than one consumer at a time.- Returns:
this
.
-
build
public AllocationResult build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-