Udostępnij za pośrednictwem


AzureFunctionEventSubscriptionDestination Class

public final class AzureFunctionEventSubscriptionDestination
extends EventSubscriptionDestination

Information about the azure function destination for an event subscription.

Constructor Summary

Constructor Description
AzureFunctionEventSubscriptionDestination()

Creates an instance of AzureFunctionEventSubscriptionDestination 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 AzureFunctionEventSubscriptionDestination fromJson(JsonReader jsonReader)

Reads an instance of AzureFunctionEventSubscriptionDestination from the JsonReader.

Integer maxEventsPerBatch()

Get the maxEventsPerBatch property: Maximum number of events per batch.

Integer preferredBatchSizeInKilobytes()

Get the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.

String resourceId()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFunctionEventSubscriptionDestination withDeliveryAttributeMappings(List<DeliveryAttributeMapping> deliveryAttributeMappings)

Set the deliveryAttributeMappings property: Delivery attribute details.

AzureFunctionEventSubscriptionDestination withMaxEventsPerBatch(Integer maxEventsPerBatch)

Set the maxEventsPerBatch property: Maximum number of events per batch.

AzureFunctionEventSubscriptionDestination withPreferredBatchSizeInKilobytes(Integer preferredBatchSizeInKilobytes)

Set the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.

AzureFunctionEventSubscriptionDestination withResourceId(String resourceId)

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

Methods inherited from EventSubscriptionDestination

Methods inherited from java.lang.Object

Constructor Details

AzureFunctionEventSubscriptionDestination

public AzureFunctionEventSubscriptionDestination()

Creates an instance of AzureFunctionEventSubscriptionDestination 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:

AzureFunctionEventSubscriptionDestination.endpointType()

Returns:

the endpointType value.

fromJson

public static AzureFunctionEventSubscriptionDestination fromJson(JsonReader jsonReader)

Reads an instance of AzureFunctionEventSubscriptionDestination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureFunctionEventSubscriptionDestination 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 AzureFunctionEventSubscriptionDestination.

maxEventsPerBatch

public Integer maxEventsPerBatch()

Get the maxEventsPerBatch property: Maximum number of events per batch.

Returns:

the maxEventsPerBatch value.

preferredBatchSizeInKilobytes

public Integer preferredBatchSizeInKilobytes()

Get the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.

Returns:

the preferredBatchSizeInKilobytes value.

resourceId

public String resourceId()

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

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureFunctionEventSubscriptionDestination.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AzureFunctionEventSubscriptionDestination.validate()

withDeliveryAttributeMappings

public AzureFunctionEventSubscriptionDestination withDeliveryAttributeMappings(List<DeliveryAttributeMapping> deliveryAttributeMappings)

Set the deliveryAttributeMappings property: Delivery attribute details.

Parameters:

deliveryAttributeMappings - the deliveryAttributeMappings value to set.

Returns:

the AzureFunctionEventSubscriptionDestination object itself.

withMaxEventsPerBatch

public AzureFunctionEventSubscriptionDestination withMaxEventsPerBatch(Integer maxEventsPerBatch)

Set the maxEventsPerBatch property: Maximum number of events per batch.

Parameters:

maxEventsPerBatch - the maxEventsPerBatch value to set.

Returns:

the AzureFunctionEventSubscriptionDestination object itself.

withPreferredBatchSizeInKilobytes

public AzureFunctionEventSubscriptionDestination withPreferredBatchSizeInKilobytes(Integer preferredBatchSizeInKilobytes)

Set the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.

Parameters:

preferredBatchSizeInKilobytes - the preferredBatchSizeInKilobytes value to set.

Returns:

the AzureFunctionEventSubscriptionDestination object itself.

withResourceId

public AzureFunctionEventSubscriptionDestination withResourceId(String resourceId)

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

Parameters:

resourceId - the resourceId value to set.

Returns:

the AzureFunctionEventSubscriptionDestination object itself.

Applies to