com.pulumi.azure.batch.outputs.GetPoolStartTaskResourceFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetPoolStartTaskResourceFile {
/**
* @return The storage container name in the auto storage account.
*
*/
private String autoStorageContainerName;
/**
* @return The blob prefix used when downloading blobs from an Azure Storage container.
*
*/
private String blobPrefix;
/**
* @return The file permission mode attribute represented as a string in octal format (e.g. `"0644"`).
*
*/
private String fileMode;
/**
* @return The location on the compute node to which to download the file, relative to the task's working directory. If the `http_url` property is specified, the `file_path` is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the `auto_storage_container_name` or `storage_container_url` property is specified.
*
*/
private String filePath;
/**
* @return The URL of the file to download. If the URL is Azure Blob Storage, it must be readable using anonymous access.
*
*/
private String httpUrl;
/**
* @return The URL of the blob container within Azure Blob Storage.
*
*/
private String storageContainerUrl;
/**
* @return The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password.
*
*/
private String userAssignedIdentityId;
private GetPoolStartTaskResourceFile() {}
/**
* @return The storage container name in the auto storage account.
*
*/
public String autoStorageContainerName() {
return this.autoStorageContainerName;
}
/**
* @return The blob prefix used when downloading blobs from an Azure Storage container.
*
*/
public String blobPrefix() {
return this.blobPrefix;
}
/**
* @return The file permission mode attribute represented as a string in octal format (e.g. `"0644"`).
*
*/
public String fileMode() {
return this.fileMode;
}
/**
* @return The location on the compute node to which to download the file, relative to the task's working directory. If the `http_url` property is specified, the `file_path` is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the `auto_storage_container_name` or `storage_container_url` property is specified.
*
*/
public String filePath() {
return this.filePath;
}
/**
* @return The URL of the file to download. If the URL is Azure Blob Storage, it must be readable using anonymous access.
*
*/
public String httpUrl() {
return this.httpUrl;
}
/**
* @return The URL of the blob container within Azure Blob Storage.
*
*/
public String storageContainerUrl() {
return this.storageContainerUrl;
}
/**
* @return The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password.
*
*/
public String userAssignedIdentityId() {
return this.userAssignedIdentityId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPoolStartTaskResourceFile defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String autoStorageContainerName;
private String blobPrefix;
private String fileMode;
private String filePath;
private String httpUrl;
private String storageContainerUrl;
private String userAssignedIdentityId;
public Builder() {}
public Builder(GetPoolStartTaskResourceFile defaults) {
Objects.requireNonNull(defaults);
this.autoStorageContainerName = defaults.autoStorageContainerName;
this.blobPrefix = defaults.blobPrefix;
this.fileMode = defaults.fileMode;
this.filePath = defaults.filePath;
this.httpUrl = defaults.httpUrl;
this.storageContainerUrl = defaults.storageContainerUrl;
this.userAssignedIdentityId = defaults.userAssignedIdentityId;
}
@CustomType.Setter
public Builder autoStorageContainerName(String autoStorageContainerName) {
if (autoStorageContainerName == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "autoStorageContainerName");
}
this.autoStorageContainerName = autoStorageContainerName;
return this;
}
@CustomType.Setter
public Builder blobPrefix(String blobPrefix) {
if (blobPrefix == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "blobPrefix");
}
this.blobPrefix = blobPrefix;
return this;
}
@CustomType.Setter
public Builder fileMode(String fileMode) {
if (fileMode == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "fileMode");
}
this.fileMode = fileMode;
return this;
}
@CustomType.Setter
public Builder filePath(String filePath) {
if (filePath == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "filePath");
}
this.filePath = filePath;
return this;
}
@CustomType.Setter
public Builder httpUrl(String httpUrl) {
if (httpUrl == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "httpUrl");
}
this.httpUrl = httpUrl;
return this;
}
@CustomType.Setter
public Builder storageContainerUrl(String storageContainerUrl) {
if (storageContainerUrl == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "storageContainerUrl");
}
this.storageContainerUrl = storageContainerUrl;
return this;
}
@CustomType.Setter
public Builder userAssignedIdentityId(String userAssignedIdentityId) {
if (userAssignedIdentityId == null) {
throw new MissingRequiredPropertyException("GetPoolStartTaskResourceFile", "userAssignedIdentityId");
}
this.userAssignedIdentityId = userAssignedIdentityId;
return this;
}
public GetPoolStartTaskResourceFile build() {
final var _resultValue = new GetPoolStartTaskResourceFile();
_resultValue.autoStorageContainerName = autoStorageContainerName;
_resultValue.blobPrefix = blobPrefix;
_resultValue.fileMode = fileMode;
_resultValue.filePath = filePath;
_resultValue.httpUrl = httpUrl;
_resultValue.storageContainerUrl = storageContainerUrl;
_resultValue.userAssignedIdentityId = userAssignedIdentityId;
return _resultValue;
}
}
}