Share via


JsonField Class

  • java.lang.Object
    • com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonField

public class 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()

Method Summary

Modifier and Type Method and Description
java.lang.String sourceField()

Get name of a field in the input event schema that's to be used as the source of a mapping.

JsonField withSourceField(String sourceField)

Set name of a field in the input event schema that's to be used as the source of a mapping.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

JsonField

public JsonField()

Method Details

sourceField

public String sourceField()

Get 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 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.

Applies to