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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.core.v1.inputs.EnvFromSourceArgs;
import com.pulumi.kubernetes.core.v1.inputs.EnvVarArgs;
import com.pulumi.kubernetes.core.v1.inputs.VolumeArgs;
import com.pulumi.kubernetes.core.v1.inputs.VolumeMountArgs;
import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * PodPresetSpec is a description of a pod preset.
 * 
 */
public final class PodPresetSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final PodPresetSpecArgs Empty = new PodPresetSpecArgs();

    /**
     * Env defines the collection of EnvVar to inject into containers.
     * 
     */
    @Import(name="env")
    private @Nullable Output<List<EnvVarArgs>> env;

    /**
     * @return Env defines the collection of EnvVar to inject into containers.
     * 
     */
    public Optional<Output<List<EnvVarArgs>>> env() {
        return Optional.ofNullable(this.env);
    }

    /**
     * EnvFrom defines the collection of EnvFromSource to inject into containers.
     * 
     */
    @Import(name="envFrom")
    private @Nullable Output<List<EnvFromSourceArgs>> envFrom;

    /**
     * @return EnvFrom defines the collection of EnvFromSource to inject into containers.
     * 
     */
    public Optional<Output<List<EnvFromSourceArgs>>> envFrom() {
        return Optional.ofNullable(this.envFrom);
    }

    /**
     * Selector is a label query over a set of resources, in this case pods. Required.
     * 
     */
    @Import(name="selector")
    private @Nullable Output<LabelSelectorArgs> selector;

    /**
     * @return Selector is a label query over a set of resources, in this case pods. Required.
     * 
     */
    public Optional<Output<LabelSelectorArgs>> selector() {
        return Optional.ofNullable(this.selector);
    }

    /**
     * VolumeMounts defines the collection of VolumeMount to inject into containers.
     * 
     */
    @Import(name="volumeMounts")
    private @Nullable Output<List<VolumeMountArgs>> volumeMounts;

    /**
     * @return VolumeMounts defines the collection of VolumeMount to inject into containers.
     * 
     */
    public Optional<Output<List<VolumeMountArgs>>> volumeMounts() {
        return Optional.ofNullable(this.volumeMounts);
    }

    /**
     * Volumes defines the collection of Volume to inject into the pod.
     * 
     */
    @Import(name="volumes")
    private @Nullable Output<List<VolumeArgs>> volumes;

    /**
     * @return Volumes defines the collection of Volume to inject into the pod.
     * 
     */
    public Optional<Output<List<VolumeArgs>>> volumes() {
        return Optional.ofNullable(this.volumes);
    }

    private PodPresetSpecArgs() {}

    private PodPresetSpecArgs(PodPresetSpecArgs $) {
        this.env = $.env;
        this.envFrom = $.envFrom;
        this.selector = $.selector;
        this.volumeMounts = $.volumeMounts;
        this.volumes = $.volumes;
    }

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

    public static final class Builder {
        private PodPresetSpecArgs $;

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

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

        /**
         * @param env Env defines the collection of EnvVar to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder env(@Nullable Output<List<EnvVarArgs>> env) {
            $.env = env;
            return this;
        }

        /**
         * @param env Env defines the collection of EnvVar to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder env(List<EnvVarArgs> env) {
            return env(Output.of(env));
        }

        /**
         * @param env Env defines the collection of EnvVar to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder env(EnvVarArgs... env) {
            return env(List.of(env));
        }

        /**
         * @param envFrom EnvFrom defines the collection of EnvFromSource to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder envFrom(@Nullable Output<List<EnvFromSourceArgs>> envFrom) {
            $.envFrom = envFrom;
            return this;
        }

        /**
         * @param envFrom EnvFrom defines the collection of EnvFromSource to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder envFrom(List<EnvFromSourceArgs> envFrom) {
            return envFrom(Output.of(envFrom));
        }

        /**
         * @param envFrom EnvFrom defines the collection of EnvFromSource to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder envFrom(EnvFromSourceArgs... envFrom) {
            return envFrom(List.of(envFrom));
        }

        /**
         * @param selector Selector is a label query over a set of resources, in this case pods. Required.
         * 
         * @return builder
         * 
         */
        public Builder selector(@Nullable Output<LabelSelectorArgs> selector) {
            $.selector = selector;
            return this;
        }

        /**
         * @param selector Selector is a label query over a set of resources, in this case pods. Required.
         * 
         * @return builder
         * 
         */
        public Builder selector(LabelSelectorArgs selector) {
            return selector(Output.of(selector));
        }

        /**
         * @param volumeMounts VolumeMounts defines the collection of VolumeMount to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(@Nullable Output<List<VolumeMountArgs>> volumeMounts) {
            $.volumeMounts = volumeMounts;
            return this;
        }

        /**
         * @param volumeMounts VolumeMounts defines the collection of VolumeMount to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(List<VolumeMountArgs> volumeMounts) {
            return volumeMounts(Output.of(volumeMounts));
        }

        /**
         * @param volumeMounts VolumeMounts defines the collection of VolumeMount to inject into containers.
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(VolumeMountArgs... volumeMounts) {
            return volumeMounts(List.of(volumeMounts));
        }

        /**
         * @param volumes Volumes defines the collection of Volume to inject into the pod.
         * 
         * @return builder
         * 
         */
        public Builder volumes(@Nullable Output<List<VolumeArgs>> volumes) {
            $.volumes = volumes;
            return this;
        }

        /**
         * @param volumes Volumes defines the collection of Volume to inject into the pod.
         * 
         * @return builder
         * 
         */
        public Builder volumes(List<VolumeArgs> volumes) {
            return volumes(Output.of(volumes));
        }

        /**
         * @param volumes Volumes defines the collection of Volume to inject into the pod.
         * 
         * @return builder
         * 
         */
        public Builder volumes(VolumeArgs... volumes) {
            return volumes(List.of(volumes));
        }

        public PodPresetSpecArgs build() {
            return $;
        }
    }

}
