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

com.pulumi.azurenative.app.outputs.ContainerResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.app.outputs;

import com.pulumi.azurenative.app.outputs.ContainerAppProbeResponse;
import com.pulumi.azurenative.app.outputs.ContainerResourcesResponse;
import com.pulumi.azurenative.app.outputs.EnvironmentVarResponse;
import com.pulumi.azurenative.app.outputs.VolumeMountResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContainerResponse {
    /**
     * @return Container start command arguments.
     * 
     */
    private @Nullable List args;
    /**
     * @return Container start command.
     * 
     */
    private @Nullable List command;
    /**
     * @return Container environment variables.
     * 
     */
    private @Nullable List env;
    /**
     * @return Container image tag.
     * 
     */
    private @Nullable String image;
    /**
     * @return Custom container name.
     * 
     */
    private @Nullable String name;
    /**
     * @return List of probes for the container.
     * 
     */
    private @Nullable List probes;
    /**
     * @return Container resource requirements.
     * 
     */
    private @Nullable ContainerResourcesResponse resources;
    /**
     * @return Container volume mounts.
     * 
     */
    private @Nullable List volumeMounts;

    private ContainerResponse() {}
    /**
     * @return Container start command arguments.
     * 
     */
    public List args() {
        return this.args == null ? List.of() : this.args;
    }
    /**
     * @return Container start command.
     * 
     */
    public List command() {
        return this.command == null ? List.of() : this.command;
    }
    /**
     * @return Container environment variables.
     * 
     */
    public List env() {
        return this.env == null ? List.of() : this.env;
    }
    /**
     * @return Container image tag.
     * 
     */
    public Optional image() {
        return Optional.ofNullable(this.image);
    }
    /**
     * @return Custom container name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return List of probes for the container.
     * 
     */
    public List probes() {
        return this.probes == null ? List.of() : this.probes;
    }
    /**
     * @return Container resource requirements.
     * 
     */
    public Optional resources() {
        return Optional.ofNullable(this.resources);
    }
    /**
     * @return Container volume mounts.
     * 
     */
    public List volumeMounts() {
        return this.volumeMounts == null ? List.of() : this.volumeMounts;
    }

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

    public static Builder builder(ContainerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List args;
        private @Nullable List command;
        private @Nullable List env;
        private @Nullable String image;
        private @Nullable String name;
        private @Nullable List probes;
        private @Nullable ContainerResourcesResponse resources;
        private @Nullable List volumeMounts;
        public Builder() {}
        public Builder(ContainerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.args = defaults.args;
    	      this.command = defaults.command;
    	      this.env = defaults.env;
    	      this.image = defaults.image;
    	      this.name = defaults.name;
    	      this.probes = defaults.probes;
    	      this.resources = defaults.resources;
    	      this.volumeMounts = defaults.volumeMounts;
        }

        @CustomType.Setter
        public Builder args(@Nullable List args) {

            this.args = args;
            return this;
        }
        public Builder args(String... args) {
            return args(List.of(args));
        }
        @CustomType.Setter
        public Builder command(@Nullable List command) {

            this.command = command;
            return this;
        }
        public Builder command(String... command) {
            return command(List.of(command));
        }
        @CustomType.Setter
        public Builder env(@Nullable List env) {

            this.env = env;
            return this;
        }
        public Builder env(EnvironmentVarResponse... env) {
            return env(List.of(env));
        }
        @CustomType.Setter
        public Builder image(@Nullable String image) {

            this.image = image;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder probes(@Nullable List probes) {

            this.probes = probes;
            return this;
        }
        public Builder probes(ContainerAppProbeResponse... probes) {
            return probes(List.of(probes));
        }
        @CustomType.Setter
        public Builder resources(@Nullable ContainerResourcesResponse resources) {

            this.resources = resources;
            return this;
        }
        @CustomType.Setter
        public Builder volumeMounts(@Nullable List volumeMounts) {

            this.volumeMounts = volumeMounts;
            return this;
        }
        public Builder volumeMounts(VolumeMountResponse... volumeMounts) {
            return volumeMounts(List.of(volumeMounts));
        }
        public ContainerResponse build() {
            final var _resultValue = new ContainerResponse();
            _resultValue.args = args;
            _resultValue.command = command;
            _resultValue.env = env;
            _resultValue.image = image;
            _resultValue.name = name;
            _resultValue.probes = probes;
            _resultValue.resources = resources;
            _resultValue.volumeMounts = volumeMounts;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy