StorageEndpointProperties Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. models. StorageEndpointProperties
- com.
public final class StorageEndpointProperties
The properties of the Azure Storage endpoint for file upload.
Constructor Summary
Constructor | Description |
---|---|
StorageEndpointProperties() |
Creates an instance of Storage |
Method Summary
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticationType()
Get the authentication |
String |
connectionString()
Get the connection |
String |
containerName()
Get the container |
Managed |
identity()
Get the identity property: Managed identity properties of storage endpoint for file upload. |
Duration |
sasTtlAsIso8601()
Get the sas |
void |
validate()
Validates the instance. |
Storage |
withAuthenticationType(AuthenticationType authenticationType)
Set the authentication |
Storage |
withConnectionString(String connectionString)
Set the connection |
Storage |
withContainerName(String containerName)
Set the container |
Storage |
withIdentity(ManagedIdentity identity)
Set the identity property: Managed identity properties of storage endpoint for file upload. |
Storage |
withSasTtlAsIso8601(Duration sasTtlAsIso8601)
Set the sas |
Methods inherited from java.lang.Object
Constructor Details
StorageEndpointProperties
public StorageEndpointProperties()
Creates an instance of StorageEndpointProperties class.
Method Details
authenticationType
public AuthenticationType authenticationType()
Get the authenticationType property: Specifies authentication type being used for connecting to the storage account.
Returns:
connectionString
public String connectionString()
Get the connectionString property: The connection string for the Azure Storage account to which files are uploaded.
Returns:
containerName
public String 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:
identity
public ManagedIdentity identity()
Get the identity property: Managed identity properties of storage endpoint for file upload.
Returns:
sasTtlAsIso8601
public Duration 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:
validate
public void validate()
Validates the instance.
withAuthenticationType
public StorageEndpointProperties withAuthenticationType(AuthenticationType authenticationType)
Set the authenticationType property: Specifies authentication type being used for connecting to the storage account.
Parameters:
Returns:
withConnectionString
public StorageEndpointProperties withConnectionString(String connectionString)
Set the connectionString property: The connection string for the Azure Storage account to which files are uploaded.
Parameters:
Returns:
withContainerName
public StorageEndpointProperties withContainerName(String containerName)
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:
Returns:
withIdentity
public StorageEndpointProperties withIdentity(ManagedIdentity identity)
Set the identity property: Managed identity properties of storage endpoint for file upload.
Parameters:
Returns:
withSasTtlAsIso8601
public StorageEndpointProperties 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. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload\#file-upload-notification-configuration-options.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for