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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the eventHubName property: The name of the specific Event Hub queue.Get the eventHubNameSpace property: The Event Hub namespace.static EventHubReceiverfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventHubReceiver from the JsonReader.name()Get the name property: The name of the Event hub receiver.Get the subscriptionId property: The Id for the subscription containing this event hub.tenantId()Get the tenantId property: The tenant Id for the subscription containing this event hub.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useCommonAlertSchema property: Indicates whether to use common alert schema.voidvalidate()Validates the instance.withEventHubName(String eventHubName) Set the eventHubName property: The name of the specific Event Hub queue.withEventHubNameSpace(String eventHubNameSpace) Set the eventHubNameSpace property: The Event Hub namespace.Set the name property: The name of the Event hub receiver.withSubscriptionId(String subscriptionId) Set the subscriptionId property: The Id for the subscription containing this event hub.withTenantId(String tenantId) Set the tenantId property: The tenant Id for the subscription containing this event hub.withUseCommonAlertSchema(Boolean useCommonAlertSchema) Set the useCommonAlertSchema property: Indicates whether to use common alert schema.Methods inherited from class java.lang.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
-
EventHubReceiver
public EventHubReceiver()Creates an instance of EventHubReceiver class.
-
-
Method Details
-
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
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
Get the eventHubNameSpace property: The Event Hub namespace.- Returns:
- the eventHubNameSpace value.
-
withEventHubNameSpace
Set the eventHubNameSpace property: The Event Hub namespace.- Parameters:
eventHubNameSpace- the eventHubNameSpace value to set.- Returns:
- the EventHubReceiver object itself.
-
eventHubName
Get the eventHubName property: The name of the specific Event Hub queue.- Returns:
- the eventHubName value.
-
withEventHubName
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
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value.
-
withUseCommonAlertSchema
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.- Parameters:
useCommonAlertSchema- the useCommonAlertSchema value to set.- Returns:
- the EventHubReceiver object itself.
-
tenantId
Get the tenantId property: The tenant Id for the subscription containing this event hub.- Returns:
- the tenantId value.
-
withTenantId
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
Get the subscriptionId property: The Id for the subscription containing this event hub.- Returns:
- the subscriptionId value.
-
withSubscriptionId
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EventHubReceiver>- Throws:
IOException
-
fromJson
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.
-