Class Destination
java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.Destination
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Destination>
public final class Destination
extends Object
implements com.azure.json.JsonSerializable<Destination>
Destination properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the eventHubName property: Optional.static DestinationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Destination from the JsonReader.Get the resourceId property: The destination resource ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the destination resource.withEventHubName(String eventHubName) Set the eventHubName property: Optional.withResourceId(String resourceId) Set the resourceId property: The destination resource ID.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
-
Destination
public Destination()Creates an instance of Destination class.
-
-
Method Details
-
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 Destination 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 Destination object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Destination>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the Destination.
-