CaptureDescription Class
- java.
lang. Object - com.
azure. resourcemanager. eventhubs. models. CaptureDescription
- com.
Implements
public final class CaptureDescription
implements JsonSerializable<CaptureDescription>
Properties to configure capture description for eventhub.
Constructor Summary
Constructor | Description |
---|---|
CaptureDescription() |
Creates an instance of Capture |
Method Summary
Modifier and Type | Method and Description |
---|---|
Destination |
destination()
Get the destination property: Properties of Destination where capture will be stored. |
Boolean |
enabled()
Get the enabled property: A value that indicates whether capture description is enabled. |
Encoding |
encoding()
Get the encoding property: Enumerates the possible values for the encoding format of capture description. |
static
Capture |
fromJson(JsonReader jsonReader)
Reads an instance of Capture |
Integer |
intervalInSeconds()
Get the interval |
Integer |
sizeLimitInBytes()
Get the size |
Boolean |
skipEmptyArchives()
Get the skip |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Capture |
withDestination(Destination destination)
Set the destination property: Properties of Destination where capture will be stored. |
Capture |
withEnabled(Boolean enabled)
Set the enabled property: A value that indicates whether capture description is enabled. |
Capture |
withEncoding(EncodingCaptureDescription encoding)
Set the encoding property: Enumerates the possible values for the encoding format of capture description. |
Capture |
withIntervalInSeconds(Integer intervalInSeconds)
Set the interval |
Capture |
withSizeLimitInBytes(Integer sizeLimitInBytes)
Set the size |
Capture |
withSkipEmptyArchives(Boolean skipEmptyArchives)
Set the skip |
Methods inherited from java.lang.Object
Constructor Details
CaptureDescription
public CaptureDescription()
Creates an instance of CaptureDescription class.
Method Details
destination
public Destination destination()
Get the destination property: Properties of Destination where capture will be stored. (Storage Account, Blob Names).
Returns:
enabled
public Boolean enabled()
Get the enabled property: A value that indicates whether capture description is enabled.
Returns:
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:
fromJson
public static CaptureDescription fromJson(JsonReader jsonReader)
Reads an instance of CaptureDescription from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
skipEmptyArchives
public Boolean skipEmptyArchives()
Get the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDestination
public CaptureDescription withDestination(Destination destination)
Set the destination property: Properties of Destination where capture will be stored. (Storage Account, Blob Names).
Parameters:
Returns:
withEnabled
public CaptureDescription withEnabled(Boolean enabled)
Set the enabled property: A value that indicates whether capture description is enabled.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withSkipEmptyArchives
public CaptureDescription withSkipEmptyArchives(Boolean skipEmptyArchives)
Set the skipEmptyArchives property: A value that indicates whether to Skip Empty Archives.
Parameters:
Returns:
Applies to
Azure SDK for Java