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

com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateSpecArgs 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.v1alpha1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs;
import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSpecArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 * 
 */
public final class ResourceClaimTemplateSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceClaimTemplateSpecArgs Empty = new ResourceClaimTemplateSpecArgs();

    /**
     * ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
     * 
     */
    @Import(name="spec", required=true)
    private Output spec;

    /**
     * @return Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
     * 
     */
    public Output spec() {
        return this.spec;
    }

    private ResourceClaimTemplateSpecArgs() {}

    private ResourceClaimTemplateSpecArgs(ResourceClaimTemplateSpecArgs $) {
        this.metadata = $.metadata;
        this.spec = $.spec;
    }

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

    public static final class Builder {
        private ResourceClaimTemplateSpecArgs $;

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

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

        /**
         * @param metadata ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
         * 
         * @return builder
         * 
         */
        public Builder metadata(ObjectMetaArgs metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param spec Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
         * 
         * @return builder
         * 
         */
        public Builder spec(Output spec) {
            $.spec = spec;
            return this;
        }

        /**
         * @param spec Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
         * 
         * @return builder
         * 
         */
        public Builder spec(ResourceClaimSpecArgs spec) {
            return spec(Output.of(spec));
        }

        public ResourceClaimTemplateSpecArgs build() {
            if ($.spec == null) {
                throw new MissingRequiredPropertyException("ResourceClaimTemplateSpecArgs", "spec");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy