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

com.pulumi.azure.batch.outputs.GetPoolStartTask 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.batch.outputs;

import com.pulumi.azure.batch.outputs.GetPoolStartTaskContainer;
import com.pulumi.azure.batch.outputs.GetPoolStartTaskResourceFile;
import com.pulumi.azure.batch.outputs.GetPoolStartTaskUserIdentity;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetPoolStartTask {
    /**
     * @return The command line executed by the start task.
     * 
     */
    private String commandLine;
    /**
     * @return A map of strings (key,value) that represents the environment variables to set in the start task.
     * 
     */
    private @Nullable Map commonEnvironmentProperties;
    /**
     * @return The settings for the container under which the start task runs.
     * 
     */
    private List containers;
    /**
     * @return One or more `resource_file` blocks that describe the files to be downloaded to a compute node.
     * 
     */
    private List resourceFiles;
    /**
     * @return The number of retry count
     * 
     */
    private Integer taskRetryMaximum;
    /**
     * @return A `user_identity` block that describes the user identity under which the start task runs.
     * 
     */
    private List userIdentities;
    /**
     * @return A flag that indicates if the Batch pool should wait for the start task to be completed.
     * 
     */
    private Boolean waitForSuccess;

    private GetPoolStartTask() {}
    /**
     * @return The command line executed by the start task.
     * 
     */
    public String commandLine() {
        return this.commandLine;
    }
    /**
     * @return A map of strings (key,value) that represents the environment variables to set in the start task.
     * 
     */
    public Map commonEnvironmentProperties() {
        return this.commonEnvironmentProperties == null ? Map.of() : this.commonEnvironmentProperties;
    }
    /**
     * @return The settings for the container under which the start task runs.
     * 
     */
    public List containers() {
        return this.containers;
    }
    /**
     * @return One or more `resource_file` blocks that describe the files to be downloaded to a compute node.
     * 
     */
    public List resourceFiles() {
        return this.resourceFiles;
    }
    /**
     * @return The number of retry count
     * 
     */
    public Integer taskRetryMaximum() {
        return this.taskRetryMaximum;
    }
    /**
     * @return A `user_identity` block that describes the user identity under which the start task runs.
     * 
     */
    public List userIdentities() {
        return this.userIdentities;
    }
    /**
     * @return A flag that indicates if the Batch pool should wait for the start task to be completed.
     * 
     */
    public Boolean waitForSuccess() {
        return this.waitForSuccess;
    }

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

    public static Builder builder(GetPoolStartTask defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String commandLine;
        private @Nullable Map commonEnvironmentProperties;
        private List containers;
        private List resourceFiles;
        private Integer taskRetryMaximum;
        private List userIdentities;
        private Boolean waitForSuccess;
        public Builder() {}
        public Builder(GetPoolStartTask defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.commandLine = defaults.commandLine;
    	      this.commonEnvironmentProperties = defaults.commonEnvironmentProperties;
    	      this.containers = defaults.containers;
    	      this.resourceFiles = defaults.resourceFiles;
    	      this.taskRetryMaximum = defaults.taskRetryMaximum;
    	      this.userIdentities = defaults.userIdentities;
    	      this.waitForSuccess = defaults.waitForSuccess;
        }

        @CustomType.Setter
        public Builder commandLine(String commandLine) {
            if (commandLine == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTask", "commandLine");
            }
            this.commandLine = commandLine;
            return this;
        }
        @CustomType.Setter
        public Builder commonEnvironmentProperties(@Nullable Map commonEnvironmentProperties) {

            this.commonEnvironmentProperties = commonEnvironmentProperties;
            return this;
        }
        @CustomType.Setter
        public Builder containers(List containers) {
            if (containers == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTask", "containers");
            }
            this.containers = containers;
            return this;
        }
        public Builder containers(GetPoolStartTaskContainer... containers) {
            return containers(List.of(containers));
        }
        @CustomType.Setter
        public Builder resourceFiles(List resourceFiles) {
            if (resourceFiles == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTask", "resourceFiles");
            }
            this.resourceFiles = resourceFiles;
            return this;
        }
        public Builder resourceFiles(GetPoolStartTaskResourceFile... resourceFiles) {
            return resourceFiles(List.of(resourceFiles));
        }
        @CustomType.Setter
        public Builder taskRetryMaximum(Integer taskRetryMaximum) {
            if (taskRetryMaximum == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTask", "taskRetryMaximum");
            }
            this.taskRetryMaximum = taskRetryMaximum;
            return this;
        }
        @CustomType.Setter
        public Builder userIdentities(List userIdentities) {
            if (userIdentities == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTask", "userIdentities");
            }
            this.userIdentities = userIdentities;
            return this;
        }
        public Builder userIdentities(GetPoolStartTaskUserIdentity... userIdentities) {
            return userIdentities(List.of(userIdentities));
        }
        @CustomType.Setter
        public Builder waitForSuccess(Boolean waitForSuccess) {
            if (waitForSuccess == null) {
              throw new MissingRequiredPropertyException("GetPoolStartTask", "waitForSuccess");
            }
            this.waitForSuccess = waitForSuccess;
            return this;
        }
        public GetPoolStartTask build() {
            final var _resultValue = new GetPoolStartTask();
            _resultValue.commandLine = commandLine;
            _resultValue.commonEnvironmentProperties = commonEnvironmentProperties;
            _resultValue.containers = containers;
            _resultValue.resourceFiles = resourceFiles;
            _resultValue.taskRetryMaximum = taskRetryMaximum;
            _resultValue.userIdentities = userIdentities;
            _resultValue.waitForSuccess = waitForSuccess;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy