Class EventHubReceiver

java.lang.Object
com.azure.resourcemanager.monitor.models.EventHubReceiver
All Implemented Interfaces:
com.azure.json.JsonSerializable<EventHubReceiver>

public final class EventHubReceiver extends Object implements com.azure.json.JsonSerializable<EventHubReceiver>
An Event hub receiver.
  • Constructor Details

    • EventHubReceiver

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

    • name

      public String name()
      Get the name property: The name of the Event hub receiver. Names must be unique across all receivers within an action group.
      Returns:
      the name value.
    • withName

      public EventHubReceiver withName(String name)
      Set the name property: The name of the Event hub receiver. Names must be unique across all receivers within an action group.
      Parameters:
      name - the name value to set.
      Returns:
      the EventHubReceiver object itself.
    • eventHubNameSpace

      public String eventHubNameSpace()
      Get the eventHubNameSpace property: The Event Hub namespace.
      Returns:
      the eventHubNameSpace value.
    • withEventHubNameSpace

      public EventHubReceiver withEventHubNameSpace(String eventHubNameSpace)
      Set the eventHubNameSpace property: The Event Hub namespace.
      Parameters:
      eventHubNameSpace - the eventHubNameSpace value to set.
      Returns:
      the EventHubReceiver object itself.
    • eventHubName

      public String eventHubName()
      Get the eventHubName property: The name of the specific Event Hub queue.
      Returns:
      the eventHubName value.
    • withEventHubName

      public EventHubReceiver withEventHubName(String eventHubName)
      Set the eventHubName property: The name of the specific Event Hub queue.
      Parameters:
      eventHubName - the eventHubName value to set.
      Returns:
      the EventHubReceiver object itself.
    • useCommonAlertSchema

      public Boolean useCommonAlertSchema()
      Get the useCommonAlertSchema property: Indicates whether to use common alert schema.
      Returns:
      the useCommonAlertSchema value.
    • withUseCommonAlertSchema

      public EventHubReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)
      Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
      Parameters:
      useCommonAlertSchema - the useCommonAlertSchema value to set.
      Returns:
      the EventHubReceiver object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: The tenant Id for the subscription containing this event hub.
      Returns:
      the tenantId value.
    • withTenantId

      public EventHubReceiver withTenantId(String tenantId)
      Set the tenantId property: The tenant Id for the subscription containing this event hub.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the EventHubReceiver object itself.
    • subscriptionId

      public String subscriptionId()
      Get the subscriptionId property: The Id for the subscription containing this event hub.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public EventHubReceiver withSubscriptionId(String subscriptionId)
      Set the subscriptionId property: The Id for the subscription containing this event hub.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the EventHubReceiver object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static EventHubReceiver fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EventHubReceiver from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EventHubReceiver 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 EventHubReceiver.