Class AzureFunctionEventSubscriptionDestination
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.EventSubscriptionDestination
-
- com.azure.resourcemanager.eventgrid.models.AzureFunctionEventSubscriptionDestination
-
public final class AzureFunctionEventSubscriptionDestination extends EventSubscriptionDestination
Information about the azure function destination for an event subscription.
-
-
Constructor Summary
Constructors Constructor Description AzureFunctionEventSubscriptionDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DeliveryAttributeMapping>deliveryAttributeMappings()Get the deliveryAttributeMappings property: Delivery attribute details.IntegermaxEventsPerBatch()Get the maxEventsPerBatch property: Maximum number of events per batch.IntegerpreferredBatchSizeInKilobytes()Get the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.StringresourceId()Get the resourceId property: The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.voidvalidate()Validates the instance.AzureFunctionEventSubscriptionDestinationwithDeliveryAttributeMappings(List<DeliveryAttributeMapping> deliveryAttributeMappings)Set the deliveryAttributeMappings property: Delivery attribute details.AzureFunctionEventSubscriptionDestinationwithMaxEventsPerBatch(Integer maxEventsPerBatch)Set the maxEventsPerBatch property: Maximum number of events per batch.AzureFunctionEventSubscriptionDestinationwithPreferredBatchSizeInKilobytes(Integer preferredBatchSizeInKilobytes)Set the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.AzureFunctionEventSubscriptionDestinationwithResourceId(String resourceId)Set the resourceId property: The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
-
-
-
Method Detail
-
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.
-
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.
-
maxEventsPerBatch
public Integer maxEventsPerBatch()
Get the maxEventsPerBatch property: Maximum number of events per batch.- Returns:
- the maxEventsPerBatch value.
-
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.
-
preferredBatchSizeInKilobytes
public Integer preferredBatchSizeInKilobytes()
Get the preferredBatchSizeInKilobytes property: Preferred batch size in Kilobytes.- Returns:
- the preferredBatchSizeInKilobytes value.
-
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.
-
deliveryAttributeMappings
public List<DeliveryAttributeMapping> deliveryAttributeMappings()
Get the deliveryAttributeMappings property: Delivery attribute details.- Returns:
- the deliveryAttributeMappings value.
-
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.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classEventSubscriptionDestination- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-