Udostępnij za pośrednictwem


DynamicRoutingEnrichment Class

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

Implements

public final class DynamicRoutingEnrichment
implements JsonSerializable<DynamicRoutingEnrichment>

The DynamicRoutingEnrichment model.

Constructor Summary

Constructor Description
DynamicRoutingEnrichment()

Creates an instance of DynamicRoutingEnrichment class.

Method Summary

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

Reads an instance of DynamicRoutingEnrichment from the JsonReader.

String key()

Get the key property: Dynamic routing enrichment key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Dynamic routing enrichment value.

DynamicRoutingEnrichment withKey(String key)

Set the key property: Dynamic routing enrichment key.

DynamicRoutingEnrichment withValue(String value)

Set the value property: Dynamic routing enrichment value.

Methods inherited from java.lang.Object

Constructor Details

DynamicRoutingEnrichment

public DynamicRoutingEnrichment()

Creates an instance of DynamicRoutingEnrichment class.

Method Details

fromJson

public static DynamicRoutingEnrichment fromJson(JsonReader jsonReader)

Reads an instance of DynamicRoutingEnrichment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public String key()

Get the key property: Dynamic routing enrichment key.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Dynamic routing enrichment value.

Returns:

the value value.

withKey

public DynamicRoutingEnrichment withKey(String key)

Set the key property: Dynamic routing enrichment key.

Parameters:

key - the key value to set.

Returns:

the DynamicRoutingEnrichment object itself.

withValue

public DynamicRoutingEnrichment withValue(String value)

Set the value property: Dynamic routing enrichment value.

Parameters:

value - the value value to set.

Returns:

the DynamicRoutingEnrichment object itself.

Applies to