Udostępnij za pośrednictwem


EventTypeInfo Class

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

Implements

public final class EventTypeInfo
implements JsonSerializable<EventTypeInfo>

The event type information for Channels.

Constructor Summary

Constructor Description
EventTypeInfo()

Creates an instance of EventTypeInfo class.

Method Summary

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

Reads an instance of EventTypeInfo from the JsonReader.

Map<String,InlineEventProperties> inlineEventTypes()

Get the inlineEventTypes property: A collection of inline event types for the resource.

EventDefinitionKind kind()

Get the kind property: The kind of event type used.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EventTypeInfo withInlineEventTypes(Map<String,InlineEventProperties> inlineEventTypes)

Set the inlineEventTypes property: A collection of inline event types for the resource.

EventTypeInfo withKind(EventDefinitionKind kind)

Set the kind property: The kind of event type used.

Methods inherited from java.lang.Object

Constructor Details

EventTypeInfo

public EventTypeInfo()

Creates an instance of EventTypeInfo class.

Method Details

fromJson

public static EventTypeInfo fromJson(JsonReader jsonReader)

Reads an instance of EventTypeInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventTypeInfo 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 EventTypeInfo.

inlineEventTypes

public Map<String,InlineEventProperties> inlineEventTypes()

Get the inlineEventTypes property: A collection of inline event types for the resource. The inline event type keys are of type string which represents the name of the event. An example of a valid inline event name is "Contoso.OrderCreated". The inline event type values are of type InlineEventProperties and will contain additional information for every inline event type.

Returns:

the inlineEventTypes value.

kind

public EventDefinitionKind kind()

Get the kind property: The kind of event type used.

Returns:

the kind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInlineEventTypes

public EventTypeInfo withInlineEventTypes(Map<String,InlineEventProperties> inlineEventTypes)

Set the inlineEventTypes property: A collection of inline event types for the resource. The inline event type keys are of type string which represents the name of the event. An example of a valid inline event name is "Contoso.OrderCreated". The inline event type values are of type InlineEventProperties and will contain additional information for every inline event type.

Parameters:

inlineEventTypes - the inlineEventTypes value to set.

Returns:

the EventTypeInfo object itself.

withKind

public EventTypeInfo withKind(EventDefinitionKind kind)

Set the kind property: The kind of event type used.

Parameters:

kind - the kind value to set.

Returns:

the EventTypeInfo object itself.

Applies to