Class DynamicDeliveryAttributeMapping
java.lang.Object
com.azure.resourcemanager.eventgrid.models.DeliveryAttributeMapping
com.azure.resourcemanager.eventgrid.models.DynamicDeliveryAttributeMapping
Dynamic delivery attribute mapping details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the sourceField property: JSON path in the event which contains attribute value.void
validate()
Validates the instance.Set the name property: Name of the delivery attribute or header.withSourceField
(String sourceField) Set the sourceField property: JSON path in the event which contains attribute value.Methods inherited from class com.azure.resourcemanager.eventgrid.models.DeliveryAttributeMapping
name
-
Constructor Details
-
DynamicDeliveryAttributeMapping
public DynamicDeliveryAttributeMapping()
-
-
Method Details
-
withName
Set the name property: Name of the delivery attribute or header.- Overrides:
withName
in classDeliveryAttributeMapping
- Parameters:
name
- the name value to set.- Returns:
- the DeliveryAttributeMapping object itself.
-
sourceField
Get the sourceField property: JSON path in the event which contains attribute value.- Returns:
- the sourceField value.
-
withSourceField
Set the sourceField property: JSON path in the event which contains attribute value.- Parameters:
sourceField
- the sourceField value to set.- Returns:
- the DynamicDeliveryAttributeMapping object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDeliveryAttributeMapping
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-