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 Details

    • Destination

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

    • resourceId

      public String 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

      public Destination withResourceId(String resourceId)
      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

      public Type type()
      Get the type property: The type of the destination resource.
      Returns:
      the type value.
    • eventHubName

      public String 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

      public Destination withEventHubName(String eventHubName)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Destination>
      Throws:
      IOException
    • fromJson

      public static Destination fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.