Class Destination
java.lang.Object
com.azure.resourcemanager.eventhubs.models.Destination
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Destination>
public final class Destination
extends Object
implements com.azure.json.JsonSerializable<Destination>
Capture storage details for capture description.
-
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 DestinationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Destination from the JsonReader.identity()Get the identity property: A value that indicates whether capture description is enabled.name()Get the name property: Name for capture destination.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.withIdentity(CaptureIdentity identity) Set the identity property: A value that indicates whether capture description is enabled.Set the name property: Name for capture destination.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
-
Destination
public Destination()Creates an instance of Destination class.
-
-
Method Details
-
name
Get the name property: Name for capture destination.- Returns:
- the name value.
-
withName
Set the name property: Name for capture destination.- Parameters:
name- the name value to set.- Returns:
- the Destination object itself.
-
identity
Get the identity property: A value that indicates whether capture description is enabled.- Returns:
- the identity value.
-
withIdentity
Set the identity property: A value that indicates whether capture description is enabled.- Parameters:
identity- the identity value to set.- Returns:
- the Destination object itself.
-
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 Destination 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 Destination 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 Destination 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 Destination 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 Destination 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 Destination 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<Destination>- Throws:
IOException
-
fromJson
Reads an instance of Destination from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Destination 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 Destination.
-