// *** 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.v1alpha1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimParametersReferencePatch;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ResourceClaimSpecPatch {
    /**
     * @return Allocation can start immediately or when a Pod wants to use the resource. &#34;WaitForFirstConsumer&#34; is the default.
     * 
     */
    private @Nullable String allocationMode;
    /**
     * @return ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
     * 
     * The object must be in the same namespace as the ResourceClaim.
     * 
     */
    private @Nullable ResourceClaimParametersReferencePatch parametersRef;
    /**
     * @return ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
     * 
     */
    private @Nullable String resourceClassName;

    private ResourceClaimSpecPatch() {}
    /**
     * @return Allocation can start immediately or when a Pod wants to use the resource. &#34;WaitForFirstConsumer&#34; is the default.
     * 
     */
    public Optional<String> allocationMode() {
        return Optional.ofNullable(this.allocationMode);
    }
    /**
     * @return ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
     * 
     * The object must be in the same namespace as the ResourceClaim.
     * 
     */
    public Optional<ResourceClaimParametersReferencePatch> parametersRef() {
        return Optional.ofNullable(this.parametersRef);
    }
    /**
     * @return ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
     * 
     */
    public Optional<String> resourceClassName() {
        return Optional.ofNullable(this.resourceClassName);
    }

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

    public static Builder builder(ResourceClaimSpecPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String allocationMode;
        private @Nullable ResourceClaimParametersReferencePatch parametersRef;
        private @Nullable String resourceClassName;
        public Builder() {}
        public Builder(ResourceClaimSpecPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allocationMode = defaults.allocationMode;
    	      this.parametersRef = defaults.parametersRef;
    	      this.resourceClassName = defaults.resourceClassName;
        }

        @CustomType.Setter
        public Builder allocationMode(@Nullable String allocationMode) {
            this.allocationMode = allocationMode;
            return this;
        }
        @CustomType.Setter
        public Builder parametersRef(@Nullable ResourceClaimParametersReferencePatch parametersRef) {
            this.parametersRef = parametersRef;
            return this;
        }
        @CustomType.Setter
        public Builder resourceClassName(@Nullable String resourceClassName) {
            this.resourceClassName = resourceClassName;
            return this;
        }
        public ResourceClaimSpecPatch build() {
            final var o = new ResourceClaimSpecPatch();
            o.allocationMode = allocationMode;
            o.parametersRef = parametersRef;
            o.resourceClassName = resourceClassName;
            return o;
        }
    }
}
