Class JsonInputSchemaMapping
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.InputSchemaMapping
-
- com.azure.resourcemanager.eventgrid.models.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 Summary
Constructors Constructor Description JsonInputSchemaMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonFieldWithDefaultdataVersion()Get the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.JsonFieldeventTime()Get the eventTime property: The mapping information for the EventTime property of the Event Grid Event.JsonFieldWithDefaulteventType()Get the eventType property: The mapping information for the EventType property of the Event Grid Event.JsonFieldid()Get the id property: The mapping information for the Id property of the Event Grid Event.JsonFieldWithDefaultsubject()Get the subject property: The mapping information for the Subject property of the Event Grid Event.JsonFieldtopic()Get the topic property: The mapping information for the Topic property of the Event Grid Event.voidvalidate()Validates the instance.JsonInputSchemaMappingwithDataVersion(JsonFieldWithDefault dataVersion)Set the dataVersion property: The mapping information for the DataVersion property of the Event Grid Event.JsonInputSchemaMappingwithEventTime(JsonField eventTime)Set the eventTime property: The mapping information for the EventTime property of the Event Grid Event.JsonInputSchemaMappingwithEventType(JsonFieldWithDefault eventType)Set the eventType property: The mapping information for the EventType property of the Event Grid Event.JsonInputSchemaMappingwithId(JsonField id)Set the id property: The mapping information for the Id property of the Event Grid Event.JsonInputSchemaMappingwithSubject(JsonFieldWithDefault subject)Set the subject property: The mapping information for the Subject property of the Event Grid Event.JsonInputSchemaMappingwithTopic(JsonField topic)Set the topic property: The mapping information for the Topic property of the Event Grid Event.
-
-
-
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.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classInputSchemaMapping- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-