Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.storagecache.ImportJobArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** 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.storagecache;
import com.pulumi.azurenative.storagecache.enums.ConflictResolutionMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ImportJobArgs extends com.pulumi.resources.ResourceArgs {
public static final ImportJobArgs Empty = new ImportJobArgs();
/**
* Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
*/
@Import(name="amlFilesystemName", required=true)
private Output amlFilesystemName;
/**
* @return Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
*/
public Output amlFilesystemName() {
return this.amlFilesystemName;
}
/**
* How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
*
*/
@Import(name="conflictResolutionMode")
private @Nullable Output> conflictResolutionMode;
/**
* @return How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
*
*/
public Optional>> conflictResolutionMode() {
return Optional.ofNullable(this.conflictResolutionMode);
}
/**
* Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
*/
@Import(name="importJobName")
private @Nullable Output importJobName;
/**
* @return Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
*/
public Optional> importJobName() {
return Optional.ofNullable(this.importJobName);
}
/**
* An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
*
*/
@Import(name="importPrefixes")
private @Nullable Output> importPrefixes;
/**
* @return An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
*
*/
public Optional>> importPrefixes() {
return Optional.ofNullable(this.importPrefixes);
}
/**
* The geo-location where the resource lives
*
*/
@Import(name="location")
private @Nullable Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Optional> location() {
return Optional.ofNullable(this.location);
}
/**
* Total non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
*
*/
@Import(name="maximumErrors")
private @Nullable Output maximumErrors;
/**
* @return Total non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
*
*/
public Optional> maximumErrors() {
return Optional.ofNullable(this.maximumErrors);
}
/**
* The name of the resource group. The name is case insensitive.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return The name of the resource group. The name is case insensitive.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* Resource tags.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Resource tags.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
private ImportJobArgs() {}
private ImportJobArgs(ImportJobArgs $) {
this.amlFilesystemName = $.amlFilesystemName;
this.conflictResolutionMode = $.conflictResolutionMode;
this.importJobName = $.importJobName;
this.importPrefixes = $.importPrefixes;
this.location = $.location;
this.maximumErrors = $.maximumErrors;
this.resourceGroupName = $.resourceGroupName;
this.tags = $.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImportJobArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ImportJobArgs $;
public Builder() {
$ = new ImportJobArgs();
}
public Builder(ImportJobArgs defaults) {
$ = new ImportJobArgs(Objects.requireNonNull(defaults));
}
/**
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
* @return builder
*
*/
public Builder amlFilesystemName(Output amlFilesystemName) {
$.amlFilesystemName = amlFilesystemName;
return this;
}
/**
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
* @return builder
*
*/
public Builder amlFilesystemName(String amlFilesystemName) {
return amlFilesystemName(Output.of(amlFilesystemName));
}
/**
* @param conflictResolutionMode How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
*
* @return builder
*
*/
public Builder conflictResolutionMode(@Nullable Output> conflictResolutionMode) {
$.conflictResolutionMode = conflictResolutionMode;
return this;
}
/**
* @param conflictResolutionMode How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
*
* @return builder
*
*/
public Builder conflictResolutionMode(Either conflictResolutionMode) {
return conflictResolutionMode(Output.of(conflictResolutionMode));
}
/**
* @param conflictResolutionMode How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
*
* @return builder
*
*/
public Builder conflictResolutionMode(String conflictResolutionMode) {
return conflictResolutionMode(Either.ofLeft(conflictResolutionMode));
}
/**
* @param conflictResolutionMode How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
*
* @return builder
*
*/
public Builder conflictResolutionMode(ConflictResolutionMode conflictResolutionMode) {
return conflictResolutionMode(Either.ofRight(conflictResolutionMode));
}
/**
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
* @return builder
*
*/
public Builder importJobName(@Nullable Output importJobName) {
$.importJobName = importJobName;
return this;
}
/**
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
*
* @return builder
*
*/
public Builder importJobName(String importJobName) {
return importJobName(Output.of(importJobName));
}
/**
* @param importPrefixes An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
*
* @return builder
*
*/
public Builder importPrefixes(@Nullable Output> importPrefixes) {
$.importPrefixes = importPrefixes;
return this;
}
/**
* @param importPrefixes An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
*
* @return builder
*
*/
public Builder importPrefixes(List importPrefixes) {
return importPrefixes(Output.of(importPrefixes));
}
/**
* @param importPrefixes An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
*
* @return builder
*
*/
public Builder importPrefixes(String... importPrefixes) {
return importPrefixes(List.of(importPrefixes));
}
/**
* @param location The geo-location where the resource lives
*
* @return builder
*
*/
public Builder location(@Nullable Output location) {
$.location = location;
return this;
}
/**
* @param location The geo-location where the resource lives
*
* @return builder
*
*/
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param maximumErrors Total non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
*
* @return builder
*
*/
public Builder maximumErrors(@Nullable Output maximumErrors) {
$.maximumErrors = maximumErrors;
return this;
}
/**
* @param maximumErrors Total non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
*
* @return builder
*
*/
public Builder maximumErrors(Integer maximumErrors) {
return maximumErrors(Output.of(maximumErrors));
}
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param tags Resource tags.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Resource tags.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
public ImportJobArgs build() {
if ($.amlFilesystemName == null) {
throw new MissingRequiredPropertyException("ImportJobArgs", "amlFilesystemName");
}
$.conflictResolutionMode = Codegen.stringProp("conflictResolutionMode").left(ConflictResolutionMode.class).output().arg($.conflictResolutionMode).def("Fail").getNullable();
$.maximumErrors = Codegen.integerProp("maximumErrors").output().arg($.maximumErrors).def(0).getNullable();
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("ImportJobArgs", "resourceGroupName");
}
return $;
}
}
}