Class DataExportProperties
java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.DataExportProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataExportProperties>
public final class DataExportProperties
extends Object
implements com.azure.json.JsonSerializable<DataExportProperties>
Data Export properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The latest data export rule modification time.Get the dataExportId property: The data export rule ID.enable()Get the enable property: Active when enabled.Get the eventHubName property: Optional.static DataExportPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataExportProperties from the JsonReader.Get the lastModifiedDate property: Date and time when the export was last modified.Get the resourceId property: The destination resource ID.Get the tableNames property: An array of tables to export, for example: [“Heartbeat, SecurityEvent”].com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the destination resource.withCreatedDate(String createdDate) Set the createdDate property: The latest data export rule modification time.withDataExportId(String dataExportId) Set the dataExportId property: The data export rule ID.withEnable(Boolean enable) Set the enable property: Active when enabled.withEventHubName(String eventHubName) Set the eventHubName property: Optional.withLastModifiedDate(String lastModifiedDate) Set the lastModifiedDate property: Date and time when the export was last modified.withResourceId(String resourceId) Set the resourceId property: The destination resource ID.withTableNames(List<String> tableNames) Set the tableNames property: An array of tables to export, for example: [“Heartbeat, SecurityEvent”].Methods inherited from class 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
-
DataExportProperties
public DataExportProperties()Creates an instance of DataExportProperties class.
-
-
Method Details
-
dataExportId
Get the dataExportId property: The data export rule ID.- Returns:
- the dataExportId value.
-
withDataExportId
Set the dataExportId property: The data export rule ID.- Parameters:
dataExportId- the dataExportId value to set.- Returns:
- the DataExportProperties object itself.
-
tableNames
-
withTableNames
Set the tableNames property: An array of tables to export, for example: [“Heartbeat, SecurityEvent”].- Parameters:
tableNames- the tableNames value to set.- Returns:
- the DataExportProperties object itself.
-
enable
-
withEnable
Set the enable property: Active when enabled.- Parameters:
enable- the enable value to set.- Returns:
- the DataExportProperties object itself.
-
createdDate
Get the createdDate property: The latest data export rule modification time.- Returns:
- the createdDate value.
-
withCreatedDate
Set the createdDate property: The latest data export rule modification time.- Parameters:
createdDate- the createdDate value to set.- Returns:
- the DataExportProperties object itself.
-
lastModifiedDate
Get the lastModifiedDate property: Date and time when the export was last modified.- Returns:
- the lastModifiedDate value.
-
withLastModifiedDate
Set the lastModifiedDate property: Date and time when the export was last modified.- Parameters:
lastModifiedDate- the lastModifiedDate value to set.- Returns:
- the DataExportProperties object itself.
-
resourceId
Get the resourceId property: The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the DataExportProperties object itself.
-
type
Get the type property: The type of the destination resource.- Returns:
- the type value.
-
eventHubName
Get the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.- Returns:
- the eventHubName value.
-
withEventHubName
Set the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.- Parameters:
eventHubName- the eventHubName value to set.- Returns:
- the DataExportProperties object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataExportProperties>- Throws:
IOException
-
fromJson
public static DataExportProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataExportProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataExportProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DataExportProperties.
-