Class AllocationResult.Builder

  • Enclosing class:
    AllocationResult

    public static class AllocationResult.Builder
    extends java.lang.Object
    • Method Detail

      • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object