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

com.pulumi.kubernetes.resource.v1alpha3.outputs.ResourceClaimSpec 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.kubernetes.resource.v1alpha3.outputs.DeviceClaim;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ResourceClaimSpec {
    /**
     * @return Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
     * 
     * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
     * 
     * This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
     * 
     */
    private @Nullable String controller;
    /**
     * @return Devices defines how to request devices.
     * 
     */
    private @Nullable DeviceClaim devices;

    private ResourceClaimSpec() {}
    /**
     * @return Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
     * 
     * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
     * 
     * This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
     * 
     */
    public Optional controller() {
        return Optional.ofNullable(this.controller);
    }
    /**
     * @return Devices defines how to request devices.
     * 
     */
    public Optional devices() {
        return Optional.ofNullable(this.devices);
    }

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

    public static Builder builder(ResourceClaimSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String controller;
        private @Nullable DeviceClaim devices;
        public Builder() {}
        public Builder(ResourceClaimSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.controller = defaults.controller;
    	      this.devices = defaults.devices;
        }

        @CustomType.Setter
        public Builder controller(@Nullable String controller) {

            this.controller = controller;
            return this;
        }
        @CustomType.Setter
        public Builder devices(@Nullable DeviceClaim devices) {

            this.devices = devices;
            return this;
        }
        public ResourceClaimSpec build() {
            final var _resultValue = new ResourceClaimSpec();
            _resultValue.controller = controller;
            _resultValue.devices = devices;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy