JsonField Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. JsonField
- com.
Implements
public final class JsonField
implements JsonSerializable<JsonField>
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
| Constructor | Description |
|---|---|
| JsonField() |
Creates an instance of Json |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Json |
fromJson(JsonReader jsonReader)
Reads an instance of Json |
| String |
sourceField()
Get the source |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Json |
withSourceField(String sourceField)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
JsonField
public JsonField()
Creates an instance of JsonField class.
Method Details
fromJson
public static JsonField fromJson(JsonReader jsonReader)
Reads an instance of JsonField from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns: