Package com.azure.compute.batch.models
Class OutputFileBlobContainerDestination
java.lang.Object
com.azure.compute.batch.models.OutputFileBlobContainerDestination
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OutputFileBlobContainerDestination>
public final class OutputFileBlobContainerDestination
extends Object
implements com.azure.json.JsonSerializable<OutputFileBlobContainerDestination>
Specifies a file upload destination within an Azure blob storage container.
-
Constructor Summary
ConstructorsConstructorDescriptionOutputFileBlobContainerDestination
(String containerUrl) Creates an instance of OutputFileBlobContainerDestination class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OutputFileBlobContainerDestination from the JsonReader.Get the containerUrl property: The URL of the container within Azure Blob Storage to which to upload the file(s).Get the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl.getPath()
Get the path property: The destination blob or virtual directory within the Azure Storage container.Get the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files.setIdentityReference
(BatchNodeIdentityReference identityReference) Set the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl.Set the path property: The destination blob or virtual directory within the Azure Storage container.setUploadHeaders
(List<HttpHeader> uploadHeaders) Set the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OutputFileBlobContainerDestination
Creates an instance of OutputFileBlobContainerDestination class.- Parameters:
containerUrl
- the containerUrl value to set.
-
-
Method Details
-
getPath
Get the path property: The destination blob or virtual directory within the Azure Storage container. If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name.- Returns:
- the path value.
-
setPath
Set the path property: The destination blob or virtual directory within the Azure Storage container. If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name.- Parameters:
path
- the path value to set.- Returns:
- the OutputFileBlobContainerDestination object itself.
-
getContainerUrl
Get the containerUrl property: The URL of the container within Azure Blob Storage to which to upload the file(s). If not using a managed identity, the URL must include a Shared Access Signature (SAS) granting write permissions to the container.- Returns:
- the containerUrl value.
-
getIdentityReference
Get the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.- Returns:
- the identityReference value.
-
setIdentityReference
public OutputFileBlobContainerDestination setIdentityReference(BatchNodeIdentityReference identityReference) Set the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.- Parameters:
identityReference
- the identityReference value to set.- Returns:
- the OutputFileBlobContainerDestination object itself.
-
getUploadHeaders
Get the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://learn.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types.- Returns:
- the uploadHeaders value.
-
setUploadHeaders
Set the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://learn.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types.- Parameters:
uploadHeaders
- the uploadHeaders value to set.- Returns:
- the OutputFileBlobContainerDestination object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OutputFileBlobContainerDestination>
- Throws:
IOException
-
fromJson
public static OutputFileBlobContainerDestination fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OutputFileBlobContainerDestination from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of OutputFileBlobContainerDestination if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the OutputFileBlobContainerDestination.
-