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

com.pulumi.kubernetes.resource.v1alpha2.inputs.DriverRequestsPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0
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.v1alpha2.inputs;

import com.google.gson.JsonElement;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceRequestPatchArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DriverRequests describes all resources that are needed from one particular driver.
 * 
 */
public final class DriverRequestsPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final DriverRequestsPatchArgs Empty = new DriverRequestsPatchArgs();

    /**
     * DriverName is the name used by the DRA driver kubelet plugin.
     * 
     */
    @Import(name="driverName")
    private @Nullable Output driverName;

    /**
     * @return DriverName is the name used by the DRA driver kubelet plugin.
     * 
     */
    public Optional> driverName() {
        return Optional.ofNullable(this.driverName);
    }

    /**
     * Requests describes all resources that are needed from the driver.
     * 
     */
    @Import(name="requests")
    private @Nullable Output> requests;

    /**
     * @return Requests describes all resources that are needed from the driver.
     * 
     */
    public Optional>> requests() {
        return Optional.ofNullable(this.requests);
    }

    /**
     * VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
     * 
     */
    @Import(name="vendorParameters")
    private @Nullable Output vendorParameters;

    /**
     * @return VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
     * 
     */
    public Optional> vendorParameters() {
        return Optional.ofNullable(this.vendorParameters);
    }

    private DriverRequestsPatchArgs() {}

    private DriverRequestsPatchArgs(DriverRequestsPatchArgs $) {
        this.driverName = $.driverName;
        this.requests = $.requests;
        this.vendorParameters = $.vendorParameters;
    }

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

    public static final class Builder {
        private DriverRequestsPatchArgs $;

        public Builder() {
            $ = new DriverRequestsPatchArgs();
        }

        public Builder(DriverRequestsPatchArgs defaults) {
            $ = new DriverRequestsPatchArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param driverName DriverName is the name used by the DRA driver kubelet plugin.
         * 
         * @return builder
         * 
         */
        public Builder driverName(@Nullable Output driverName) {
            $.driverName = driverName;
            return this;
        }

        /**
         * @param driverName DriverName is the name used by the DRA driver kubelet plugin.
         * 
         * @return builder
         * 
         */
        public Builder driverName(String driverName) {
            return driverName(Output.of(driverName));
        }

        /**
         * @param requests Requests describes all resources that are needed from the driver.
         * 
         * @return builder
         * 
         */
        public Builder requests(@Nullable Output> requests) {
            $.requests = requests;
            return this;
        }

        /**
         * @param requests Requests describes all resources that are needed from the driver.
         * 
         * @return builder
         * 
         */
        public Builder requests(List requests) {
            return requests(Output.of(requests));
        }

        /**
         * @param requests Requests describes all resources that are needed from the driver.
         * 
         * @return builder
         * 
         */
        public Builder requests(ResourceRequestPatchArgs... requests) {
            return requests(List.of(requests));
        }

        /**
         * @param vendorParameters VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
         * 
         * @return builder
         * 
         */
        public Builder vendorParameters(@Nullable Output vendorParameters) {
            $.vendorParameters = vendorParameters;
            return this;
        }

        /**
         * @param vendorParameters VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
         * 
         * @return builder
         * 
         */
        public Builder vendorParameters(JsonElement vendorParameters) {
            return vendorParameters(Output.of(vendorParameters));
        }

        public DriverRequestsPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy