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.
// *** 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.datashare;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.datashare.DatasetBlobStorageArgs;
import com.pulumi.azure.datashare.inputs.DatasetBlobStorageState;
import com.pulumi.azure.datashare.outputs.DatasetBlobStorageStorageAccount;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a Data Share Blob Storage Dataset.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Data Share Blob Storage Datasets can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:datashare/datasetBlobStorage:DatasetBlobStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataShare/accounts/account1/shares/share1/dataSets/dataSet1
* ```
*
*/
@ResourceType(type="azure:datashare/datasetBlobStorage:DatasetBlobStorage")
public class DatasetBlobStorage extends com.pulumi.resources.CustomResource {
/**
* The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
@Export(name="containerName", refs={String.class}, tree="[0]")
private Output containerName;
/**
* @return The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
public Output containerName() {
return this.containerName;
}
/**
* The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
@Export(name="dataShareId", refs={String.class}, tree="[0]")
private Output dataShareId;
/**
* @return The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
public Output dataShareId() {
return this.dataShareId;
}
/**
* The name of the Data Share Dataset.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output displayName;
/**
* @return The name of the Data Share Dataset.
*
*/
public Output displayName() {
return this.displayName;
}
/**
* The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
@Export(name="filePath", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> filePath;
/**
* @return The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
public Output> filePath() {
return Codegen.optional(this.filePath);
}
/**
* The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
@Export(name="folderPath", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> folderPath;
/**
* @return The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
public Output> folderPath() {
return Codegen.optional(this.folderPath);
}
/**
* The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
*
*/
public Output name() {
return this.name;
}
/**
* A `storage_account` block as defined below. Changing this forces a new resource to be created.
*
*/
@Export(name="storageAccount", refs={DatasetBlobStorageStorageAccount.class}, tree="[0]")
private Output storageAccount;
/**
* @return A `storage_account` block as defined below. Changing this forces a new resource to be created.
*
*/
public Output storageAccount() {
return this.storageAccount;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public DatasetBlobStorage(java.lang.String name) {
this(name, DatasetBlobStorageArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public DatasetBlobStorage(java.lang.String name, DatasetBlobStorageArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public DatasetBlobStorage(java.lang.String name, DatasetBlobStorageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:datashare/datasetBlobStorage:DatasetBlobStorage", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private DatasetBlobStorage(java.lang.String name, Output id, @Nullable DatasetBlobStorageState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:datashare/datasetBlobStorage:DatasetBlobStorage", name, state, makeResourceOptions(options, id), false);
}
private static DatasetBlobStorageArgs makeArgs(DatasetBlobStorageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? DatasetBlobStorageArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static DatasetBlobStorage get(java.lang.String name, Output id, @Nullable DatasetBlobStorageState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new DatasetBlobStorage(name, id, state, options);
}
}