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

com.pulumi.kubernetes.yaml.v2.ConfigFileArgs 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.yaml.v2;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ConfigFileArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigFileArgs Empty = new ConfigFileArgs();

    /**
     * Path or URL to a Kubernetes manifest file. File must exist.
     * 
     */
    @Import(name="file", required=true)
    private Output file;

    /**
     * @return Path or URL to a Kubernetes manifest file. File must exist.
     * 
     */
    public Output file() {
        return this.file;
    }

    /**
     * A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName".
     * 
     */
    @Import(name="resourcePrefix")
    private @Nullable Output resourcePrefix;

    /**
     * @return A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName".
     * 
     */
    public Optional> resourcePrefix() {
        return Optional.ofNullable(this.resourcePrefix);
    }

    /**
     * Indicates that child resources should skip the await logic.
     * 
     */
    @Import(name="skipAwait")
    private @Nullable Output skipAwait;

    /**
     * @return Indicates that child resources should skip the await logic.
     * 
     */
    public Optional> skipAwait() {
        return Optional.ofNullable(this.skipAwait);
    }

    private ConfigFileArgs() {}

    private ConfigFileArgs(ConfigFileArgs $) {
        this.file = $.file;
        this.resourcePrefix = $.resourcePrefix;
        this.skipAwait = $.skipAwait;
    }

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

    public static final class Builder {
        private ConfigFileArgs $;

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

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

        /**
         * @param file Path or URL to a Kubernetes manifest file. File must exist.
         * 
         * @return builder
         * 
         */
        public Builder file(Output file) {
            $.file = file;
            return this;
        }

        /**
         * @param file Path or URL to a Kubernetes manifest file. File must exist.
         * 
         * @return builder
         * 
         */
        public Builder file(String file) {
            return file(Output.of(file));
        }

        /**
         * @param resourcePrefix A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName".
         * 
         * @return builder
         * 
         */
        public Builder resourcePrefix(@Nullable Output resourcePrefix) {
            $.resourcePrefix = resourcePrefix;
            return this;
        }

        /**
         * @param resourcePrefix A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName".
         * 
         * @return builder
         * 
         */
        public Builder resourcePrefix(String resourcePrefix) {
            return resourcePrefix(Output.of(resourcePrefix));
        }

        /**
         * @param skipAwait Indicates that child resources should skip the await logic.
         * 
         * @return builder
         * 
         */
        public Builder skipAwait(@Nullable Output skipAwait) {
            $.skipAwait = skipAwait;
            return this;
        }

        /**
         * @param skipAwait Indicates that child resources should skip the await logic.
         * 
         * @return builder
         * 
         */
        public Builder skipAwait(Boolean skipAwait) {
            return skipAwait(Output.of(skipAwait));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy