Share via


JsonInputSchemaMapping Class

public class JsonInputSchemaMapping
extends InputSchemaMapping

This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema.

Constructor Summary

Constructor Description
JsonInputSchemaMapping()

Method Summary

Modifier and Type Method and Description
JsonFieldWithDefault dataVersion()

Get the mapping information for the DataVersion property of the Event Grid Event.

JsonField eventTime()

Get the mapping information for the EventTime property of the Event Grid Event.

JsonFieldWithDefault eventType()

Get the mapping information for the EventType property of the Event Grid Event.

JsonField id()

Get the mapping information for the Id property of the Event Grid Event.

JsonFieldWithDefault subject()

Get the mapping information for the Subject property of the Event Grid Event.

JsonField topic()

Get the mapping information for the Topic property of the Event Grid Event.

JsonInputSchemaMapping withDataVersion(JsonFieldWithDefault dataVersion)

Set the mapping information for the DataVersion property of the Event Grid Event.

JsonInputSchemaMapping withEventTime(JsonField eventTime)

Set the mapping information for the EventTime property of the Event Grid Event.

JsonInputSchemaMapping withEventType(JsonFieldWithDefault eventType)

Set the mapping information for the EventType property of the Event Grid Event.

JsonInputSchemaMapping withId(JsonField id)

Set the mapping information for the Id property of the Event Grid Event.

JsonInputSchemaMapping withSubject(JsonFieldWithDefault subject)

Set the mapping information for the Subject property of the Event Grid Event.

JsonInputSchemaMapping withTopic(JsonField topic)

Set the mapping information for the Topic property of the Event Grid Event.

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

JsonInputSchemaMapping

public JsonInputSchemaMapping()

Method Details

dataVersion

public JsonFieldWithDefault dataVersion()

Get the mapping information for the DataVersion property of the Event Grid Event.

Returns:

the dataVersion value

eventTime

public JsonField eventTime()

Get the mapping information for the EventTime property of the Event Grid Event.

Returns:

the eventTime value

eventType

public JsonFieldWithDefault eventType()

Get the mapping information for the EventType property of the Event Grid Event.

Returns:

the eventType value

id

public JsonField id()

Get the mapping information for the Id property of the Event Grid Event.

Returns:

the id value

subject

public JsonFieldWithDefault subject()

Get the mapping information for the Subject property of the Event Grid Event.

Returns:

the subject value

topic

public JsonField topic()

Get the mapping information for the Topic property of the Event Grid Event.

Returns:

the topic value

withDataVersion

public JsonInputSchemaMapping withDataVersion(JsonFieldWithDefault dataVersion)

Set the mapping information for the DataVersion property of the Event Grid Event.

Parameters:

dataVersion - the dataVersion value to set

Returns:

the JsonInputSchemaMapping object itself.

withEventTime

public JsonInputSchemaMapping withEventTime(JsonField eventTime)

Set the mapping information for the EventTime property of the Event Grid Event.

Parameters:

eventTime - the eventTime value to set

Returns:

the JsonInputSchemaMapping object itself.

withEventType

public JsonInputSchemaMapping withEventType(JsonFieldWithDefault eventType)

Set the mapping information for the EventType property of the Event Grid Event.

Parameters:

eventType - the eventType value to set

Returns:

the JsonInputSchemaMapping object itself.

withId

public JsonInputSchemaMapping withId(JsonField id)

Set the mapping information for the Id property of the Event Grid Event.

Parameters:

id - the id value to set

Returns:

the JsonInputSchemaMapping object itself.

withSubject

public JsonInputSchemaMapping withSubject(JsonFieldWithDefault subject)

Set the mapping information for the Subject property of the Event Grid Event.

Parameters:

subject - the subject value to set

Returns:

the JsonInputSchemaMapping object itself.

withTopic

public JsonInputSchemaMapping withTopic(JsonField topic)

Set the mapping information for the Topic property of the Event Grid Event.

Parameters:

topic - the topic value to set

Returns:

the JsonInputSchemaMapping object itself.

Applies to