次の方法で共有


EventHubEventSubscriptionDestination Class

public final class EventHubEventSubscriptionDestination
extends EventSubscriptionDestination

Information about the event hub destination for an event subscription.

Constructor Summary

Constructor Description
EventHubEventSubscriptionDestination()

Creates an instance of EventHubEventSubscriptionDestination class.

Method Summary

Modifier and Type Method and Description
List<DeliveryAttributeMapping> deliveryAttributeMappings()

Get the deliveryAttributeMappings property: Delivery attribute details.

EndpointType endpointType()

Get the endpointType property: Type of the endpoint for the event subscription destination.

static EventHubEventSubscriptionDestination fromJson(JsonReader jsonReader)

Reads an instance of EventHubEventSubscriptionDestination from the JsonReader.

String resourceId()

Get the resourceId property: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EventHubEventSubscriptionDestination withDeliveryAttributeMappings(List<DeliveryAttributeMapping> deliveryAttributeMappings)

Set the deliveryAttributeMappings property: Delivery attribute details.

EventHubEventSubscriptionDestination withResourceId(String resourceId)

Set the resourceId property: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.

Methods inherited from EventSubscriptionDestination

Methods inherited from java.lang.Object

Constructor Details

EventHubEventSubscriptionDestination

public EventHubEventSubscriptionDestination()

Creates an instance of EventHubEventSubscriptionDestination class.

Method Details

deliveryAttributeMappings

public List<DeliveryAttributeMapping> deliveryAttributeMappings()

Get the deliveryAttributeMappings property: Delivery attribute details.

Returns:

the deliveryAttributeMappings value.

endpointType

public EndpointType endpointType()

Get the endpointType property: Type of the endpoint for the event subscription destination.

Overrides:

EventHubEventSubscriptionDestination.endpointType()

Returns:

the endpointType value.

fromJson

public static EventHubEventSubscriptionDestination fromJson(JsonReader jsonReader)

Reads an instance of EventHubEventSubscriptionDestination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventHubEventSubscriptionDestination if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EventHubEventSubscriptionDestination.

resourceId

public String resourceId()

Get the resourceId property: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EventHubEventSubscriptionDestination.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

EventHubEventSubscriptionDestination.validate()

withDeliveryAttributeMappings

public EventHubEventSubscriptionDestination withDeliveryAttributeMappings(List<DeliveryAttributeMapping> deliveryAttributeMappings)

Set the deliveryAttributeMappings property: Delivery attribute details.

Parameters:

deliveryAttributeMappings - the deliveryAttributeMappings value to set.

Returns:

the EventHubEventSubscriptionDestination object itself.

withResourceId

public EventHubEventSubscriptionDestination withResourceId(String resourceId)

Set the resourceId property: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.

Parameters:

resourceId - the resourceId value to set.

Returns:

the EventHubEventSubscriptionDestination object itself.

Applies to