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 Details

    • Destination

      public Destination()
      Creates an instance of Destination class.
  • Method Details

    • name

      public String name()
      Get the name property: Name for capture destination.
      Returns:
      the name value.
    • withName

      public Destination withName(String name)
      Set the name property: Name for capture destination.
      Parameters:
      name - the name value to set.
      Returns:
      the Destination object itself.
    • identity

      public CaptureIdentity identity()
      Get the identity property: A value that indicates whether capture description is enabled.
      Returns:
      the identity value.
    • withIdentity

      public Destination withIdentity(CaptureIdentity identity)
      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

      public String storageAccountResourceId()
      Get the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.
      Returns:
      the storageAccountResourceId value.
    • withStorageAccountResourceId

      public Destination withStorageAccountResourceId(String storageAccountResourceId)
      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

      public String blobContainer()
      Get the blobContainer property: Blob container Name.
      Returns:
      the blobContainer value.
    • withBlobContainer

      public Destination withBlobContainer(String blobContainer)
      Set the blobContainer property: Blob container Name.
      Parameters:
      blobContainer - the blobContainer value to set.
      Returns:
      the Destination object itself.
    • archiveNameFormat

      public String 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

      public Destination withArchiveNameFormat(String archiveNameFormat)
      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

      public UUID dataLakeSubscriptionId()
      Get the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.
      Returns:
      the dataLakeSubscriptionId value.
    • withDataLakeSubscriptionId

      public Destination withDataLakeSubscriptionId(UUID dataLakeSubscriptionId)
      Set the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.
      Parameters:
      dataLakeSubscriptionId - the dataLakeSubscriptionId value to set.
      Returns:
      the Destination object itself.
    • dataLakeAccountName

      public String dataLakeAccountName()
      Get the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.
      Returns:
      the dataLakeAccountName value.
    • withDataLakeAccountName

      public Destination withDataLakeAccountName(String dataLakeAccountName)
      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

      public String dataLakeFolderPath()
      Get the dataLakeFolderPath property: The destination folder path for the captured events.
      Returns:
      the dataLakeFolderPath value.
    • withDataLakeFolderPath

      public Destination withDataLakeFolderPath(String dataLakeFolderPath)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Destination>
      Throws:
      IOException
    • fromJson

      public static Destination fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.