Class JsonInputSchemaMappingProperties


  • public final class JsonInputSchemaMappingProperties
    extends Object
    This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema.
    • Constructor Detail

      • JsonInputSchemaMappingProperties

        public JsonInputSchemaMappingProperties()
    • 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.