
com.azure.resourcemanager.eventgrid.models.InputSchemaMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* 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'.
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
property = "inputSchemaMappingType",
defaultImpl = InputSchemaMapping.class,
visible = true)
@JsonTypeName("InputSchemaMapping")
@JsonSubTypes({ @JsonSubTypes.Type(name = "Json", value = JsonInputSchemaMapping.class) })
@Immutable
public class InputSchemaMapping {
/*
* Type of the custom mapping
*/
@JsonTypeId
@JsonProperty(value = "inputSchemaMappingType", required = true)
private InputSchemaMappingType inputSchemaMappingType;
/**
* Creates an instance of InputSchemaMapping class.
*/
public InputSchemaMapping() {
this.inputSchemaMappingType = InputSchemaMappingType.fromString("InputSchemaMapping");
}
/**
* Get the inputSchemaMappingType property: Type of the custom mapping.
*
* @return the inputSchemaMappingType value.
*/
public InputSchemaMappingType inputSchemaMappingType() {
return this.inputSchemaMappingType;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy