Partilhar via


EventHubReceiver Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.EventHubReceiver

Implements

public final class EventHubReceiver
implements JsonSerializable<EventHubReceiver>

An Event hub receiver.

Constructor Summary

Constructor Description
EventHubReceiver()

Creates an instance of EventHubReceiver class.

Method Summary

Modifier and Type Method and Description
String eventHubName()

Get the eventHubName property: The name of the specific Event Hub queue.

String eventHubNameSpace()

Get the eventHubNameSpace property: The Event Hub namespace.

static EventHubReceiver fromJson(JsonReader jsonReader)

Reads an instance of EventHubReceiver from the JsonReader.

String name()

Get the name property: The name of the Event hub receiver.

String subscriptionId()

Get the subscriptionId property: The Id for the subscription containing this event hub.

String tenantId()

Get the tenantId property: The tenant Id for the subscription containing this event hub.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

void validate()

Validates the instance.

EventHubReceiver withEventHubName(String eventHubName)

Set the eventHubName property: The name of the specific Event Hub queue.

EventHubReceiver withEventHubNameSpace(String eventHubNameSpace)

Set the eventHubNameSpace property: The Event Hub namespace.

EventHubReceiver withName(String name)

Set the name property: The name of the Event hub receiver.

EventHubReceiver withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The Id for the subscription containing this event hub.

EventHubReceiver withTenantId(String tenantId)

Set the tenantId property: The tenant Id for the subscription containing this event hub.

EventHubReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

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:

the eventHubName value.

eventHubNameSpace

public String eventHubNameSpace()

Get the eventHubNameSpace property: The Event Hub namespace.

Returns:

the eventHubNameSpace value.

fromJson

public static EventHubReceiver fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The Id for the subscription containing this event hub.

Returns:

the subscriptionId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant Id for the subscription containing this event hub.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useCommonAlertSchema

public Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

Returns:

the useCommonAlertSchema value.

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:

eventHubName - the eventHubName value to set.

Returns:

the EventHubReceiver object itself.

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.

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.

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.

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.

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.

Applies to