Class DestinationMetadata
java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.DestinationMetadata
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DestinationMetadata>
public final class DestinationMetadata
extends Object
implements com.azure.json.JsonSerializable<DestinationMetadata>
Destination meta data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the eventHubName property: Optional.static DestinationMetadatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DestinationMetadata from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withEventHubName(String eventHubName) Set the eventHubName property: Optional.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
-
DestinationMetadata
public DestinationMetadata()Creates an instance of DestinationMetadata class.
-
-
Method Details
-
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 DestinationMetadata object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DestinationMetadata>- Throws:
IOException
-
fromJson
Reads an instance of DestinationMetadata from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DestinationMetadata 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 DestinationMetadata.
-