Udostępnij za pośrednictwem


InputSchemaMapping Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.InputSchemaMapping

Implements

public class InputSchemaMapping
implements JsonSerializable<InputSchemaMapping>

By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'.

Constructor Summary

Constructor Description
InputSchemaMapping()

Creates an instance of InputSchemaMapping class.

Method Summary

Modifier and Type Method and Description
static InputSchemaMapping fromJson(JsonReader jsonReader)

Reads an instance of InputSchemaMapping from the JsonReader.

InputSchemaMappingType inputSchemaMappingType()

Get the inputSchemaMappingType property: Type of the custom mapping.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

InputSchemaMapping

public InputSchemaMapping()

Creates an instance of InputSchemaMapping class.

Method Details

fromJson

public static InputSchemaMapping fromJson(JsonReader jsonReader)

Reads an instance of InputSchemaMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InputSchemaMapping if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the InputSchemaMapping.

inputSchemaMappingType

public InputSchemaMappingType inputSchemaMappingType()

Get the inputSchemaMappingType property: Type of the custom mapping.

Returns:

the inputSchemaMappingType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to