Class EventHubReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.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.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.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.
-
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.
-