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

com.pulumi.azure.batch.outputs.GetPoolStartTaskContainer Maven / Gradle / Ivy

// *** 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.batch.outputs;

import com.pulumi.azure.batch.outputs.GetPoolStartTaskContainerRegistry;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetPoolStartTaskContainer {
    /**
     * @return The image to use to create the container in which the task will run.
     * 
     */
    private String imageName;
    /**
     * @return The same reference as `container_registries` block defined as follows.
     * 
     */
    private List registries;
    /**
     * @return Additional options to the container create command.
     * 
     */
    private String runOptions;
    /**
     * @return A flag to indicate where the container task working directory is.
     * 
     */
    private String workingDirectory;

    private GetPoolStartTaskContainer() {}
    /**
     * @return The image to use to create the container in which the task will run.
     * 
     */
    public String imageName() {
        return this.imageName;
    }
    /**
     * @return The same reference as `container_registries` block defined as follows.
     * 
     */
    public List registries() {
        return this.registries;
    }
    /**
     * @return Additional options to the container create command.
     * 
     */
    public String runOptions() {
        return this.runOptions;
    }
    /**
     * @return A flag to indicate where the container task working directory is.
     * 
     */
    public String workingDirectory() {
        return this.workingDirectory;
    }

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

    public static Builder builder(GetPoolStartTaskContainer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String imageName;
        private List registries;
        private String runOptions;
        private String workingDirectory;
        public Builder() {}
        public Builder(GetPoolStartTaskContainer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.imageName = defaults.imageName;
    	      this.registries = defaults.registries;
    	      this.runOptions = defaults.runOptions;
    	      this.workingDirectory = defaults.workingDirectory;
        }

        @CustomType.Setter
        public Builder imageName(String imageName) {
            if (imageName == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTaskContainer", "imageName");
            }
            this.imageName = imageName;
            return this;
        }
        @CustomType.Setter
        public Builder registries(List registries) {
            if (registries == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTaskContainer", "registries");
            }
            this.registries = registries;
            return this;
        }
        public Builder registries(GetPoolStartTaskContainerRegistry... registries) {
            return registries(List.of(registries));
        }
        @CustomType.Setter
        public Builder runOptions(String runOptions) {
            if (runOptions == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTaskContainer", "runOptions");
            }
            this.runOptions = runOptions;
            return this;
        }
        @CustomType.Setter
        public Builder workingDirectory(String workingDirectory) {
            if (workingDirectory == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTaskContainer", "workingDirectory");
            }
            this.workingDirectory = workingDirectory;
            return this;
        }
        public GetPoolStartTaskContainer build() {
            final var _resultValue = new GetPoolStartTaskContainer();
            _resultValue.imageName = imageName;
            _resultValue.registries = registries;
            _resultValue.runOptions = runOptions;
            _resultValue.workingDirectory = workingDirectory;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy