Class CaptureDescription

java.lang.Object
com.azure.resourcemanager.eventhubs.models.CaptureDescription
All Implemented Interfaces:
com.azure.json.JsonSerializable<CaptureDescription>

public final class CaptureDescription extends Object implements com.azure.json.JsonSerializable<CaptureDescription>
Properties to configure capture description for eventhub.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of CaptureDescription class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the destination property: Properties of Destination where capture will be stored.
    Get the enabled property: A value that indicates whether capture description is enabled.
    Get the encoding property: Enumerates the possible values for the encoding format of capture description.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CaptureDescription from the JsonReader.
    Get the intervalInSeconds property: The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
    Get the sizeLimitInBytes property: The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
    Get the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the destination property: Properties of Destination where capture will be stored.
    Set the enabled property: A value that indicates whether capture description is enabled.
    Set the encoding property: Enumerates the possible values for the encoding format of capture description.
    withIntervalInSeconds(Integer intervalInSeconds)
    Set the intervalInSeconds property: The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
    withSizeLimitInBytes(Integer sizeLimitInBytes)
    Set the sizeLimitInBytes property: The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
    withSkipEmptyArchives(Boolean skipEmptyArchives)
    Set the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • CaptureDescription

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

    • enabled

      public Boolean enabled()
      Get the enabled property: A value that indicates whether capture description is enabled.
      Returns:
      the enabled value.
    • withEnabled

      public CaptureDescription withEnabled(Boolean enabled)
      Set the enabled property: A value that indicates whether capture description is enabled.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the CaptureDescription object itself.
    • encoding

      public EncodingCaptureDescription encoding()
      Get the encoding property: Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version.
      Returns:
      the encoding value.
    • withEncoding

      public CaptureDescription withEncoding(EncodingCaptureDescription encoding)
      Set the encoding property: Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version.
      Parameters:
      encoding - the encoding value to set.
      Returns:
      the CaptureDescription object itself.
    • intervalInSeconds

      public Integer intervalInSeconds()
      Get the intervalInSeconds property: The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
      Returns:
      the intervalInSeconds value.
    • withIntervalInSeconds

      public CaptureDescription withIntervalInSeconds(Integer intervalInSeconds)
      Set the intervalInSeconds property: The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
      Parameters:
      intervalInSeconds - the intervalInSeconds value to set.
      Returns:
      the CaptureDescription object itself.
    • sizeLimitInBytes

      public Integer sizeLimitInBytes()
      Get the sizeLimitInBytes property: The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
      Returns:
      the sizeLimitInBytes value.
    • withSizeLimitInBytes

      public CaptureDescription withSizeLimitInBytes(Integer sizeLimitInBytes)
      Set the sizeLimitInBytes property: The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
      Parameters:
      sizeLimitInBytes - the sizeLimitInBytes value to set.
      Returns:
      the CaptureDescription object itself.
    • destination

      public Destination destination()
      Get the destination property: Properties of Destination where capture will be stored. (Storage Account, Blob Names).
      Returns:
      the destination value.
    • withDestination

      public CaptureDescription withDestination(Destination destination)
      Set the destination property: Properties of Destination where capture will be stored. (Storage Account, Blob Names).
      Parameters:
      destination - the destination value to set.
      Returns:
      the CaptureDescription object itself.
    • skipEmptyArchives

      public Boolean skipEmptyArchives()
      Get the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives.
      Returns:
      the skipEmptyArchives value.
    • withSkipEmptyArchives

      public CaptureDescription withSkipEmptyArchives(Boolean skipEmptyArchives)
      Set the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives.
      Parameters:
      skipEmptyArchives - the skipEmptyArchives value to set.
      Returns:
      the CaptureDescription 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<CaptureDescription>
      Throws:
      IOException
    • fromJson

      public static CaptureDescription fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CaptureDescription from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CaptureDescription 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 CaptureDescription.