Class JsonField
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.JsonField
-
public final class JsonField extends Object
This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'id', 'topic' and 'eventtime' properties. This represents a field in the input event schema.
-
-
Constructor Summary
Constructors Constructor Description JsonField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsourceField()Get the sourceField property: Name of a field in the input event schema that's to be used as the source of a mapping.voidvalidate()Validates the instance.JsonFieldwithSourceField(String sourceField)Set the sourceField property: Name of a field in the input event schema that's to be used as the source of a mapping.
-
-
-
Method Detail
-
sourceField
public String sourceField()
Get the sourceField property: Name of a field in the input event schema that's to be used as the source of a mapping.- Returns:
- the sourceField value.
-
withSourceField
public JsonField withSourceField(String sourceField)
Set the sourceField property: Name of a field in the input event schema that's to be used as the source of a mapping.- Parameters:
sourceField- the sourceField value to set.- Returns:
- the JsonField object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-