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

com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimSpecPatch 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.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. "WaitForFirstConsumer" 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. "WaitForFirstConsumer" is the default.
     * 
     */
    public Optional 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 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 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 _resultValue = new ResourceClaimSpecPatch();
            _resultValue.allocationMode = allocationMode;
            _resultValue.parametersRef = parametersRef;
            _resultValue.resourceClassName = resourceClassName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy