Class StorageEndpointProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.StorageEndpointProperties
The properties of the Azure Storage endpoint for file upload.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationType property: Specifies authentication type being used for connecting to the storage account.Get the connectionString property: The connection string for the Azure Storage account to which files are uploaded.Get the containerName property: The name of the root container where you upload files.identity()
Get the identity property: Managed identity properties of storage endpoint for file upload.Get the sasTtlAsIso8601 property: The period of time for which the SAS URI generated by IoT Hub for file upload is valid.void
validate()
Validates the instance.withAuthenticationType
(AuthenticationType authenticationType) Set the authenticationType property: Specifies authentication type being used for connecting to the storage account.withConnectionString
(String connectionString) Set the connectionString property: The connection string for the Azure Storage account to which files are uploaded.withContainerName
(String containerName) Set the containerName property: The name of the root container where you upload files.withIdentity
(ManagedIdentity identity) Set the identity property: Managed identity properties of storage endpoint for file upload.withSasTtlAsIso8601
(Duration sasTtlAsIso8601) Set the sasTtlAsIso8601 property: The period of time for which the SAS URI generated by IoT Hub for file upload is valid.
-
Constructor Details
-
StorageEndpointProperties
public StorageEndpointProperties()
-
-
Method Details
-
sasTtlAsIso8601
Get the sasTtlAsIso8601 property: The period of time for which the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.- Returns:
- the sasTtlAsIso8601 value.
-
withSasTtlAsIso8601
Set the sasTtlAsIso8601 property: The period of time for which the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.- Parameters:
sasTtlAsIso8601
- the sasTtlAsIso8601 value to set.- Returns:
- the StorageEndpointProperties object itself.
-
connectionString
Get the connectionString property: The connection string for the Azure Storage account to which files are uploaded.- Returns:
- the connectionString value.
-
withConnectionString
Set the connectionString property: The connection string for the Azure Storage account to which files are uploaded.- Parameters:
connectionString
- the connectionString value to set.- Returns:
- the StorageEndpointProperties object itself.
-
containerName
Get the containerName property: The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.- Returns:
- the containerName value.
-
withContainerName
Set the containerName property: The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.- Parameters:
containerName
- the containerName value to set.- Returns:
- the StorageEndpointProperties object itself.
-
authenticationType
Get the authenticationType property: Specifies authentication type being used for connecting to the storage account.- Returns:
- the authenticationType value.
-
withAuthenticationType
Set the authenticationType property: Specifies authentication type being used for connecting to the storage account.- Parameters:
authenticationType
- the authenticationType value to set.- Returns:
- the StorageEndpointProperties object itself.
-
identity
Get the identity property: Managed identity properties of storage endpoint for file upload.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Managed identity properties of storage endpoint for file upload.- Parameters:
identity
- the identity value to set.- Returns:
- the StorageEndpointProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-