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

com.pulumi.azure.containerapp.outputs.GetAppTemplateContainer Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.containerapp.outputs;

import com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerEnv;
import com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerLivenessProbe;
import com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerReadinessProbe;
import com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerStartupProbe;
import com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerVolumeMount;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetAppTemplateContainer {
    /**
     * @return A list of extra arguments to pass to the container.
     * 
     */
    private List args;
    /**
     * @return A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
     * 
     */
    private List commands;
    /**
     * @return The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
     * 
     */
    private Double cpu;
    /**
     * @return One or more `env` blocks as detailed below.
     * 
     */
    private List envs;
    /**
     * @return The amount of ephemeral storage available to the Container App.
     * 
     */
    private String ephemeralStorage;
    /**
     * @return The image to use to create the container.
     * 
     */
    private String image;
    /**
     * @return A `liveness_probe` block as detailed below.
     * 
     */
    private List livenessProbes;
    /**
     * @return The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi`, and `4Gi`.
     * 
     */
    private String memory;
    /**
     * @return The name of the Container App.
     * 
     */
    private String name;
    /**
     * @return A `readiness_probe` block as detailed below.
     * 
     */
    private List readinessProbes;
    /**
     * @return A `startup_probe` block as detailed below.
     * 
     */
    private List startupProbes;
    /**
     * @return A `volume_mounts` block as detailed below.
     * 
     */
    private List volumeMounts;

    private GetAppTemplateContainer() {}
    /**
     * @return A list of extra arguments to pass to the container.
     * 
     */
    public List args() {
        return this.args;
    }
    /**
     * @return A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
     * 
     */
    public List commands() {
        return this.commands;
    }
    /**
     * @return The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
     * 
     */
    public Double cpu() {
        return this.cpu;
    }
    /**
     * @return One or more `env` blocks as detailed below.
     * 
     */
    public List envs() {
        return this.envs;
    }
    /**
     * @return The amount of ephemeral storage available to the Container App.
     * 
     */
    public String ephemeralStorage() {
        return this.ephemeralStorage;
    }
    /**
     * @return The image to use to create the container.
     * 
     */
    public String image() {
        return this.image;
    }
    /**
     * @return A `liveness_probe` block as detailed below.
     * 
     */
    public List livenessProbes() {
        return this.livenessProbes;
    }
    /**
     * @return The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi`, and `4Gi`.
     * 
     */
    public String memory() {
        return this.memory;
    }
    /**
     * @return The name of the Container App.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A `readiness_probe` block as detailed below.
     * 
     */
    public List readinessProbes() {
        return this.readinessProbes;
    }
    /**
     * @return A `startup_probe` block as detailed below.
     * 
     */
    public List startupProbes() {
        return this.startupProbes;
    }
    /**
     * @return A `volume_mounts` block as detailed below.
     * 
     */
    public List volumeMounts() {
        return this.volumeMounts;
    }

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

    public static Builder builder(GetAppTemplateContainer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List args;
        private List commands;
        private Double cpu;
        private List envs;
        private String ephemeralStorage;
        private String image;
        private List livenessProbes;
        private String memory;
        private String name;
        private List readinessProbes;
        private List startupProbes;
        private List volumeMounts;
        public Builder() {}
        public Builder(GetAppTemplateContainer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.args = defaults.args;
    	      this.commands = defaults.commands;
    	      this.cpu = defaults.cpu;
    	      this.envs = defaults.envs;
    	      this.ephemeralStorage = defaults.ephemeralStorage;
    	      this.image = defaults.image;
    	      this.livenessProbes = defaults.livenessProbes;
    	      this.memory = defaults.memory;
    	      this.name = defaults.name;
    	      this.readinessProbes = defaults.readinessProbes;
    	      this.startupProbes = defaults.startupProbes;
    	      this.volumeMounts = defaults.volumeMounts;
        }

        @CustomType.Setter
        public Builder args(List args) {
            if (args == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "args");
            }
            this.args = args;
            return this;
        }
        public Builder args(String... args) {
            return args(List.of(args));
        }
        @CustomType.Setter
        public Builder commands(List commands) {
            if (commands == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "commands");
            }
            this.commands = commands;
            return this;
        }
        public Builder commands(String... commands) {
            return commands(List.of(commands));
        }
        @CustomType.Setter
        public Builder cpu(Double cpu) {
            if (cpu == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "cpu");
            }
            this.cpu = cpu;
            return this;
        }
        @CustomType.Setter
        public Builder envs(List envs) {
            if (envs == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "envs");
            }
            this.envs = envs;
            return this;
        }
        public Builder envs(GetAppTemplateContainerEnv... envs) {
            return envs(List.of(envs));
        }
        @CustomType.Setter
        public Builder ephemeralStorage(String ephemeralStorage) {
            if (ephemeralStorage == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "ephemeralStorage");
            }
            this.ephemeralStorage = ephemeralStorage;
            return this;
        }
        @CustomType.Setter
        public Builder image(String image) {
            if (image == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "image");
            }
            this.image = image;
            return this;
        }
        @CustomType.Setter
        public Builder livenessProbes(List livenessProbes) {
            if (livenessProbes == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "livenessProbes");
            }
            this.livenessProbes = livenessProbes;
            return this;
        }
        public Builder livenessProbes(GetAppTemplateContainerLivenessProbe... livenessProbes) {
            return livenessProbes(List.of(livenessProbes));
        }
        @CustomType.Setter
        public Builder memory(String memory) {
            if (memory == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "memory");
            }
            this.memory = memory;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder readinessProbes(List readinessProbes) {
            if (readinessProbes == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "readinessProbes");
            }
            this.readinessProbes = readinessProbes;
            return this;
        }
        public Builder readinessProbes(GetAppTemplateContainerReadinessProbe... readinessProbes) {
            return readinessProbes(List.of(readinessProbes));
        }
        @CustomType.Setter
        public Builder startupProbes(List startupProbes) {
            if (startupProbes == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "startupProbes");
            }
            this.startupProbes = startupProbes;
            return this;
        }
        public Builder startupProbes(GetAppTemplateContainerStartupProbe... startupProbes) {
            return startupProbes(List.of(startupProbes));
        }
        @CustomType.Setter
        public Builder volumeMounts(List volumeMounts) {
            if (volumeMounts == null) {
              throw new MissingRequiredPropertyException("GetAppTemplateContainer", "volumeMounts");
            }
            this.volumeMounts = volumeMounts;
            return this;
        }
        public Builder volumeMounts(GetAppTemplateContainerVolumeMount... volumeMounts) {
            return volumeMounts(List.of(volumeMounts));
        }
        public GetAppTemplateContainer build() {
            final var _resultValue = new GetAppTemplateContainer();
            _resultValue.args = args;
            _resultValue.commands = commands;
            _resultValue.cpu = cpu;
            _resultValue.envs = envs;
            _resultValue.ephemeralStorage = ephemeralStorage;
            _resultValue.image = image;
            _resultValue.livenessProbes = livenessProbes;
            _resultValue.memory = memory;
            _resultValue.name = name;
            _resultValue.readinessProbes = readinessProbes;
            _resultValue.startupProbes = startupProbes;
            _resultValue.volumeMounts = volumeMounts;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy