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

com.pulumi.azurenative.batch.inputs.TaskContainerSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.batch.inputs;

import com.pulumi.azurenative.batch.enums.ContainerWorkingDirectory;
import com.pulumi.azurenative.batch.inputs.ContainerRegistryArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TaskContainerSettingsArgs Empty = new TaskContainerSettingsArgs();

    /**
     * These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
     * 
     */
    @Import(name="containerRunOptions")
    private @Nullable Output containerRunOptions;

    /**
     * @return These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
     * 
     */
    public Optional> containerRunOptions() {
        return Optional.ofNullable(this.containerRunOptions);
    }

    /**
     * This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
     * 
     */
    @Import(name="imageName", required=true)
    private Output imageName;

    /**
     * @return This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
     * 
     */
    public Output imageName() {
        return this.imageName;
    }

    /**
     * This setting can be omitted if was already provided at pool creation.
     * 
     */
    @Import(name="registry")
    private @Nullable Output registry;

    /**
     * @return This setting can be omitted if was already provided at pool creation.
     * 
     */
    public Optional> registry() {
        return Optional.ofNullable(this.registry);
    }

    @Import(name="workingDirectory")
    private @Nullable Output workingDirectory;

    public Optional> workingDirectory() {
        return Optional.ofNullable(this.workingDirectory);
    }

    private TaskContainerSettingsArgs() {}

    private TaskContainerSettingsArgs(TaskContainerSettingsArgs $) {
        this.containerRunOptions = $.containerRunOptions;
        this.imageName = $.imageName;
        this.registry = $.registry;
        this.workingDirectory = $.workingDirectory;
    }

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

    public static final class Builder {
        private TaskContainerSettingsArgs $;

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

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

        /**
         * @param containerRunOptions These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
         * 
         * @return builder
         * 
         */
        public Builder containerRunOptions(@Nullable Output containerRunOptions) {
            $.containerRunOptions = containerRunOptions;
            return this;
        }

        /**
         * @param containerRunOptions These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
         * 
         * @return builder
         * 
         */
        public Builder containerRunOptions(String containerRunOptions) {
            return containerRunOptions(Output.of(containerRunOptions));
        }

        /**
         * @param imageName This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
         * 
         * @return builder
         * 
         */
        public Builder imageName(Output imageName) {
            $.imageName = imageName;
            return this;
        }

        /**
         * @param imageName This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
         * 
         * @return builder
         * 
         */
        public Builder imageName(String imageName) {
            return imageName(Output.of(imageName));
        }

        /**
         * @param registry This setting can be omitted if was already provided at pool creation.
         * 
         * @return builder
         * 
         */
        public Builder registry(@Nullable Output registry) {
            $.registry = registry;
            return this;
        }

        /**
         * @param registry This setting can be omitted if was already provided at pool creation.
         * 
         * @return builder
         * 
         */
        public Builder registry(ContainerRegistryArgs registry) {
            return registry(Output.of(registry));
        }

        public Builder workingDirectory(@Nullable Output workingDirectory) {
            $.workingDirectory = workingDirectory;
            return this;
        }

        public Builder workingDirectory(ContainerWorkingDirectory workingDirectory) {
            return workingDirectory(Output.of(workingDirectory));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy