Class DynamicDeliveryAttributeMapping
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.DeliveryAttributeMapping
-
- com.azure.resourcemanager.eventgrid.models.DynamicDeliveryAttributeMapping
-
public final class DynamicDeliveryAttributeMapping extends DeliveryAttributeMapping
Dynamic delivery attribute mapping details.
-
-
Constructor Summary
Constructors Constructor Description DynamicDeliveryAttributeMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsourceField()Get the sourceField property: JSON path in the event which contains attribute value.voidvalidate()Validates the instance.DynamicDeliveryAttributeMappingwithName(String name)Set the name property: Name of the delivery attribute or header.DynamicDeliveryAttributeMappingwithSourceField(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
-
-
-
-
Method Detail
-
withName
public DynamicDeliveryAttributeMapping withName(String name)
Set the name property: Name of the delivery attribute or header.- Overrides:
withNamein classDeliveryAttributeMapping- Parameters:
name- the name value to set.- Returns:
- the DeliveryAttributeMapping object itself.
-
sourceField
public String sourceField()
Get the sourceField property: JSON path in the event which contains attribute value.- Returns:
- the sourceField value.
-
withSourceField
public DynamicDeliveryAttributeMapping withSourceField(String sourceField)
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:
validatein classDeliveryAttributeMapping- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-