EventHubReceiver Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. EventHubReceiver
- com.
Implements
public final class EventHubReceiver
implements JsonSerializable<EventHubReceiver>
An Event hub receiver.
Constructor Summary
Constructor | Description |
---|---|
EventHubReceiver() |
Creates an instance of Event |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
eventHubName()
Get the event |
String |
eventHubNameSpace()
Get the event |
static
Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event |
String |
name()
Get the name property: The name of the Event hub receiver. |
String |
subscriptionId()
Get the subscription |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
useCommonAlertSchema()
Get the use |
void |
validate()
Validates the instance. |
Event |
withEventHubName(String eventHubName)
Set the event |
Event |
withEventHubNameSpace(String eventHubNameSpace)
Set the event |
Event |
withName(String name)
Set the name property: The name of the Event hub receiver. |
Event |
withSubscriptionId(String subscriptionId)
Set the subscription |
Event |
withTenantId(String tenantId)
Set the tenant |
Event |
withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the use |
Methods inherited from java.lang.Object
Constructor Details
EventHubReceiver
public EventHubReceiver()
Creates an instance of EventHubReceiver class.
Method Details
eventHubName
public String eventHubName()
Get the eventHubName property: The name of the specific Event Hub queue.
Returns:
eventHubNameSpace
public String eventHubNameSpace()
Get the eventHubNameSpace property: The Event Hub namespace.
Returns:
fromJson
public static EventHubReceiver fromJson(JsonReader jsonReader)
Reads an instance of EventHubReceiver from the JsonReader.
Parameters:
Returns:
Throws:
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:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The Id for the subscription containing this event hub.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The tenant Id for the subscription containing this event hub.
Returns:
toJson
useCommonAlertSchema
public Boolean useCommonAlertSchema()
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.
Returns:
validate
public void validate()
Validates the instance.
withEventHubName
public EventHubReceiver withEventHubName(String eventHubName)
Set the eventHubName property: The name of the specific Event Hub queue.
Parameters:
Returns:
withEventHubNameSpace
public EventHubReceiver withEventHubNameSpace(String eventHubNameSpace)
Set the eventHubNameSpace property: The Event Hub namespace.
Parameters:
Returns:
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:
Returns:
withSubscriptionId
public EventHubReceiver withSubscriptionId(String subscriptionId)
Set the subscriptionId property: The Id for the subscription containing this event hub.
Parameters:
Returns:
withTenantId
public EventHubReceiver withTenantId(String tenantId)
Set the tenantId property: The tenant Id for the subscription containing this event hub.
Parameters:
Returns:
withUseCommonAlertSchema
public EventHubReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
Parameters:
Returns:
Applies to
Azure SDK for Java