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

com.pulumi.alicloud.eci.outputs.GetContainerGroupsGroupInitContainer Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.eci.outputs;

import com.pulumi.alicloud.eci.outputs.GetContainerGroupsGroupInitContainerEnvironmentVar;
import com.pulumi.alicloud.eci.outputs.GetContainerGroupsGroupInitContainerPort;
import com.pulumi.alicloud.eci.outputs.GetContainerGroupsGroupInitContainerVolumeMount;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetContainerGroupsGroupInitContainer {
    /**
     * @return The arguments passed to the commands.
     * 
     */
    private List args;
    /**
     * @return The commands run by the container.
     * 
     */
    private List commands;
    /**
     * @return The amount of CPU resources allocated to the container.
     * 
     */
    private Double cpu;
    /**
     * @return The environment variables.
     * 
     */
    private List environmentVars;
    /**
     * @return The amount of GPU resources allocated to the container.
     * 
     */
    private Integer gpu;
    /**
     * @return The image of the container.
     * 
     */
    private String image;
    /**
     * @return The policy for pulling an image.
     * 
     */
    private String imagePullPolicy;
    /**
     * @return The amount of memory resources allocated to the container.
     * 
     */
    private Double memory;
    /**
     * @return The name of the init container.
     * 
     */
    private String name;
    /**
     * @return The exposed ports and protocols. Maximum: `100`.
     * 
     */
    private List ports;
    /**
     * @return Indicates whether the container is ready.
     * 
     */
    private Boolean ready;
    /**
     * @return The number of times that the container has restarted.
     * 
     */
    private Integer restartCount;
    /**
     * @return The list of volumes mounted to the container.
     * 
     */
    private List volumeMounts;
    /**
     * @return The working directory of the container.
     * 
     */
    private String workingDir;

    private GetContainerGroupsGroupInitContainer() {}
    /**
     * @return The arguments passed to the commands.
     * 
     */
    public List args() {
        return this.args;
    }
    /**
     * @return The commands run by the container.
     * 
     */
    public List commands() {
        return this.commands;
    }
    /**
     * @return The amount of CPU resources allocated to the container.
     * 
     */
    public Double cpu() {
        return this.cpu;
    }
    /**
     * @return The environment variables.
     * 
     */
    public List environmentVars() {
        return this.environmentVars;
    }
    /**
     * @return The amount of GPU resources allocated to the container.
     * 
     */
    public Integer gpu() {
        return this.gpu;
    }
    /**
     * @return The image of the container.
     * 
     */
    public String image() {
        return this.image;
    }
    /**
     * @return The policy for pulling an image.
     * 
     */
    public String imagePullPolicy() {
        return this.imagePullPolicy;
    }
    /**
     * @return The amount of memory resources allocated to the container.
     * 
     */
    public Double memory() {
        return this.memory;
    }
    /**
     * @return The name of the init container.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The exposed ports and protocols. Maximum: `100`.
     * 
     */
    public List ports() {
        return this.ports;
    }
    /**
     * @return Indicates whether the container is ready.
     * 
     */
    public Boolean ready() {
        return this.ready;
    }
    /**
     * @return The number of times that the container has restarted.
     * 
     */
    public Integer restartCount() {
        return this.restartCount;
    }
    /**
     * @return The list of volumes mounted to the container.
     * 
     */
    public List volumeMounts() {
        return this.volumeMounts;
    }
    /**
     * @return The working directory of the container.
     * 
     */
    public String workingDir() {
        return this.workingDir;
    }

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

    public static Builder builder(GetContainerGroupsGroupInitContainer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List args;
        private List commands;
        private Double cpu;
        private List environmentVars;
        private Integer gpu;
        private String image;
        private String imagePullPolicy;
        private Double memory;
        private String name;
        private List ports;
        private Boolean ready;
        private Integer restartCount;
        private List volumeMounts;
        private String workingDir;
        public Builder() {}
        public Builder(GetContainerGroupsGroupInitContainer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.args = defaults.args;
    	      this.commands = defaults.commands;
    	      this.cpu = defaults.cpu;
    	      this.environmentVars = defaults.environmentVars;
    	      this.gpu = defaults.gpu;
    	      this.image = defaults.image;
    	      this.imagePullPolicy = defaults.imagePullPolicy;
    	      this.memory = defaults.memory;
    	      this.name = defaults.name;
    	      this.ports = defaults.ports;
    	      this.ready = defaults.ready;
    	      this.restartCount = defaults.restartCount;
    	      this.volumeMounts = defaults.volumeMounts;
    	      this.workingDir = defaults.workingDir;
        }

        @CustomType.Setter
        public Builder args(List args) {
            if (args == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "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("GetContainerGroupsGroupInitContainer", "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("GetContainerGroupsGroupInitContainer", "cpu");
            }
            this.cpu = cpu;
            return this;
        }
        @CustomType.Setter
        public Builder environmentVars(List environmentVars) {
            if (environmentVars == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "environmentVars");
            }
            this.environmentVars = environmentVars;
            return this;
        }
        public Builder environmentVars(GetContainerGroupsGroupInitContainerEnvironmentVar... environmentVars) {
            return environmentVars(List.of(environmentVars));
        }
        @CustomType.Setter
        public Builder gpu(Integer gpu) {
            if (gpu == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "gpu");
            }
            this.gpu = gpu;
            return this;
        }
        @CustomType.Setter
        public Builder image(String image) {
            if (image == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "image");
            }
            this.image = image;
            return this;
        }
        @CustomType.Setter
        public Builder imagePullPolicy(String imagePullPolicy) {
            if (imagePullPolicy == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "imagePullPolicy");
            }
            this.imagePullPolicy = imagePullPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder memory(Double memory) {
            if (memory == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "memory");
            }
            this.memory = memory;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder ports(List ports) {
            if (ports == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "ports");
            }
            this.ports = ports;
            return this;
        }
        public Builder ports(GetContainerGroupsGroupInitContainerPort... ports) {
            return ports(List.of(ports));
        }
        @CustomType.Setter
        public Builder ready(Boolean ready) {
            if (ready == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "ready");
            }
            this.ready = ready;
            return this;
        }
        @CustomType.Setter
        public Builder restartCount(Integer restartCount) {
            if (restartCount == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "restartCount");
            }
            this.restartCount = restartCount;
            return this;
        }
        @CustomType.Setter
        public Builder volumeMounts(List volumeMounts) {
            if (volumeMounts == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "volumeMounts");
            }
            this.volumeMounts = volumeMounts;
            return this;
        }
        public Builder volumeMounts(GetContainerGroupsGroupInitContainerVolumeMount... volumeMounts) {
            return volumeMounts(List.of(volumeMounts));
        }
        @CustomType.Setter
        public Builder workingDir(String workingDir) {
            if (workingDir == null) {
              throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainer", "workingDir");
            }
            this.workingDir = workingDir;
            return this;
        }
        public GetContainerGroupsGroupInitContainer build() {
            final var _resultValue = new GetContainerGroupsGroupInitContainer();
            _resultValue.args = args;
            _resultValue.commands = commands;
            _resultValue.cpu = cpu;
            _resultValue.environmentVars = environmentVars;
            _resultValue.gpu = gpu;
            _resultValue.image = image;
            _resultValue.imagePullPolicy = imagePullPolicy;
            _resultValue.memory = memory;
            _resultValue.name = name;
            _resultValue.ports = ports;
            _resultValue.ready = ready;
            _resultValue.restartCount = restartCount;
            _resultValue.volumeMounts = volumeMounts;
            _resultValue.workingDir = workingDir;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy