Class JsonInputSchemaMapping


  • 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 Detail

      • JsonInputSchemaMapping

        public JsonInputSchemaMapping()
    • Method Detail

      • id

        public JsonField id()
        Get the id property: The mapping information for the Id property of the Event Grid Event.
        Returns:
        the id value.
      • withId

        public JsonInputSchemaMapping withId​(JsonField id)
        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

        public JsonField topic()
        Get the topic property: The mapping information for the Topic property of the Event Grid Event.
        Returns:
        the topic value.
      • withTopic

        public JsonInputSchemaMapping withTopic​(JsonField topic)
        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

        public JsonField eventTime()
        Get the eventTime property: The mapping information for the EventTime property of the Event Grid Event.
        Returns:
        the eventTime value.
      • withEventTime

        public JsonInputSchemaMapping withEventTime​(JsonField eventTime)
        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

        public JsonFieldWithDefault eventType()
        Get the eventType property: The mapping information for the EventType property of the Event Grid Event.
        Returns:
        the eventType value.
      • withEventType

        public JsonInputSchemaMapping withEventType​(JsonFieldWithDefault eventType)
        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

        public JsonFieldWithDefault subject()
        Get the subject property: The mapping information for the Subject property of the Event Grid Event.
        Returns:
        the subject value.
      • withSubject

        public JsonInputSchemaMapping withSubject​(JsonFieldWithDefault subject)
        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

        public JsonFieldWithDefault dataVersion()
        Get the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.
        Returns:
        the dataVersion value.
      • withDataVersion

        public JsonInputSchemaMapping withDataVersion​(JsonFieldWithDefault dataVersion)
        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.