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

com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceRequestArgs 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.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.NamedResourcesRequestArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ResourceRequest is a request for resources from one particular driver.
 * 
 */
public final class ResourceRequestArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceRequestArgs Empty = new ResourceRequestArgs();

    /**
     * NamedResources describes a request for resources with the named resources model.
     * 
     */
    @Import(name="namedResources")
    private @Nullable Output namedResources;

    /**
     * @return NamedResources describes a request for resources with the named resources model.
     * 
     */
    public Optional> namedResources() {
        return Optional.ofNullable(this.namedResources);
    }

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

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

    private ResourceRequestArgs() {}

    private ResourceRequestArgs(ResourceRequestArgs $) {
        this.namedResources = $.namedResources;
        this.vendorParameters = $.vendorParameters;
    }

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

    public static final class Builder {
        private ResourceRequestArgs $;

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

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

        /**
         * @param namedResources NamedResources describes a request for resources with the named resources model.
         * 
         * @return builder
         * 
         */
        public Builder namedResources(@Nullable Output namedResources) {
            $.namedResources = namedResources;
            return this;
        }

        /**
         * @param namedResources NamedResources describes a request for resources with the named resources model.
         * 
         * @return builder
         * 
         */
        public Builder namedResources(NamedResourcesRequestArgs namedResources) {
            return namedResources(Output.of(namedResources));
        }

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

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

        public ResourceRequestArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy