Class DestinationProperties
java.lang.Object
com.azure.resourcemanager.eventhubs.fluent.models.DestinationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DestinationProperties>
public final class DestinationProperties
extends Object
implements com.azure.json.JsonSerializable<DestinationProperties>
Properties describing the storage account, blob container and archive name format for capture destination.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the archiveNameFormat property: Blob naming convention for archive, e.g.Get the blobContainer property: Blob container Name.Get the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.Get the dataLakeFolderPath property: The destination folder path for the captured events.Get the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.static DestinationPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DestinationProperties from the JsonReader.Get the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withArchiveNameFormat(String archiveNameFormat) Set the archiveNameFormat property: Blob naming convention for archive, e.g.withBlobContainer(String blobContainer) Set the blobContainer property: Blob container Name.withDataLakeAccountName(String dataLakeAccountName) Set the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.withDataLakeFolderPath(String dataLakeFolderPath) Set the dataLakeFolderPath property: The destination folder path for the captured events.withDataLakeSubscriptionId(UUID dataLakeSubscriptionId) Set the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.withStorageAccountResourceId(String storageAccountResourceId) Set the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DestinationProperties
public DestinationProperties()Creates an instance of DestinationProperties class.
-
-
Method Details
-
storageAccountResourceId
Get the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.- Returns:
- the storageAccountResourceId value.
-
withStorageAccountResourceId
Set the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.- Parameters:
storageAccountResourceId- the storageAccountResourceId value to set.- Returns:
- the DestinationProperties object itself.
-
blobContainer
Get the blobContainer property: Blob container Name.- Returns:
- the blobContainer value.
-
withBlobContainer
Set the blobContainer property: Blob container Name.- Parameters:
blobContainer- the blobContainer value to set.- Returns:
- the DestinationProperties object itself.
-
archiveNameFormat
Get the archiveNameFormat property: Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order.- Returns:
- the archiveNameFormat value.
-
withArchiveNameFormat
Set the archiveNameFormat property: Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order.- Parameters:
archiveNameFormat- the archiveNameFormat value to set.- Returns:
- the DestinationProperties object itself.
-
dataLakeSubscriptionId
Get the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.- Returns:
- the dataLakeSubscriptionId value.
-
withDataLakeSubscriptionId
Set the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.- Parameters:
dataLakeSubscriptionId- the dataLakeSubscriptionId value to set.- Returns:
- the DestinationProperties object itself.
-
dataLakeAccountName
Get the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.- Returns:
- the dataLakeAccountName value.
-
withDataLakeAccountName
Set the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.- Parameters:
dataLakeAccountName- the dataLakeAccountName value to set.- Returns:
- the DestinationProperties object itself.
-
dataLakeFolderPath
Get the dataLakeFolderPath property: The destination folder path for the captured events.- Returns:
- the dataLakeFolderPath value.
-
withDataLakeFolderPath
Set the dataLakeFolderPath property: The destination folder path for the captured events.- Parameters:
dataLakeFolderPath- the dataLakeFolderPath value to set.- Returns:
- the DestinationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DestinationProperties>- Throws:
IOException
-
fromJson
public static DestinationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DestinationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DestinationProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DestinationProperties.
-