All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceRequestAllocationResult Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.resource.v1alpha3.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class DeviceRequestAllocationResult {
    /**
     * @return Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
     * 
     */
    private String device;
    /**
     * @return Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
     * 
     * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
     * 
     */
    private String driver;
    /**
     * @return This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
     * 
     * Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
     * 
     */
    private String pool;
    /**
     * @return Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
     * 
     */
    private String request;

    private DeviceRequestAllocationResult() {}
    /**
     * @return Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
     * 
     */
    public String device() {
        return this.device;
    }
    /**
     * @return Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
     * 
     * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
     * 
     */
    public String driver() {
        return this.driver;
    }
    /**
     * @return This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
     * 
     * Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
     * 
     */
    public String pool() {
        return this.pool;
    }
    /**
     * @return Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
     * 
     */
    public String request() {
        return this.request;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(DeviceRequestAllocationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String device;
        private String driver;
        private String pool;
        private String request;
        public Builder() {}
        public Builder(DeviceRequestAllocationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.device = defaults.device;
    	      this.driver = defaults.driver;
    	      this.pool = defaults.pool;
    	      this.request = defaults.request;
        }

        @CustomType.Setter
        public Builder device(String device) {
            if (device == null) {
              throw new MissingRequiredPropertyException("DeviceRequestAllocationResult", "device");
            }
            this.device = device;
            return this;
        }
        @CustomType.Setter
        public Builder driver(String driver) {
            if (driver == null) {
              throw new MissingRequiredPropertyException("DeviceRequestAllocationResult", "driver");
            }
            this.driver = driver;
            return this;
        }
        @CustomType.Setter
        public Builder pool(String pool) {
            if (pool == null) {
              throw new MissingRequiredPropertyException("DeviceRequestAllocationResult", "pool");
            }
            this.pool = pool;
            return this;
        }
        @CustomType.Setter
        public Builder request(String request) {
            if (request == null) {
              throw new MissingRequiredPropertyException("DeviceRequestAllocationResult", "request");
            }
            this.request = request;
            return this;
        }
        public DeviceRequestAllocationResult build() {
            final var _resultValue = new DeviceRequestAllocationResult();
            _resultValue.device = device;
            _resultValue.driver = driver;
            _resultValue.pool = pool;
            _resultValue.request = request;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy