Class JsonInputSchemaMapping
java.lang.Object
com.azure.resourcemanager.eventgrid.models.InputSchemaMapping
com.azure.resourcemanager.eventgrid.models.JsonInputSchemaMapping
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
-
Method Summary
Modifier and TypeMethodDescriptionGet the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.Get the eventTime property: The mapping information for the EventTime property of the Event Grid Event.Get the eventType property: The mapping information for the EventType property of the Event Grid Event.id()
Get the id property: The mapping information for the Id property of the Event Grid Event.subject()
Get the subject property: The mapping information for the Subject property of the Event Grid Event.topic()
Get the topic property: The mapping information for the Topic property of the Event Grid Event.void
validate()
Validates the instance.withDataVersion
(JsonFieldWithDefault dataVersion) Set the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.withEventTime
(JsonField eventTime) Set the eventTime property: The mapping information for the EventTime property of the Event Grid Event.withEventType
(JsonFieldWithDefault eventType) Set the eventType property: The mapping information for the EventType property of the Event Grid Event.Set the id property: The mapping information for the Id property of the Event Grid Event.withSubject
(JsonFieldWithDefault subject) Set the subject property: The mapping information for the Subject property of the Event Grid Event.Set the topic property: The mapping information for the Topic property of the Event Grid Event.
-
Constructor Details
-
JsonInputSchemaMapping
public JsonInputSchemaMapping()
-
-
Method Details
-
id
Get the id property: The mapping information for the Id property of the Event Grid Event.- Returns:
- the id value.
-
withId
Set the id property: The mapping information for the Id property of the Event Grid Event.- Parameters:
id
- the id value to set.- Returns:
- the JsonInputSchemaMapping object itself.
-
topic
Get the topic property: The mapping information for the Topic property of the Event Grid Event.- Returns:
- the topic value.
-
withTopic
Set the topic property: The mapping information for the Topic property of the Event Grid Event.- Parameters:
topic
- the topic value to set.- Returns:
- the JsonInputSchemaMapping object itself.
-
eventTime
Get the eventTime property: The mapping information for the EventTime property of the Event Grid Event.- Returns:
- the eventTime value.
-
withEventTime
Set the eventTime property: The mapping information for the EventTime property of the Event Grid Event.- Parameters:
eventTime
- the eventTime value to set.- Returns:
- the JsonInputSchemaMapping object itself.
-
eventType
Get the eventType property: The mapping information for the EventType property of the Event Grid Event.- Returns:
- the eventType value.
-
withEventType
Set the eventType property: The mapping information for the EventType property of the Event Grid Event.- Parameters:
eventType
- the eventType value to set.- Returns:
- the JsonInputSchemaMapping object itself.
-
subject
Get the subject property: The mapping information for the Subject property of the Event Grid Event.- Returns:
- the subject value.
-
withSubject
Set the subject property: The mapping information for the Subject property of the Event Grid Event.- Parameters:
subject
- the subject value to set.- Returns:
- the JsonInputSchemaMapping object itself.
-
dataVersion
Get the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.- Returns:
- the dataVersion value.
-
withDataVersion
Set the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.- Parameters:
dataVersion
- the dataVersion value to set.- Returns:
- the JsonInputSchemaMapping object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classInputSchemaMapping
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-