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

com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceRequestPatch 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.outputs;

import com.google.gson.JsonElement;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesRequestPatch;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ResourceRequestPatch {
    /**
     * @return NamedResources describes a request for resources with the named resources model.
     * 
     */
    private @Nullable NamedResourcesRequestPatch namedResources;
    /**
     * @return VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim.
     * 
     */
    private @Nullable JsonElement vendorParameters;

    private ResourceRequestPatch() {}
    /**
     * @return NamedResources describes a request for resources with the named resources model.
     * 
     */
    public Optional namedResources() {
        return Optional.ofNullable(this.namedResources);
    }
    /**
     * @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);
    }

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

    public static Builder builder(ResourceRequestPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable NamedResourcesRequestPatch namedResources;
        private @Nullable JsonElement vendorParameters;
        public Builder() {}
        public Builder(ResourceRequestPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.namedResources = defaults.namedResources;
    	      this.vendorParameters = defaults.vendorParameters;
        }

        @CustomType.Setter
        public Builder namedResources(@Nullable NamedResourcesRequestPatch namedResources) {

            this.namedResources = namedResources;
            return this;
        }
        @CustomType.Setter
        public Builder vendorParameters(@Nullable JsonElement vendorParameters) {

            this.vendorParameters = vendorParameters;
            return this;
        }
        public ResourceRequestPatch build() {
            final var _resultValue = new ResourceRequestPatch();
            _resultValue.namedResources = namedResources;
            _resultValue.vendorParameters = vendorParameters;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy