JsonInputSchemaMapping Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. InputSchemaMapping - com.
azure. resourcemanager. eventgrid. models. JsonInputSchemaMapping
- com.
- com.
public final 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() |
Creates an instance of Json |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Json |
dataVersion()
Get the data |
|
Json |
eventTime()
Get the event |
|
Json |
eventType()
Get the event |
|
static
Json |
fromJson(JsonReader jsonReader)
Reads an instance of Json |
|
Json |
id()
Get the id property: The mapping information for the Id property of the Event Grid Event. |
|
Input |
inputSchemaMappingType()
Get the input |
|
Json |
subject()
Get the subject property: The mapping information for the Subject property of the Event Grid Event. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Json |
topic()
Get the topic property: The mapping information for the Topic property of the Event Grid Event. |
| void |
validate()
Validates the instance. |
|
Json |
withDataVersion(JsonFieldWithDefault dataVersion)
Set the data |
|
Json |
withEventTime(JsonField eventTime)
Set the event |
|
Json |
withEventType(JsonFieldWithDefault eventType)
Set the event |
|
Json |
withId(JsonField id)
Set the id property: The mapping information for the Id property of the Event Grid Event. |
|
Json |
withSubject(JsonFieldWithDefault subject)
Set the subject property: The mapping information for the Subject property of the Event Grid Event. |
|
Json |
withTopic(JsonField topic)
Set the topic property: The mapping information for the Topic property of the Event Grid Event. |
Methods inherited from InputSchemaMapping
Methods inherited from java.lang.Object
Constructor Details
JsonInputSchemaMapping
public JsonInputSchemaMapping()
Creates an instance of JsonInputSchemaMapping class.
Method Details
dataVersion
public JsonFieldWithDefault dataVersion()
Get the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.
Returns:
eventTime
public JsonField eventTime()
Get the eventTime property: The mapping information for the EventTime property of the Event Grid Event.
Returns:
eventType
public JsonFieldWithDefault eventType()
Get the eventType property: The mapping information for the EventType property of the Event Grid Event.
Returns:
fromJson
public static JsonInputSchemaMapping fromJson(JsonReader jsonReader)
Reads an instance of JsonInputSchemaMapping from the JsonReader.
Parameters:
Returns:
Throws:
id
public JsonField id()
Get the id property: The mapping information for the Id property of the Event Grid Event.
Returns:
inputSchemaMappingType
public InputSchemaMappingType inputSchemaMappingType()
Get the inputSchemaMappingType property: Type of the custom mapping.
Overrides:
JsonInputSchemaMapping.inputSchemaMappingType()Returns:
subject
public JsonFieldWithDefault subject()
Get the subject property: The mapping information for the Subject property of the Event Grid Event.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
JsonInputSchemaMapping.toJson(JsonWriter jsonWriter)Parameters:
Throws:
topic
public JsonField topic()
Get the topic property: The mapping information for the Topic property of the Event Grid Event.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
JsonInputSchemaMapping.validate()withDataVersion
public JsonInputSchemaMapping withDataVersion(JsonFieldWithDefault dataVersion)
Set the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.
Parameters:
Returns:
withEventTime
public JsonInputSchemaMapping withEventTime(JsonField eventTime)
Set the eventTime property: The mapping information for the EventTime property of the Event Grid Event.
Parameters:
Returns:
withEventType
public JsonInputSchemaMapping withEventType(JsonFieldWithDefault eventType)
Set the eventType property: The mapping information for the EventType property of the Event Grid Event.
Parameters:
Returns:
withId
public JsonInputSchemaMapping withId(JsonField id)
Set the id property: The mapping information for the Id property of the Event Grid Event.
Parameters:
Returns:
withSubject
public JsonInputSchemaMapping withSubject(JsonFieldWithDefault subject)
Set the subject property: The mapping information for the Subject property of the Event Grid Event.
Parameters:
Returns:
withTopic
public JsonInputSchemaMapping withTopic(JsonField topic)
Set the topic property: The mapping information for the Topic property of the Event Grid Event.
Parameters:
Returns: