Udostępnij za pośrednictwem


StaticRoutingEnrichment Class

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

Implements

public class StaticRoutingEnrichment
implements JsonSerializable<StaticRoutingEnrichment>

Static routing enrichment details.

Constructor Summary

Constructor Description
StaticRoutingEnrichment()

Creates an instance of StaticRoutingEnrichment class.

Method Summary

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

Reads an instance of StaticRoutingEnrichment from the JsonReader.

String key()

Get the key property: Static routing enrichment key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StaticRoutingEnrichmentType valueType()

Get the valueType property: Static routing enrichment value type.

StaticRoutingEnrichment withKey(String key)

Set the key property: Static routing enrichment key.

Methods inherited from java.lang.Object

Constructor Details

StaticRoutingEnrichment

public StaticRoutingEnrichment()

Creates an instance of StaticRoutingEnrichment class.

Method Details

fromJson

public static StaticRoutingEnrichment fromJson(JsonReader jsonReader)

Reads an instance of StaticRoutingEnrichment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public String key()

Get the key property: Static routing enrichment key.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

valueType

public StaticRoutingEnrichmentType valueType()

Get the valueType property: Static routing enrichment value type. For e.g. this property value can be 'String'.

Returns:

the valueType value.

withKey

public StaticRoutingEnrichment withKey(String key)

Set the key property: Static routing enrichment key.

Parameters:

key - the key value to set.

Returns:

the StaticRoutingEnrichment object itself.

Applies to